Setting The Cdp Enable State On A Port - Cisco WS-C4003 - Catalyst 4000 Chassis Switch Software Configuration Manual

Software guide
Table of Contents

Advertisement

Chapter 20
Configuring CDP

Setting the CDP Enable State on a Port

You can enable or disable CDP on a per-port basis. You must enable CDP globally before the switch will
transmit CDP messages on any ports.
To change the CDP enable state on a per-port basis, perform this task in privileged mode:
Task
Step 1
Set the CDP enable state on individual ports.
Step 2
Verify the CDP configuration.
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
Message Interval
Hold Time
Port
--------
3/1
3/2
3/3
3/4
3/5
3/6
3/7
3/8
3/9
3/10
3/11
3/12
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
Message Interval
Hold Time
Port
--------
3/1
3/2
3/3
3/4
3/5
3/6
3/7
3/8
3/9
3/10
3/11
3/12
Console> (enable)
78-12647-02
: enabled
: 60
: 180
CDP Status
----------
disabled
disabled
disabled
disabled
disabled
disabled
enabled
enabled
enabled
enabled
enabled
enabled
: enabled
: 60
: 180
CDP Status
----------
enabled
enabled
disabled
disabled
disabled
disabled
enabled
enabled
enabled
enabled
enabled
enabled
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
Command
set cdp {enable | disable} [mod_num/port_num]
show cdp port [mod_num[/port_num]]
Configuring CDP
20-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 4000 seriesCatalyst 2948gCatalyst 2980g

Table of Contents