Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
2-288
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
set cdp
Usage Guidelines The set cdp version command allows you to globally set the highest version number of CDP packets to
send.
If you enter the global set cdp enable or disable command, CDP is globally configured. If CDP is
globally disabled, CDP is automatically disabled on all interfaces, but the per-port enable (or disable)
configuration is not changed. If you globally enable CDP, whether CDP is running on an interface or not
depends on its per-port configuration.
If you configure CDP on a per-port basis, you can enter the mod/ports... value as a single module and
port or a range of ports; for example, 2/1-12,3/5-12.
Examples This example shows how to enable the CDP message display for port 1 on module 2:
Console> (enable) set cdp enable 2/1
CDP enabled on port 2/1.
Console> (enable)
This example shows how to disable the CDP message display for port 1 on module 2:
Console> (enable) set cdp disable 2/1
CDP disabled on port 2/1.
Console> (enable)
This example shows how to specify the CDP message interval value:
Console> (enable) set cdp interval 400
CDP interval set to 400 seconds.
Console> (enable)
This example shows how to specify the global TTL value:
Console> (enable) set cdp holdtime 200
CDP holdtime set to 200 seconds.
Console> (enable)
This example shows how to set the device ID format to MAC address:
Console> (enable) set cdp format device-id mac-address
Device Id format changed to MAC-address
Console> (enable)
Related Commands show cdp
show port cdp