Pada halaman sebelumnya kita telah menkonfigurasi intervlan dengan metode ROAS. Sekarang kita akan menkonfigurasi inter vlan menggunakan Multilayer Switch (MLS). MLS merupakan Switch yang mempunyai kemampuan routing layer 3. Sehingga kita tidak memperlukan lagi router sebagai penghubung jaringan antar VLAN.
interface Vlan10
ip address 10.0.10.1 255.255.255.0
Topologi masih seperti pada halaman sebelumnya Akan tetapi kita menghapus Router dan menggantu switch 1 dengan Multilayer switch. Untuk konfigurasi SW2 bisa ke halaman sebelumnya VLANs+ROAS
MLS1(config)#vlan 10
MLS1(config-vlan)#name BLUE
MLS1(config-vlan)#vlan 20
MLS1(config-vlan)#name MAGENTA
MLS1(config)#interface range f0/1-2
MLS1(config-if-range)#switchport mode access
MLS1(config-if-range)#switchport access vlan 10
MLS1(config)#interface range f0/3-4
MLS1(config-if-range)#switchport mode access
MLS1(config-if-range)#switchport access vlan 20
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
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
Mari kita tes koneksivitas antar VLAN.
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