INSIGHTS
Certifications & Exams

Cisco 200-301: CDP and LLDP: Finding Network Neighbors

Use CDP and LLDP output to verify physical adjacencies, detect documentation drift and protect topology information at network boundaries.

In this article
  1. Understand the information that a neighbor advertises
  2. Use CDP carefully in a Cisco operating environment
  3. Read LLDP when the environment is multivendor
  4. Reconcile discovery with the documented topology
  5. Control discovery exposure at trust boundaries
  6. Build a meaningful CCNA discovery lab

Network diagrams tell an engineer where a link should go; discovery protocols offer evidence about what is actually attached. Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) share neighbor details across an adjacent link, making them useful when tracing a cable, validating a switch upgrade or identifying the device at the other end of a trunk. Cisco’s 200-301 CCNA v1.1 blueprint explicitly requires configuring and verifying both Layer 2 discovery protocols. The ability to compare reported neighbors with intended design also becomes important in the announced v2.0 refresh.

Neither protocol replaces a cable record, routing table or security assessment. A discovery entry describes a particular local adjacency and may be incomplete, outdated or deliberately unavailable. The engineering task is to use that evidence with interface state, MAC learning, addressing and management records. Understanding the protocol’s scope prevents common mistakes such as treating one advertised management address as the only address by which a device can be reached.

Understand the information that a neighbor advertises

CDP is a Cisco-origin discovery protocol widely used on compatible Cisco network equipment; LLDP is the IEEE 802.1AB standard implemented across many vendors. Both periodically send link-local information to directly connected peers, rather than providing a multihop network-discovery service. A router several hops away will not appear as a directly connected LLDP neighbor unless the underlying physical topology actually makes it adjacent. This boundary is useful: it makes the observations suitable for port-to-port inventory validation.

Fields can include a chassis or device identifier, port identifier, system description, advertised capabilities, management address and time to live. Capability fields tell the viewer what the neighbor claims it can do, such as switching or routing; they do not certify that a particular feature is configured correctly. A neighboring phone might advertise voice-endpoint information and power requirements through LLDP extensions, but the exact elements available depend on implementation and device support.

Pay attention to local versus remote port labels. The local interface is where your device received the advertisement. The neighbor’s port identifier is what the remote device advertised, which may not use the same naming style or numbering scheme. When technicians repatch a rack, copying only the remote device name can miss the mistake; documenting the local port, remote chassis and remote port together exposes it.

Use CDP carefully in a Cisco operating environment

show cdp neighbors provides a compact adjacency list, and show cdp neighbors detail can expose fuller per-neighbor information. On Cisco platforms that support the usual IOS command family, show cdp interface helps determine where CDP is operating. Configuration mechanisms vary by platform and release, but operators should understand the distinction between global CDP state and its enablement on a particular interface.

show cdp neighbors
show cdp neighbors detail
show cdp interface
show interfaces status

CDP is not an authorization mechanism. If a device advertises that it is a switch or router, do not assume it belongs to the approved network. Compare the reported device identity and interface with the change ticket and asset inventory. When the device is unknown, investigate before trusting its configuration. This matters on office-access and outside-facing links where exposing the management plane or neighboring platform details may create an unnecessary information-disclosure risk.

Neighbor age and holdtime also matter. When a discovery entry disappears after a link flap, the absence might reflect aging, disabled discovery or a nonparticipating peer; it does not alone prove the cable is disconnected. Cross-check physical state and bidirectional evidence. On a redundant trunk pair, both expected neighbor relationships should be visible if both links and protocols are operating normally.

Read LLDP when the environment is multivendor

LLDP’s common format is particularly valuable where an enterprise mixes Cisco switching with phones, hypervisors, wireless gear, industrial endpoints or another switch manufacturer. Typical Cisco commands include show lldp neighbors and show lldp neighbors detail. Enablement must be checked on the relevant device and interface; if no neighbor appears, verify that both peers are capable and transmitting before concluding that the physical connection is wrong.

LLDP advertisements are built from type-length-value elements, commonly called TLVs. Mandatory identification fields provide the basis for adjacency reporting, while optional fields and extensions enrich it. LLDP-MED is often relevant for network-attached endpoints such as IP phones because it can convey policy and location-related information, though device capabilities and deployment settings determine what is exchanged. This separates pure neighbor discovery from the additional endpoint-management uses of the protocol.

Neither CDP nor LLDP builds the Spanning Tree topology, negotiates routing adjacency or decides which VLANs a trunk carries. For that, inspect the appropriate control plane. CDP or LLDP might tell you that two switches are connected on the expected interfaces; VLAN and trunk configuration still determines what traffic crosses that link, and Spanning Tree behavior controls which Layer 2 paths forward.

Reconcile discovery with the documented topology

Imagine a campus access switch whose uplink diagram says Gi1/0/48 connects to distribution switch A, port Gi2/0/10. After maintenance, CDP identifies distribution switch B on the local uplink instead. Three possibilities immediately deserve checking: the physical patch has changed, the diagram is outdated, or the advertised device/port identity is misleading. Confirm port status and neighboring chassis IDs, then compare with the other side’s discovery table and the approved cabling records.

Do not “correct” the diagram blindly from one discovery output. Aggregated links may have several physical members, virtual chassis can advertise unexpected identifiers, and shared management address conventions can confuse the record. For a bundled uplink, verify the port-channel as well as each participating member; LACP and EtherChannel state must agree with the supposed physical pairing. A correct diagram represents both logical bundle membership and physical terminations.

When an endpoint is on the wrong network, use the discovery output to identify the adjacent switch, then the MAC table to find the endpoint’s learned port. Only then inspect the access VLAN, authentication state and routed gateway. CDP/LLDP makes the investigation faster by narrowing the physical topology; it does not itself decide whether an ACL, DHCP policy or port security feature is rejecting the host.

Control discovery exposure at trust boundaries

Discovery protocols share potentially useful operational details with a directly connected device, including platform labels, port identity and sometimes management addresses. Restrict advertisement where those details are not needed, particularly on untrusted external handoffs or ports facing unmanaged devices. Preserve it where its operational value is understood, such as controlled inter-switch and selected infrastructure links. The right policy follows link role and threat model, not a blanket assumption that discovery is always harmless or always dangerous.

Protecting a management network still requires actual access controls. Disabling LLDP does not stop a hostile attached device from transmitting ordinary Ethernet frames, and CDP does not provide encryption or mutual authentication. Port security and Layer 2 protections address distinct access-edge threats; SSH and AAA govern remote administration. Engineers should distinguish exposure reduction from authentication, segmentation and authorization.

Build a meaningful CCNA discovery lab

Connect two switching nodes and a third device that supports only LLDP or has CDP disabled. Before looking at the output, record the expected local and remote interfaces. Then verify CDP and LLDP state, neighbor identity, capabilities, age and available management-address information. Move one cable or disable discovery on one side, record what disappears, and use show interfaces to distinguish a discovery change from a physical failure.

Extend the lab to a trunked switch uplink and an access phone. Check that discovery identifies the correct link, then confirm VLAN membership and the forwarding path separately. If the vendor implementation supports LLDP-MED, inspect what policy or endpoint information appears and be explicit about what is not present. This prevents memorized command output from becoming a substitute for reading the data you actually receive.

Neighbor-discovery records are particularly useful during network migrations. Before disconnecting a distribution switch, collect the observed local/remote port pairs, their logical port-channel associations and the approved inventory. After the new switch is installed, compare the freshly learned neighbors with the old physical map. A missing LLDP neighbor may reflect a disabled discovery protocol rather than a disconnected cable, so combine the record with interface link state and a controlled traffic test. Conversely, a neighbor that unexpectedly reports a different chassis can reveal a patching error even though the interface remains up. The decisive evidence is the agreement between the intended topology, both ends’ observations and forwarding tests.

Change windows also demonstrate why discovery age and naming deserve care. Hostnames can change, virtual chassis identifiers may not match the asset label on a rack and stale LLDP records can persist until their holdtime expires. Record the actual interface identifier and timestamp rather than assuming one display is fresh. Where a platform supports both CDP and LLDP, compare them but do not assume both report identical optional fields. If their output disagrees, investigate configuration, protocol support and timing before declaring one source authoritative.

These checks establish the protocol’s proper role: evidence of direct Layer 2 adjacency. They do not prove trust, authorize a newly attached device or describe remote networks beyond the adjacent link.

In production, the outcome is a reliable topology record: device identity, local port, remote port, role, VLAN/trunk or bundle association, owner and last verified date. Use discovery to challenge that record, and use the change-management process to resolve differences. The CCNA learning objective is not simply remembering two acronyms. It is knowing what direct neighbor evidence can establish, what it cannot, and how to turn it into safer network operations.

Filed under Certifications & Exams