Cisco Discovery Protocol (CDP)

  • 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\n\n

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

    If CDP is disabled, R1 stays blind it sees no neighbors.
    But when CDP 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 – CDP enabled: neighbors R2 and R3 discovered

    CDP 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