Cara Konfigurasi Trunking Vlan pada Cisco



Pada post sebelumnya kita sudah mencoba mengonfigurasi trunk, jadi bagi yang belum paham Trunk digunakan ketika kita ingin mengizinkan sebuah jalur atau link untuk digunakan lebih dari 1 vlan.
 Sekarang perhatikan topologi dibawah.

Pertama-tama kita buat terlebih dahulu vlan pada setiap switch.

Konfigurasi VLAN Switch0

Switch0(config)#interface fa0/2
Switch0(config-if)# switchport mode access
Switch0(config-if)# switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10
Switch0(config-if)# exit
!
Switch0(config)# interface fa0/3
Switch0(config-if)# switchport mode access
Switch0(config-if)# switchport access vlan 20
% Access VLAN does not exist. Creating vlan 20
Switch0(config-if)# exit

Konfigurasi VLAN Switch1

Switch1(config)# interface fa0/2
Switch1(config-if)# switchport mode access
Switch1(config-if)# switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10
Switch1(config-if)# exit
!
Switch1(config)# interface fa0/3
Switch1(config-if)# switchport mode access
Switch1(config-if)# switchport access vlan 20
% Access VLAN does not exist. Creating vlan 20
Switch1(config-if)# exit

Setelah mengonfigurasi vlan dan mengelompokkannya sekarang kita setting ip address pada setiap PC.

PC0

PC1

PC2


PC3

Setelah itu kita setting interface trunk-nya, perhatikan perintah berikut.

Switch0(config)# interface fa0/1 (interface yang mengarah ke switch)
Switch0(config-if)# switchport mode trunk
!
Switch1(config)# interface fa0/1
Switch1(config-if)# switchport mode trunk

Sekarang ping sesama vlan dan pastikan berhasil.
PC0 Result:

C:\>ping 10.10.10.2

Pinging 10.10.10.2 with 32 bytes of data:
Reply from 10.10.10.2: bytes=32 time=2ms TTL=64
Reply from 10.10.10.2: bytes=32 time=2ms TTL=64
Reply from 10.10.10.2: bytes=32 time=3ms TTL=64
Reply from 10.10.10.2: bytes=32 time=2ms TTL=64

Ping statistics for 192.168.101.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 2ms, Maximum = 3ms, Average = 2ms

C:\>

Komentar

Postingan Populer