Configuring Ethernet Interfaces
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# [no] cdp advertise {v1 |
v2 }
Step 3
switch(config)# [no] cdp format
device-id {mac-address | serial-number
| system-name}
Step 4
switch(config)# [no] cdp holdtime
seconds
Step 5
switch(config)# [no] cdp timer seconds
This example shows how to configure CDP characteristics:
switch# configure terminal
switch(config)# cdp timer 50
switch(config)# cdp holdtime 120
switch(config)# cdp advertise v2
Enabling or Disabling CDP
You can enable or disable CDP for Ethernet interfaces. This protocol works only when you have it enabled
on both interfaces on the same link.
To enable or disable CDP for an interface, perform this task:
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# interface type slot/port
3. switch(config-if)# cdp enable
4. switch(config-if)# no cdp enable
Purpose
Enters configuration mode.
(Optional)
Configures the version to use to send CDP advertisements. Version-2 is
the default state.
Use the no form of the command to return to its default setting.
(Optional)
Configures the format of the CDP device ID. The default is the system
name, which can be expressed as a fully qualified domain name.
Use the no form of the command to return to its default setting.
(Optional)
Specifies the amount of time a receiving device should hold the information
sent by your device before discarding it. The range is 10 to 255 seconds;
the default is 180 seconds.
Use the no form of the command to return to its default setting.
(Optional)
Sets the transmission frequency of CDP updates in seconds. The range is
5 to 254; the default is 60 seconds.
Use the no form of the command to return to its default setting.
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)N1(1)
Enabling or Disabling CDP
23