Cara Setting Virtual Lan (VLAN) di Cisco
VLAN yang sudah ada secara default pada Cisco Switch
Switch#sh vlan
1 2 3 4 5 6 7 8 9 10 11 12 13 | VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup |
VLAN yang akan dibuat
vlan 10 mhs : Fa0/1, Fa0/2
vlan 20 dosen : Fa0/3, Fa0/4
PC0 192.168.1.1 255.255.255.0 pada port Fa0/1
PC1 192.168.1.2 255.255.255.0 pada port Fa0/2
PC2 192.168.1.3 255.255.255.0 pada port Fa0/3
PC3 192.168.1.4 255.255.255.0 pada port Fa0/4
Konfigurasi Switch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | Switch>en Switch#conf t Switch(config)#vlan 10 Switch(config-vlan)#name mhs Switch(config-vlan)#exit Switch(config)#vlan 20 Switch(config-vlan)#name dosen Switch(config-vlan)#exit Switch(config)#int fa0/1 Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#int fa0/2 Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#int fa0/3 Switch(config-if)#switchport access vlan 20 Switch(config-if)#exit Switch(config)#int fa0/4 Switch(config-if)#switchport access vlan 20 Switch(config-if)#exit |
Setelah dikonfigurasi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Switch#sh run ... ! interface FastEthernet0/1 switchport access vlan 10 ! interface FastEthernet0/2 switchport access vlan 10 ! interface FastEthernet0/3 switchport access vlan 20 ! interface FastEthernet0/4 switchport access vlan 20 ... |
VLAN yang sudah dibuat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Switch#sh vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 10 mhs active Fa0/1, Fa0/2 20 dosen active Fa0/3, Fa0/4 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup |
referensi :
Buku Panduan CISCO, ID-Networkers