VLAN TRUNK
Trunk berfungsi untuk melewatkan traffic VLAN dari switch yang berbeda, antara switch 1 ke switch 2 yang terhubung. Pc0, pc1, pc 2 dan pc3 ini masuk VLAN 100. Pc 4, pc5, pc6, pc7 ini termasuk vlan 200.
Konfigurasi
Switch 0 :
Switch>enable
Switch#vlan
Switch#vlan
name
Switch#vlan
database
Switch(vlan)#vlan
100 name guru
VLAN
100 added:
Name: guru
Switch(vlan)#vlan
200 name siswa
VLAN
200 added:
Name: siswa
Switch(vlan)#exit
APPLY
completed.
Exiting....
Switch#configure
terminal
Enter
configuration commands, one per line.
End with CNTL/Z.
Switch(config)#interface
fastEthernet 0/2
Switch(config-if)#switchport
access vlan 100
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/3
Switch(config-if)#switchport
access vlan 100
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/5
Switch(config-if)#switchport
access vlan 200
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/4
Switch(config-if)#switchport
access vlan 200
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/1
Switch(config-if)#switchport
mode trunk
Switch(config)#exit
Konfigurasi
Switch 1 :
Switch>enable
Switch#vlan
Switch#vlan
name
Switch#vlan
database
Switch(vlan)#vlan
100 name guru
VLAN
100 added:
Name: guru
Switch(vlan)#vlan
200 name siswa
VLAN
200 added:
Name: siswa
Switch(vlan)#exit
APPLY
completed.
Exiting....
Switch#configure
terminal
Enter
configuration commands, one per line.
End with CNTL/Z.
Switch(config)#interface
fastEthernet 0/2
Switch(config-if)#switchport
access vlan 100
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/3
Switch(config-if)#switchport
access vlan 100
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/5
Switch(config-if)#switchport
access vlan 200
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/4
Switch(config-if)#switchport
access vlan 200
Switch(config-if)#exit
Switch(config)#interface
fastEthernet 0/1
Switch(config-if)#switchport
mode trunk
Switch(config-if)#exit
Hasil Konfigurasi :
Test ping dari PC0 ke PC1, PC2, & PC3
Test ping dari PC8 ke PC5, PC6, & PC7
Tidak ada komentar:
Posting Komentar