VLAN dengan 2 Switch
postingan kali ini saya akan memberikan step by step cara menghubungkan 2 vlan yang berbeda dengan 2 switch.
1. sesuaikan perangkat PC & Switch dengan topologi diatas. jika belum mengerti bisa lihat postingan saya sebelumnya di Membuat Vlan di Packet Tracer
2. kemudian ketikkan perintah pada SW-1 untuk menambahkan vlan seperti dibawah ini.
SW-1>en
SW-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-1(config)#vlan 10
SW-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-1(config)#vlan 10
3. kemudian lakukan assign interface yang akan di jadikan mode trunk dan juga assign interface vlan pada SW-1
SW-1(config)#interface fa 0/1
SW-1(config-if)#switchport mode trunk
SW-1(config-if)#ex
SW-1(config)#
SW-1(config-if)#switchport mode trunk
SW-1(config-if)#ex
SW-1(config)#
SW-1(config)#interface fa 0/2
SW-1(config-if)#switchport mode access
SW-1(config-if)#switchport access vlan 10
SW-1(config-if)#ex
SW-1(config)#vlan 20
SW-1(config-vlan)#ex
SW-1(config)#interface fastEthernet 0/3
SW-1(config-if)#switchport mode access
SW-1(config-if)#switchport access vlan 20
SW-1(config-if)#end
SW-1#
%SYS-5-CONFIG_I: Configured from console by console
SW-1#wr
Building configuration...
[OK]
SW-1#
SW-1(config-if)#switchport mode access
SW-1(config-if)#switchport access vlan 10
SW-1(config-if)#ex
SW-1(config)#vlan 20
SW-1(config-vlan)#ex
SW-1(config)#interface fastEthernet 0/3
SW-1(config-if)#switchport mode access
SW-1(config-if)#switchport access vlan 20
SW-1(config-if)#end
SW-1#
%SYS-5-CONFIG_I: Configured from console by console
SW-1#wr
Building configuration...
[OK]
SW-1#
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#ex
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#ex
Switch#
5. lakukan assign interface yang akan di jadikan mode trunk dan juga assign interface vlan pada SW-2
SW-2(config)#interface fa 0/1
SW-2(config-if)#switch mode trunk
SW-2(config-if)#ex
SW-2(config)#
SW-2(config-if)#switch mode trunk
SW-2(config-if)#ex
SW-2(config)#
SW-2(config)#interface fa 0/2
SW-2(config-if)#switchport mode access
SW-2(config-if)#switchport access vlan 10
SW-2(config-if)#ex
SW-2(config)#vlan 20
SW-2(config-vlan)#ex
SW-2(config)#interface fastEthernet 0/3
SW-2(config-if)#switchport mode access
SW-2(config-if)#switchport access vlan 20
SW-2(config-if)#end
SW-2#
%SYS-5-CONFIG_I: Configured from console by console
SW-2#wr
Building configuration...
[OK]
SW-2#
SW-2(config-if)#switchport mode access
SW-2(config-if)#switchport access vlan 10
SW-2(config-if)#ex
SW-2(config)#vlan 20
SW-2(config-vlan)#ex
SW-2(config)#interface fastEthernet 0/3
SW-2(config-if)#switchport mode access
SW-2(config-if)#switchport access vlan 20
SW-2(config-if)#end
SW-2#
%SYS-5-CONFIG_I: Configured from console by console
SW-2#wr
Building configuration...
[OK]
SW-2#
semoga bermanfaat ....
0 Komentar