Cisco Discovery Protocol (CDP)

  • (Cisco Discovery Protocol) is a Layer 2 protocol developed by Cisco. It helps Cisco devices (like switches and routers) discover directly connected neighbors.

    Imagine you're connected via console cable to a router (R1), but you have no idea what other devices are connected.

    CDP disabled on router R1, no neighbor information available, unknown devices on both interfaces

    Figure 1 – disabled: R1 cannot see any directly connected neighbors

    If is disabled, R1 stays blind: it sees no neighbors.
    But when is enabled, R1 automatically learns about its directly connected Cisco neighbors such as R2 and R3.

    CDP enabled on router R1, discovering directly connected neighbors R2 and R3 via CDP packets on both interfaces

    Figure 2 – enabled: neighbors R2 and R3 discovered

    is especially useful when you're in an undocumented or unknown network. With just one command, you can start discovering connected devices and mapping the topology.

    Answer the question below

    Click 'Complete' to continue