Cisco setup trunk switches

Setup trunk between switches

conf t
enter into configuration mode of switch #1
int fa0/24
select interface for using trunking
switchport mode trunk
set the selected port for trunking
switchport trunk native vlan 100
set VLAN 100 as native VLAN during trunking, so untagged traffic will go trough this VLAN
end
finish configuration on switch #1
sh vlan
check VLAN-s are properly configured for the interfaces, access ports are in the same VLAN on both sides
repeat the same procedure on switch #2
sh interfaces trunk
check the trunk status
switch trunk allowed vlan 4
restrict trunk connection only for transferring VLAN 4

Share with: