Pcornel
Networking · Network Access

Discovery & Device Management

Cheat sheet · https://pcornel.dk/topic.php?topic=13

Back to the Topic

Answer

CDP (Cisco) and LLDP (standard) let directly connected devices announce themselves — name, port, model, address — so you can map what is plugged in where. Device management is reaching the device securely: SSH to a management address, with local or central accounts.

Remember

CDP and LLDP see only the direct neighbour and run per interface; LLDP is often off by default on Cisco. Both reveal information — disable them on ports facing outside. SSH needs a hostname, a domain name, an RSA key, a local user and transport input ssh on the vty lines. A Layer 2 switch needs a management SVI and a default gateway.

First checks

  • show cdp neighbors / show cdp neighbors detail — neighbour, local port, remote port, platform, address.
  • show lldp neighbors / show lldp neighbors detail — the same by LLDP.
  • show cdp interface — where CDP runs.
  • show ip ssh — SSH enabled and version.
  • show line vty 0 4 and show running-config | section line vty — allowed protocols and login method.
  • show users — who is logged on.

Commands

show ip interface brief
Compact IPv4 interface/address/protocol state.
show cdp neighbors detail
Display Cisco neighbor information.
show lldp neighbors detail
Display LLDP neighbor information.
show cdp neighbors [detail]
show cdp traffic
show inventory
show version
show ip arp 10.110.0.64
show mac address-table address <mac>
show cdp neighbors <uplink>
show cdp interface
ip default-gateway
show ip ssh
show cdp neighbors
show lldp neighbors
show line vty 0 4

Verify in this order

link up → CDP or LLDP enabled on both ends → neighbour listed with port and address → management address reachable → SSH enabled with keys → vty lines accept SSH → login authenticated

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=13

Confirmation

Confirm action

Continue?