networking:cisco:roas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:cisco:roas [2026/02/03 14:40] – [Syntax] ilyasanetworking:cisco:roas [2026/02/03 16:40] (current) – [Konfigurasi] ilyasa
Line 16: Line 16:
 | ''R1(config-subif)#ip address [ip-address] [subnet-mask]'' | Memasukkan IP address pada subinterface (sebagai gateway) | | ''R1(config-subif)#ip address [ip-address] [subnet-mask]'' | Memasukkan IP address pada subinterface (sebagai gateway) |
  
-==== Some acction ==== +<WRAP center round important 40%> 
-^ Command ^ Description ^ +Jangan lupa untuk mengaktifkan main interfaces (no sutshown
-| ''S1(config)#vlan [vlan-ID]'' | Membuat VLAN baru dan menetapkan nomor VLAN | +</WRAP>
-| ''S1(config-vlan)#name [name]'' | Memberikan nama pada VLAN | +
-Contoh: +
-<code> +
-vlan 10 +
- name VLAN-10 +
-vlan 20 +
- name VLAN-20 +
-vlan 99 +
- name VLAN-Management +
-</code>+
  
 ===== Topologi ===== ===== Topologi =====
-Gambar topology +{{ :networking:cisco:cisco_roas.png?nolink |}} 
-Goals Topology+ 
 +Topologi merupakan lanjutan dari halaman sebelumnya dan untuk konfigurasi VLAN dan trunks bisa ke halaman sebelumnya [[vlan|]] [[trunk|]] 
 + 
 +Goals dari configurasi kali ini adalah menghubungkan dua segment VLAN Yang pada halaman sebelumnya tidak dapat terhubung karena sudah disegmentasi.
 ===== Konfigurasi ===== ===== Konfigurasi =====
-  * **Step 1 : Pembuatan VLANs**+  * **Step 1 : Pada Switch SW1 set port yang menuju ke router sebagai trunks**
 <code> <code>
-Switch(config)#vlan 10 +SW1(config)#interface g0/2 
-Switch(config-vlan)#name BIRU +SW1(config-if)#switchport mode trunk 
-Switch(config-vlan)#exit +SW1(config-if)#switchport trunk allowed vlan 10,20
- +
-Switch(config)#vlan 20 +
-Switch(config-vlan)#name MAGENTA +
-Switch(config-vlan)#exit+
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports**+  * **Step 2 : Konfigurasi Router On a Stick dan konfigurasi IP gate away (subinterface)** 
 +subinterface vlan10
 <code> <code>
-Switch(config)#interface f0/1 +R1(config)#interface g0/0.10 
-Switch(config-if)#switchport mode access  +R1(config-subif)#encapsulation dot1Q 10 
-Switch(config-if)#switchport access vlan 10 +R1(config-subif)#ip address 192.168.1.254 255.255.255.0 
-Switch(config-if)#exit +</code> 
- +subinterface vlan20 
-Switch(config)#interface f0/2 +<code> 
-Switch(config-if)#switchport mode access  +R1(config)#interface g0/0.20 
-Switch(config-if)#switchport access vlan 10 +R1(config-subif)#encapsulation dot1Q 20 
-Switch(config-if)#exit+R1(config-subif)#ip address 192.168.2.254 255.255.255.0
 </code> </code>
  
 +  * **Step 3 : Mengaktifkan Interface (no shutdown)**
 +<code>
 +R1(config)#interface G0/0
 +R1(config-if)#no shutdown
 +</code>
 ===== Testing ===== ===== Testing =====
 +  * **PC 1 to PC 8**
 +<code>
 +C:\>ipconfig
 +
 +FastEthernet0 Connection:(default port)
 +
 +   Connection-specific DNS Suffix..:
 +   Link-local IPv6 Address.........: FE80::290:2BFF:FE64:B4BB
 +   IPv6 Address....................: ::
 +   IPv4 Address....................: 192.168.1.1
 +   Subnet Mask.....................: 255.255.255.0
 +   Default Gateway.................: ::
 +                                     192.168.1.254
 +
 +Bluetooth Connection:
 +
 +   Connection-specific DNS Suffix..:
 +   Link-local IPv6 Address.........: ::
 +   IPv6 Address....................: ::
 +   IPv4 Address....................: 0.0.0.0
 +   Subnet Mask.....................: 0.0.0.0
 +   Default Gateway.................: ::
 +                                     0.0.0.0
 +
 +C:\>ping 192.168.2.8
 +
 +Pinging 192.168.2.8 with 32 bytes of data:
 +
 +Reply from 192.168.2.8: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.8: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.8: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.8: bytes=32 time=12ms TTL=127
 +
 +Ping statistics for 192.168.2.8:
 +    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
 +Approximate round trip times in milli-seconds:
 +    Minimum = 0ms, Maximum = 12ms, Average = 3ms
 +</code>
  • networking/cisco/roas.1770104459.txt.gz
  • Last modified: 2026/02/03 14:40
  • by ilyasa