Lab.14 CCNA Cara konfigurasi Switch Virtual Interface - Untuk menghubugnkan antar VLAN, selain menggunakan Router on a Stick, juga bisa menggunakan Switch Virtual Interface. Pada packet tracer, menggunakan Multi Layer Switch 3560. Defaultnya setiap switch mempunyai template masing-masing, tergantung kemampuan switch. Template tersebut dinamakan Switch Database Manager (SDM).
Untuk melakukan routing Layer 3 di perangkat Layer 2, diperlukan enable fitur L3 pada perangkat Layer 2. Fitur Switch Database Manager (SDM) mode lanbase-routing/routing harus dienble untuk dapat melakukan routing di switch.
Pada topologi diatas MLS1 berfungsi meroutingkan PC0 yang berada di vlan10 dan PC1 yang berada di vlan20 menuju R1. Lab dikatakan berhasil jika PC0 dapat melakukan ping pada R1. Berikut konfigurasi lengkapnya :
Cek mode Switch Database Management, untuk mampu melakukan lab ini harus dirubah menjadi routing/lan-base routing
Switch#show sdm prefer
The current template is "desktop default" template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 1024 VLANs.
number of unicast mac addresses: 6K
number of IPv4 IGMP groups + multicast routes: 1K
number of IPv4 unicast routes: 8K
number of directly-connected IPv4 hosts: 6K
number of indirect IPv4 routes: 2K
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.5K
number of IPv4/MAC security aces: 1K
Switch#
#Mengubah SDM
Switch#configure terminal
Switch(config)#sdm prefer routing
Switch(config)#do reload
System configuration has been modified. Save? [yes/no]:yes
Building configuration...
[OK]
Proceed with reload? [confirm]
Setelah dirubah langkah selanjutnya adalah konfigurasi MLS1. Fitur routing juga harus diaktifkan dengan perintah ip routing pada configuration mode
Switch#configure terminal
Switch(config)#hostname MLS1
#Aktifkan fitur routing
Switch(config)#ip routing
#Membuat vlan 10 dan vlan 20
MLS1(config)#vlan 10
MLS1(config-vlan)#vlan 20
MLS1(config-vlan)#exit
#Membuat access port pada masing-masing interface
MLS1(config)#interface fastEthernet 0/1
MLS1(config-if)#switchport mode access
MLS1(config-if)#switchport access vlan 10
MLS1(config-if)#no switchport nonegotiate
MLS1(config-if)#exit
MLS1(config)#interface fastEthernet 0/2
MLS1(config-if)#switchport mode access
MLS1(config-if)#switchport access vlan 20
MLS1(config-if)#no switchport nonegotiate
MLS1(config-if)#exit
#Memberikan ip address pada masing-masing vlan
MLS1(config)#interface vlan 10
MLS1(config-if)#ip address 10.1.10.1 255.255.255.0
MLS1(config-if)#no shutdown
MLS1(config-if)#exit
MLS1(config)#interface vlan 20
MLS1(config-if)#ip address 10.1.20.1 255.255.255.0
MLS1(config-if)#no shutdown
MLS1(config-if)#end
MLS1#configure terminal
#Memberikan default route menuju R1
MLS1(config)#no ip route 0.0.0.0 0.0.0.0 10.1.30.254
MLS1(config)#exit
#Cek tabel routing di MLS1
MLS1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 3 subnets
C 10.1.10.0 is directly connected, Vlan10
C 10.1.20.0 is directly connected, Vlan20
C 10.1.30.0 is directly connected, GigabitEthernet0/1
MLS1#
0 comments:
Post a Comment