
21-3
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Chapter 21 Configuring CDP
Configuring CDP on the Switch
To set the CDP enable state on a per-port basis, perform this task in privileged mode:
This example shows how to disable CDP on ports 3/1–6 and verify the configuration:
Console> (enable) set cdp disable 3/1-6
CDP disabled on ports 3/1-6.
Console> (enable) show cdp port 3
CDP : enabled
Message Interval : 60
Hold Time : 180
Port CDP Status
-------- ----------
3/1 disabled
3/2 disabled
3/3 disabled
3/4 disabled
3/5 disabled
3/6 disabled
3/7 enabled
3/8 enabled
3/9 enabled
3/10 enabled
3/11 enabled
3/12 enabled
Console> (enable)
This example shows how to enable CDP on ports 3/1–2 and verify the configuration:
Console> (enable) set cdp enable 3/1-2
CDP enabled on ports 3/1-2.
Console> (enable) show cdp port 3
CDP : enabled
Message Interval : 60
Hold Time : 180
Port CDP Status
-------- ----------
3/1 enabled
3/2 enabled
3/3 disabled
3/4 disabled
3/5 disabled
3/6 disabled
3/7 enabled
3/8 enabled
3/9 enabled
3/10 enabled
3/11 enabled
3/12 enabled
Console> (enable)
Task
Command
Step 1
Set the CDP enable state on individual ports.
set cdp {enable | disable} [mod_num/port_num]
Step 2
Verify the CDP configuration.
show cdp port [mod_num[/port_num]]