Professional Documents
Culture Documents
CDP Information
Device identifier: Typically the hostname
Address list: Network and data-link addresses
Local interface: The interface on the router or switch issuing the show cdp command with which
the neighbor was discovered
Port identifier: Text that identifies the port used by the neighboring device to send CDP
messages to the local device
Capabilities list: Information on what type of device it is (for instance, a router or a switch)
Platform: The model and OS level running in the device
Command Description
Shutdown
no shutdown I nterface subcommands that administratively disable and
enable an interface, respectively.
switchport port-security violation {protect | restrict | Interface subcommand that tells the switch what to do if
shutdown} an inappropriate MAC address tries to access the network
through a secure switch port.
cdp run
no cdp ru Global commands that enable and disable, respectively,
CDP for the entire switch or router.
cdp enable
no cdp enable Interface subcommands that enable and disable,
respectively, CDP for a particular interface.
speed {10 | 100 | 1000} Interface subcommand that manually sets the interface
speed.
duplex {auto | full | half} Interface subcommand that manually sets the interface
duplex.
Command Description
show mac address-table [dynamic | static] [address hw- Displays the MAC address table. The security option
addr] [interface interface-id] [vlan vlan-id] displays information about the restricted or static settings.
show port-security [interface interface-id] [address] Displays information about security options configured on
an interface.
show cdp neighbors [type number] Lists one summary line of information about each
neighbor, or just the neighbor found on a specific
interface if an interface was listed.
show cdp neighbors detail Lists one large set of information (approximately 15 lines)
for every neighbor.
show cdp entry name Displays the same information as the show cdp
neighbors detail command, but only for the named
Chapter 10 Key Topics
neighbor.
show cdp States whether CDP is enabled globally, and lists the
default update and holdtime timers.
show cdp interface [type number] States whether CDP is enabled on each interface, or a
single interface if the interface is listed, and states update
and holdtime timers on those interfaces.
show cdp traffic Displays global statistics for the number of CDP
advertisements sent and received.
show interfaces [type number] Displays detailed information about interface status,
settings, and counters.
show interfaces status [type number] Displays summary information about interface status and
settings, including actual speed and duplex, and whether
the interface was autonegotiated.