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
Dan berikut adalah hasil percobaan ping dari ip 200.200.200.1 ke 200.200.200.4
PC>ping 200.200.200.1
Pinging 200.200.200.1 with 32 bytes of data:
Reply from 200.200.200.1: bytes=32 time=1ms TTL=128
Reply from 200.200.200.1: bytes=32 time=11ms TTL=128
Reply from 200.200.200.1: bytes=32 time=0ms TTL=128
Reply from 200.200.200.1: bytes=32 time=17ms TTL=128
Ping statistics for 200.200.200.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 17ms, Average = 7ms
Pada konfigurasi kali ini masih belum dapat terhubung dengan berbeda segmen, agar bisa menghubungkannya kira perlu memberikan 1 buah router diantara switch nya.
kita hanya perlu menambahkan sedikit konfigurasi pada routernya seperti berikut ini :
Router(config)#interface FastEthernet 0/0.10
Router(config-subif)#interface FastEthernet 0/0.10
Router(config-subif)#ip address 100.100.100.1 255.255.255.0
Router(config-subif)#exit
Router(config)#interface FastEthernet 0/0.20
Router(config-subif)#interface FastEthernet 0/0.20
Router(config-subif)#ip address 200.200.200.1 255.255.255.0
0 komentar:
Posting Komentar