31-3
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 31 Configuring CDP
Configuring CDP
This example shows how to disable CDP on Fast Ethernet interface 5/1:
Switch(config)#
interface fastethernet 5/1
Switch(config-if)#
no cdp enable
Displaying the CDP Interface Configuration
To display the CDP configuration for an interface, use this command:
This example shows how to display the CDP configuration of Fast Ethernet interface 5/1:
Switch#
show cdp interface fastethernet 5/1
FastEthernet5/1 is up, line protocol is up
Encapsulation ARPA
Sending CDP packets every 120 seconds
Holdtime is 180 seconds
Switch#
Monitoring and Maintaining CDP
To monitor and maintain CDP on your device, enter one or more of the following commands:
This example shows how to clear the CDP counter configuration on your switch:
Command
Purpose
Switch#
show cdp interface
[
type
/
number
]
Displays information about interfaces where CDP is
enabled.
Command
Purpose
Switch#
clear cdp counters
Resets the traffic counters to zero.
Switch#
clear cdp table
Deletes the CDP table of information about neighbors.
Switch#
show cdp
Displays global information such as frequency of
transmissions and the holdtime for packets being
transmitted.
Switch#
show cdp entry
entry_name
[
protocol
|
version
]
Displays information about a specific neighbor. The
display can be limited to protocol or version
information.
Switch#
show cdp interface
[
type
/
number
]
Displays information about interfaces on which CDP is
enabled.
Switch#
show cdp neighbors
[
type
/
number
] [
detail
]
Displays information about neighboring equipment.
The display can be limited to neighbors on a specific
interface and expanded to provide more detailed
information.
Switch#
show cdp traffic
Displays CDP counters, including the number of
packets sent and received and checksum errors.
Switch#
show debugging
Displays information about the types of debugging that
are enabled for your switch.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...