2-240
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 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 i nterface or not
depends on its per-port configuration.
If you configure CDP on a per-port basis, you can enter the mod/po rts... 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 m odu le 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 m odul e 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 Time-To-Live 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