Lessons · Network switches · a trunk that is not trunking
The trunk that is not trunking
A port configured as a trunk still needs the far end to agree, the cable to be right, and the port not to be shut, before any VLAN crosses it.
Hone is a place to practise programming. This is one of its lessons, written out in full and free to read without an account.
What it is for
'I set both sides to trunk and nothing works' is a real ticket, and the answer is usually one of three things none of which is the trunk command.
How to think about it
Read the status before rereading the configuration. Disabled means somebody shut it, notconnect means no cable or a dead one, and only after those does the trunk configuration matter.
Worked example
enableThe # prompt.
configure terminalInto configuration mode.
interface gi0/1The uplink.
switchport mode trunkConfigured as a trunk.
shutdownAnd administratively down, which is the fault being reproduced.
endOut.
show interfaces statusGi0/1 disabled, trunk. The configuration is perfect and the port is off.
configure terminalBack in.
interface gi0/1The same port.
no shutdownThe fix.
endOut.
show interfaces statusNow it reads notconnect until a cable is in it, which is a different problem with a different answer.
Your turn
Bring the trunk port back up.
no
Console into a switch
The trap
Retyping `switchport mode trunk` because the trunk is down. The configuration was never the problem, and typing it again changes nothing.