CDP and LLDP
1. Cisco Discovery Protocol (CDP)
Section titled “1. Cisco Discovery Protocol (CDP)”- Cisco proprietary
- CDP messages are sent to mac address
0100.0CCC.CCCC - Default CDP message timer -> 60 seconds
- Default CDP holdtime -> 180 seconds
1.1 Configuration
Section titled “1.1 Configuration”R1# show cdp -- Show cpd global detailsR1# show cdp interface -- Show the interfaces cdp is enabled onR1# show cdp neighbors detail -- Show the neighbor tableR1# show cdp traffic -- Show the number of CDP packets sent/receivedR1# show cdp entry host-name -- Show detailed information for a specific CDP neighborR1(config)# cpd run -- Enable CDP globallyR1(config-if)# cdp enable -- Enable CDP on an interfaceR1(config)# cpd timer seconds -- Configure the CDP message timerR1(config)# cdp holdtime seconds -- Configure the CDP hold timeR1(config)# cdp advertise-v2 -- Enable CDPv22. Link Layer Discovery Protocol
Section titled “2. Link Layer Discovery Protocol”- LLDP messages are sent to MAC address
0180.C200.000E - LLDP message timer -> 30 seconds
- LLDP holdtime -> 120 seconds
- LLDP reinitialization timer -> 2 seconds
2.1 Configuration
Section titled “2.1 Configuration”R1# show lldp traffic -- show information about LLDP frames sent/receivedR1# show lldp -- show global LLDP informationR1# show lldp interface -- show LLDP-enabled interfacesR1# show lldp neighbors -- show the LLDP neighbor tableR1# show lldp neighbors detail -- show detailed information about all LLDP neighborsR1# show lldp entry host-name -- show detailed information about a single LLDP neighborR1(config)# lldp run -- enable LLDPR1(config-if)# lldp transmit -- enable LLDP on an interfaceR1(config-if)# lldp receive -- enable LLDP on an interface (rx)R1(config)# lldp timer seconds -- configure the LLDP message timerR1(config)# lldp reinit secondsShow cdp neighbors
• The device ID of the neighboring device • The capabilities of the neighboring device • The product number of the neighboring device • The holdtime • The local interface • The remote interface