Use debug and show commands
The final step in troubleshooting VLAN trunking issues is to use the debug and show commands to get more information and details about the trunk operation and performance. The debug commands can help you monitor and diagnose the trunk events, such as the trunk negotiation, status, and errors. The show commands can help you verify and display the trunk configuration, statistics, and counters. Some of the useful debug and show commands for VLAN trunking are:
- debug sw-vlan : to debug the VLAN creation, deletion, and membership.
- debug sw-trunk : to debug the trunk negotiation, status, and errors.
- show interfaces switchport : to show the switchport mode, access VLAN, trunk VLANs, and operational status.
- show spanning-tree : to show the spanning-tree protocol information, such as the root bridge, port role, port state, and port cost.
By using these commands, you can get a better understanding of the VLAN trunking issues and how to resolve them effectively.