Enabling Cdp On An Interface; Displaying The Cdp Interface Configuration; Monitoring And Maintaining Cdp - Cisco 4500M Software Manual

Software guide
Table of Contents

Advertisement

Chapter 20
Understanding and Configuring CDP

Enabling CDP on an Interface

To enable CDP on an interface, perform this task:
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, perform this task:
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, perform one or more of these tasks:
Command
Switch# clear cdp counters
Switch# clear cdp table
Switch# show cdp
OL-6696-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 12.2(25)EW
Configuring CDP
20-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

4500 series

Table of Contents