0% found this document useful (0 votes)
18 views

CDP_and_LLDP

Uploaded by

Manehcmis Mane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

CDP_and_LLDP

Uploaded by

Manehcmis Mane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

CDP_and_LLDP.

md 2024-12-09

36. CDP and LLDP (Layer 2 Discovery Protocol)


INTRO TO LAYER 2 DISCOVERY PROTOCOLS

LAYER 2 DISCOVERY PROTOCOL, such as CDP and LLDP share information WITH and DISCOVER
information about NEIGHBORING (Connected) DEVICES

The SHARED INFORMATION includes:

Hostname
IP Address
Device Type
etcetera.

CDP is a Cisco Proprietary Protocol

LLDP is an Industry Standard Protocol (IEEE 802.1AB)

Because they SHARE INFORMATION about the DEVICES in the NETWORK, they can be considered a
security risk and are often NOT used. It is up to the NETWORK ENGINEER / ADMIN to decide if they
want to use them in the NETWORK or not.

CISCO DISCOVERY PROTOCOL (CDP)

CDP is a Cisco proprietary protocol


It is enabled on Cisco devices (routers, switches, firewalls, IP Phones, etc) by DEFAULT

💡 CDP Messages are periodically sent to Multicast MAC ADDRESS `0100.0CCC.CCCC`

When a DEVICE receives a CDP message, it PROCESSES and DISCARDS the message. It does NOT
forward it to other devices.
By DEFAULT, CDP Messages are sent once every 60 seconds

1 / 10
CDP_and_LLDP.md 2024-12-09

By DEFAULT, the CDP hold-time is 180 seconds. If a message isn’t received from a neighbor for 180
seconds, the neighbor is REMOVED from the CDP Neighbor Table
CDPv2 messages are sent by DEFAULT

2 / 10
CDP_and_LLDP.md 2024-12-09

CDP NEIGHBOR TABLES

“Device ID” = What devices were DISCOVERED by CDP

3 / 10
CDP_and_LLDP.md 2024-12-09

“Local Intrface” = What LOCAL device interface the neighbors are connected to

“Holdtime” = Hold-time countdown in seconds (0 = device removed from table)

“Capabilities” = Refers to Capability Codes table (located above output)

“Platform” = Displays the MODEL of the Neighbor Device

“Port ID” = Neighbor ports that LOCAL device is connected to

MORE DETAILED OUTPUT

“Version” = shows what version of Cisco’s IOS is running on the device

SHOW SPECIFIC CDP NEIGHBOR ENTRY

4 / 10
CDP_and_LLDP.md 2024-12-09

CDP CONFIGURATION COMMANDS

CDP is GLOBALLY ENABLED, by DEFAULT


CDP is also ENABLED on each INTERFACE, by DEFAULT
To ENABLE / DISABLE CDP globally: R1(config)# [no] cdp run
To ENABLE / DISABLE CDP on specific interfaces : R1(config-if)# [no] cdp enable
Configure the CDP timer: R1(config)# cdp time *seconds*
Configure the CDP holdtime: R1(config)# cdp holdtime *seconds*
ENABLE / DISABLE CDPv2: R1(config)# [no] cdp advertise-v2

LINK LAYER DISCOVERY PROTOCOL (LLDP)

5 / 10
CDP_and_LLDP.md 2024-12-09

LLDP is an INDUSTRY STANDARD PROTOCOL (IEEE 802.1AB)


It is usually DISABLED on Cisco devices, by DEFAULT, so it must be manually ENABLED
A device can run CDP and LLDP at the same time

💡 LLDP Messages are periodically sent to Multicast MAC ADDRESS `0180.c200.000E`

When a DEVICE receives an LLDP message, it PROCESSES and DISCARDS the message. It does NOT
forward it to OTHER DEVICES
By DEFAULT, LLDP Messages are sent once every 30 seconds
By DEFAULT, LLDP Holdtime is 120 seconds
LLDP has an additional timer called the ‘reinitialization delay’
If LLDP is ENABLED (Globally or on an INTERFACE), this TIMER will DELAY the actual initialization
of LLDP (2 seconds, by DEFAULT)

LLDP CONFIGURATION COMMANDS

LLDP is usually GLOBALLY DISABLED by DEFAULT

LLDP is also DISABLED on each INTERFACE, by DEFAULT

To ENABLE LLDP GLOBALLY : R1(config)# lldp run

To ENABLE LLDP on specific INTERFACES (tx): R1(config-if)# lldp transmit

To ENABLE LLDP on specific INTERFACES (rx): R1(config-if)# lldp receive

YOU NEED TO ENABLE BOTH TO SEND AND RECEIVE (Unless you want to only enable SEND or RECEIVE LLDP
Messages)

Configure the LLDP timer: R1(config)# lldp timer *seconds*


Configure the LLDP holdtime: R1(config)# lldp holdtime *seconds*
Configure the LLDP reinit timer: R1(config)# lldp reinit *seconds*

6 / 10
CDP_and_LLDP.md 2024-12-09

7 / 10
CDP_and_LLDP.md 2024-12-09

SHOW LLDP STATUS

8 / 10
CDP_and_LLDP.md 2024-12-09

SHOW ALL LLDP NEIGHBORS

SHOW LLDP NEIGHBORS in DETAIL

SHOW SPECIFIC LLDP DEVICE ENTRY

9 / 10
CDP_and_LLDP.md 2024-12-09

10 / 10

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy