Study FAQ
How can I use CDP and LLDP to verify the switch port at the other end of a link?
Also asked as 2
- How do I confirm direct switch cabling with CDP or LLDP neighbor output?
- Which fields in CDP or LLDP show my local port and the connected remote port?
Answer
Use Cisco Discovery Protocol (CDP) or Link Layer Discovery Protocol (LLDP) to match the device’s local interface to the advertised remote device and port. CDP is Cisco-specific, and LLDP is standards-based, making it useful across vendors. A neighbor appears when the link and participating protocol directions allow discovery advertisements to be exchanged.
On a Catalyst 9300 running IOS XE 17.15.x, start with show cdp neighbors or show lldp neighbors. Compare the local interface and the advertised device and remote port ID to your cabling plan. LLDP port ID formats can differ by peer. Compare from both ends where you have access, and check protocol enablement and advertisements if an entry is missing. Neighbor discovery confirms the observed adjacency. Verify VLAN carriage, forwarding state, and reachability separately if you need to prove that the path works.
References
Full explanation
Rapid PVST+, EtherChannel, CDP, and LLDP Operations
Study guide · 200-301
Read the full explanation