Enabling Cdp On An Interface - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 30
Configuring CDP

Enabling CDP on an Interface

To enable CDP on an interface, use this command:
Command
Switch(config-if)# [no] cdp enable
This example shows how to enable CDP on Fast Ethernet interface 5/1:
Switch(config)# interface fastethernet 5/1
Switch(config-if)# cdp enable
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:
Command
Switch# show cdp interface [type/number]
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:
Command
Switch# clear cdp counters
Switch# clear cdp table
Switch# show cdp
OL_28731-01
Purpose
Enables CDP on an interface.
Use the no keyword to disable CDP on an interface.
Purpose
Displays information about interfaces where CDP is
enabled.
Purpose
Resets the traffic counters to zero.
Deletes the CDP table of information about neighbors.
Displays global information such as frequency of
transmissions and the holdtime for packets being
transmitted.
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
Configuring CDP
30-3

Advertisement

Table of Contents
loading

Table of Contents