Configuring CDP
Clearing CDP Counters and Tables
Use the clear cdp counters command to clear CDP traffic counters for all interfaces. You can issue this
command for a specified interface or for all interfaces (management and Gigabit Ethernet interfaces).
switch# clear cdp counters
Use the clear cdp table command to clear neighboring CDP entries for all interfaces. You can issue this
command for a specified interface or for all interfaces (management and Gigabit Ethernet interfaces).
switch# clear cdp table interface gigabitethernet 4/1
CDP Example Configuration
This example enables the CDP feature and configures the refresh and hold timers:
configure terminal
cdp enable
cdp timer 50
cdp holdtime 100
Default Settings for CDP
This table lists the CDP default settings.
Table 17: CDP Default Settings
Parameters
CDP
CDP version
CDP device ID
CDP timer
CDP hold timer
OL-29291-02
Default
Enabled globally and on all interfaces
Version 2
Serial number
60 seconds
180 seconds
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
Clearing CDP Counters and Tables
129