The commands can be entered in any order.
Note
SUMMARY STEPS
1.
configure
2.
cdp advertise v1
3.
cdp holdtime seconds
4.
cdp timer seconds
5.
commit
6.
(Optional)
show cdp
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Configures CDP to use only version 1 (CDPv1) in communicating with
neighboring devices.
cdp advertise v1
Example:
RP/0/RP0/CPU0:router(config)#
cdp advertise v1
Step 2
•
By default, when CDP is enabled, the router sends CDPv2 packets. CDP
also sends and receives CDPv1 packets if the device with which CDP is
interacting does not process CDPv2 packets.
•
In this example, the router is configured to send and receive only CDPv1
packets.
Specifies the amount of time that the receiving networking device will hold a
CDP packet sent from the router before discarding it.
cdp holdtime seconds
Example:
RP/0/RP0/CPU0:router(config)#
cdp holdtime 30
Step 3
•
By default, when CDP is enabled, the receiving networking device holds
a CDP packet for 180 seconds before discarding it.
The CDP hold time must be set to a higher number of seconds than
the time between CDP transmissions, which is set with the
cdp
timer
command.
Note
•
In this example, the value of hold-time for the
seconds
argument is set to
30.
Specifies the frequency at which CDP update packets are sent.
cdp timer seconds
Step 4
Example:
RP/0/RP0/CPU0:router(config)#
cdp timer 20
•
By default, when CDP is enabled, CDP update packets are sent at a
frequency of once every 60 seconds.
A lower timer setting causes CDP updates to be sent more
frequently.
Note
•
In this example, CDP update packets are configured to be sent at a frequency
of once every 20 seconds.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
60
Implementing CDP
Modifying CDP Default Settings