Table Of Contents
Configuring the CDP Characteristics
Disabling and Enabling CDP on an Interface
Monitoring and Maintaining CDP
Configuring CDP
This chapter describes how to configure Cisco Discovery Protocol (CDP) on your access point/bridge.
Note For complete syntax and usage information for the commands used in this chapter, refer to the Cisco Aironet 1300 Series Bridge Command Reference for this release and the Cisco IOS Configuration Fundamentals Command Reference for Release 12.2.
This chapter contains these sections:
•Monitoring and Maintaining CDP
Understanding CDP
Cisco Discovery Protocol (CDP) is a device-discovery protocol that runs on all Cisco network equipment. Each device sends identifying messages to a multicast address, and each device monitors the messages sent by other devices. Information in CDP packets is used in network management software such as CiscoWorks2000.
CDP is enabled on the access point/bridge's Ethernet and radio ports by default.
Note For best performance on your wireless LAN, disable CDP on all radio interfaces and on sub-interfaces if VLANs are enabled on the access point/bridge.
Configuring CDP
This section contains CDP configuration information and procedures:
•Configuring the CDP Characteristics
•Disabling and Enabling CDP on an Interface
Default CDP Configuration
Table 16-1 lists the default CDP settings.
Configuring the CDP Characteristics
You can configure the CDP holdtime (the number of seconds before the access point/bridge discards CDP packets) and the CDP timer (the number of seconds between each CDP packets the access point/bridge sends).
Beginning in Privileged Exec mode, follow these steps to configure the CDP holdtime and CDP timer:
Use the no form of the CDP commands to return to the default settings.
This example shows how to configure and verify CDP characteristics:
bridge# configure terminalbridge(config)# cdp holdtime 120bridge(config)# cdp timer 50bridge(config)# endbridge#
show cdpGlobal CDP information:
Sending a holdtime value of 120 seconds
Sending CDP packets every 50 seconds
For additional CDP show commands, see the "Monitoring and Maintaining CDP" section.
Disabling and Enabling CDP
CDP is enabled by default. Beginning in Privileged Exec mode, follow these steps to disable the CDP device discovery capability:
Command PurposeStep 1
configure terminal
Enter global configuration mode.
Step 2
no cdp run
Disable CDP.
Step 3
end
Return to Privileged Exec mode.
Beginning in privileged EXEC mode, follow these steps to enable CDP:
Command PurposeStep 1
configure terminal
Enter global configuration mode.
Step 2
cdp run
Enable CDP after disabling it.
Step 3
end
Return to privileged EXEC mode.
This example shows how to enable CDP.
bridge# configure terminalbridge(config)# cdp runbridge(config)# endDisabling and Enabling CDP on an Interface
CDP is enabled by default on all supported interfaces to send and receive CDP information.
Beginning in privileged EXEC mode, follow these steps to disable CDP on an interface:
Beginning in privileged EXEC mode, follow these steps to enable CDP on an interface:
This example shows how to enable CDP on an interface:
bridge# configure terminalbridge(config)# interface xbridge(config-if)# cdp enablebridge(config-if)# endMonitoring and Maintaining CDP
To monitor and maintain CDP on your device, perform one or more of these tasks, beginning in privileged EXEC mode.
Below are six examples of output from the CDP show privileged EXEC commands:
bridge
#
show cdpGlobal CDP information:
Sending CDP packets every 50 seconds
Sending a holdtime value of 120 seconds
bridge# show cdp entry *-------------------------Device ID: bridgeEntry address(es):IP address: 10.1.1.66Platform: cisco WS-C3550-12T, Capabilities: Switch IGMPInterface: GigabitEthernet0/2, Port ID (outgoing port): GigabitEthernet0/2Holdtime : 129 secVersion :Cisco Internetwork Operating System SoftwareIOS (tm) C3550 Software (C3550-I5Q3L2-M), Experimental Version 12.1(20010612:021316) [jang-flamingo 120]Copyright (c) 1986-2001 by cisco Systems, Inc.Compiled Fri 06-Jul-01 18:18 by jangadvertisement version: 2Protocol Hello: OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF00000000000000024B293A00FF0000VTP Management Domain: ''Duplex: full-------------------------Device ID: idf2-1-lab-l3.cisco.comEntry address(es):IP address: 10.1.1.10Platform: cisco WS-C3524-XL, Capabilities: Trans-Bridge SwitchInterface: GigabitEthernet0/1, Port ID (outgoing port): FastEthernet0/10Holdtime : 141 secVersion :Cisco Internetwork Operating System SoftwareIOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5.1)XP, MAINTENANCE INTERIM SOFTWARECopyright (c) 1986-1999 by cisco Systems, Inc.Compiled Fri 10-Dec-99 11:16 by cchangadvertisement version: 2Protocol Hello: OUI=0x00000C, Protocol ID=0x0112; payload len=25, value=00000000FFFFFFFF010101FF000000000000000142EFA400FFVTP Management Domain: ''bridge# show cdp entry * protocolProtocol information for talSwitch14 :IP address: 172.20.135.194Protocol information for tstswitch2 :IP address: 172.20.135.204IP address: 172.20.135.202Protocol information for tstswitch2 :IP address: 172.20.135.204IP address: 172.20.135.202bridge# show cdp interfaceGigabitEthernet0/1 is up, line protocol is upEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/2 is up, line protocol is downEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/3 is administratively down, line protocol is downEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/4 is up, line protocol is downEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/5 is up, line protocol is upEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/6 is up, line protocol is upEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/7 is up, line protocol is downEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsGigabitEthernet0/8 is up, line protocol is downEncapsulation ARPASending CDP packets every 60 secondsHoldtime is 180 secondsbridge# show cdp neighborCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - RepeaterDevice ID Local Interface Holdtme Capability Platform Port IDPerdido2 Gig 0/6 125 R S I WS-C3550-1Gig 0/6Perdido2 Gig 0/5 125 R S I WS-C3550-1Gig 0/5bridge# show cdp trafficCDP counters :Total packets output: 50882, Input: 52510Hdr syntax: 0, Chksum error: 0, Encaps failed: 0No memory: 0, Invalid packet: 0, Fragmented: 0CDP version 1 advertisements output: 0, Input: 0CDP version 2 advertisements output: 50882, Input: 52510