networking:cisco:intervlan-mls

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:intervlan-mls [2026/02/03 22:07] ilyasanetworking:cisco:intervlan-mls [2026/02/03 22:22] (current) – [Testing] ilyasa
Line 21: Line 21:
 </code> </code>
 ===== Topologi ===== ===== Topologi =====
-Gambar topology +{{ :networking:cisco:cisco_mls.png?nolink |}} 
-Goals Topology+Topologi sama dengan halaman sebelumnya [[roas|]], Akan tetapi kita menghapus Router dan menggantinya dengan SW1  dengan Multilayer Switch. Untuk konfigurasi SW2 bisa ke halaman sebelumnya. 
 + 
 +Goalnya masih sama yaitu menhubungkan kedua segment jaringan.
 ===== Konfigurasi ===== ===== Konfigurasi =====
-  * **Step 1 : Pembuatan VLANs**+  * **Step 1 : Konfigurasi VLAN Pada MLS**
 <code> <code>
-Switch(config)#vlan 10 +MLS1(config)#vlan 10 
-Switch(config-vlan)#name BIRU +MLS1(config-vlan)#name BLUE 
-Switch(config-vlan)#exit +MLS1(config-vlan)#vlan 20 
- +MLS1(config-vlan)#name MAGENTA
-Switch(config)#vlan 20 +
-Switch(config-vlan)#name MAGENTA +
-Switch(config-vlan)#exit+
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports**+  * **Step 2 : Konfigurasi Access Ports MLS**
 <code> <code>
-Switch(config)#interface f0/1 +MLS1(config)#interface range f0/1-2 
-Switch(config-if)#switchport mode access  +MLS1(config-if-range)#switchport mode access 
-Switch(config-if)#switchport access vlan 10 +MLS1(config-if-range)#switchport access vlan 10 
-Switch(config-if)#exit +MLS1(config)#interface range f0/3-4 
- +MLS1(config-if-range)#switchport mode access 
-Switch(config)#interface f0/2 +MLS1(config-if-range)#switchport access vlan 20 
-Switch(config-if)#switchport mode access  +</code> 
-Switch(config-if)#switchport access vlan 10 +  * **Step 3 : Konfigurasi trunk interface** 
-Switch(config-if)#exit+<code> 
 +MLS1(config)#interface g0/1 
 +MLS1(config-if)#switchport mode trunk 
 +Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode. 
 +MLS1(config-if)#switchport trunk encapsulation dot1q 
 +MLS1(config-if)#switchport mode trunk 
 +MLS1(config-if)#switchport trunk allowed vlan 10,20 
 +</code> 
 +  * **Step 4 : Konfigurasi Switch virtual interface ** 
 +<code> 
 +MLS1(config)#interface vlan 10 
 +MLS1(config-if)#ip address 192.168.1.254 255.255.255.0 
 +MLS1(config)#interface vlan 20 
 +MLS1(config-if)#ip address 192.168.2.254 255.255.255.0 
 +</code> 
 +  * **Step 5 : Pastikan pada MLS ip routing posisi on ** 
 +<code> 
 +MLS1(config)#ip routing
 </code> </code>
- 
 ===== Testing ===== ===== Testing =====
 +
 +* **PC1 -> PC3/PC7**
 +<code>
 +C:\>ping 192.168.2.3
 +
 +Pinging 192.168.2.3 with 32 bytes of data:
 +
 +Reply from 192.168.2.3: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.3: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.3: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.3: bytes=32 time<1ms TTL=127
 +
 +Ping statistics for 192.168.2.3:
 +    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
 +Approximate round trip times in milli-seconds:
 +    Minimum = 0ms, Maximum = 0ms, Average = 0ms
 +
 +C:\>ping 192.168.2.7
 +
 +Pinging 192.168.2.7 with 32 bytes of data:
 +
 +Reply from 192.168.2.7: bytes=32 time=6ms TTL=127
 +Reply from 192.168.2.7: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.7: bytes=32 time<1ms TTL=127
 +Reply from 192.168.2.7: bytes=32 time<1ms TTL=127
 +
 +Ping statistics for 192.168.2.7:
 +    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
 +Approximate round trip times in milli-seconds:
 +    Minimum = 0ms, Maximum = 6ms, Average = 1ms
 +</code>
  • networking/cisco/intervlan-mls.1770131274.txt.gz
  • Last modified: 2026/02/03 22:07
  • by ilyasa