9.CDP and LLDP
9.CDP and LLDP
Welcome
To
Network for you
CDP and LLDP
Configure and verify Layer 2 discovery protocols (Cisco Discovery Protocol and LLDP)
CDP:
• CDP is CISCO Discovery Protocol.
• CDP is a Layer two discovery Protocol.
• CDP is CISCO Proprietary Protocol.
• CDP message contains information about Device ID, IP address, Port ID, Vlan and
Hardware Platform. Or it is used to share information about other directly connected
CISCO equipment such as the operating system version and IP address.
• CDP enable by default
• CDP advertisements are sent every 60 sec.
• CDP hold time advertised is 180 sec.
• CISCO devices send CDP announcements to the destination MAC address
01:00:0c:cc:cc:cc, out each connected network interface.
Command Description
Sh cdp entry * To get all CDP neighbor entries
sh cdp neighbors To get neighbors information
sh cdp neighbors detail To get the neighbors detail
sh cdp interface To get interface neighbors info
Int e0/0 To disable cdp in any interface we go to that
no cdp enable interface then type
S1: type below command to get CDP info in S1 S2: type below command to get CDP info in S2
Sh cdp entry * Sh cdp entry *
sh cdp neighbors sh cdp neighbors
sh cdp neighbors detail sh cdp neighbors detail
sh cdp interface sh cdp interface
no cdp enable no cdp enable
Cdp timer 100 Cdp timer 100
Cdp holdtime 200 Cdp holdtime 200
Command Description
Lldp run To Enable LLDP Globally
No lldp run To disable LLDP Globally
Int e0/0 To Enable LLDP on an interface
Lldp transmit
Lldp receive
Int e0/0 To disable LLDP on an interface
No Lldp transmit To disable Transmit LLDP
No Lldp receive To disable Receive LLDP
Sh lldp entry * To get all LLDP neighbor entries
Sh lldp To get LLDP timer detal
Sh lldp interface To get interface neighbors info
Lldp timer <time_in_second> To Change LLDP timer
Lldp holdtime <time_in_second> To Change LLDP holdtime