Routing Statis Dengan Multilayer Switch
B. Langkah Kerja :
- Konfigurasi switch layer 3
- Memberi nama vlan, perintahnya :
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name guru
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name siswa
- Memberi ip address pada vlan 10 dan 20, perintahnya :
Switch(config-vlan)#int fa0/1
Switch(config-if)#int vlan 10
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#int vlan 20
Switch(config-if)#ip address 20.20.20.1 255.255.255.0
- Memberikan akses ke port>>> #interface fa0/1>>> #switchport mode access>>> #switchport access vlanBuat ip address pada interface switch fa0/1 – fa0/4, perintahnya :
Switch(config-vlan)#int fa0/1
Switch(config-if)#int vlan 10
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#int vlan 20
Switch(config-if)#ip address 20.20.20.1 255.255.255.0
Switch(config-if)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int fa0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#switchport mode access
Switch(config-if)#int fa0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#switchport mode access
Switch(config-if)#int fa0/4
Switch(config-if)#switchport access vlan 20
Switch(config-if)#switchport mode access
- Routing Switch Layer 3
Ketikan ip routing untuk merouting vlan : Switch(config-if)#ip routing
C. Hasil Verifikasi Layer 3 :
PC>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address………: FE80::202:16FF:FE76:7115
IP Address………………….: 20.20.20.3
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 20.20.20.1