Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. {{indexmenu_n>035}} ====== Cisco : inter-vlan Multi Layer Switch SVI (Switch virtual interface ) ====== Pada halaman sebelumnya [[roas|]] 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. ===== Syntax ===== ==== Konfigurasi SVI pada VLAN ==== <code bash> # Membuat SVI VLAN 10 dan memberikan IP sebagai gateway VLAN interface vlan 10 ip address 192.168.10.1 255.255.255.0 no shutdown # SVI untuk VLAN 20 interface vlan 20 ip address 192.168.20.1 255.255.255.0 no shutdown </code> ==== Mengaktifkan fungsi routing (Layer 3) pada multilayer switch ==== <code bash> conf t ip routing </code> ===== Topologi ===== {{ :networking:cisco:cisco_mls.png?nolink |}} 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 ===== * **Step 1 : Konfigurasi VLAN Pada MLS** <code> MLS1(config)#vlan 10 MLS1(config-vlan)#name BLUE MLS1(config-vlan)#vlan 20 MLS1(config-vlan)#name MAGENTA </code> * **Step 2 : Konfigurasi Access Ports MLS** <code> 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 </code> * **Step 3 : Konfigurasi trunk interface** <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> ===== 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.txt Last modified: 2026/02/03 22:22by ilyasa