Configuring CDP. Understanding CDP CHAPTER. This chapter describes how to configure Cisco Discovery Protocol (CDP) on the Catalyst 3560 switch.

Similar documents
Configuring the Cisco Discovery Protocol

Understanding and Configuring CDP

Configuring LLDP and LLDP-MED

Configuring LLDP and LLDP-MED

CDP Command Reference

Cisco Discovery Protocol Version 2

Cisco Discovery Protocol Version 2

Configuring LLDP, LLDP-MED, and Wired Location Service

Configuring LLDP, LLDP-MED, and Location Service

Using Cisco Discovery Protocol

Cisco Discovery Protocol Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 920 Series)

Configuring MLD Snooping

Configuring LLDP, LLDP-MED, and Wired Location Service

Configuring VTP V3. Configuring VTP V3. VTP V3 Overview. Guidelines and Limitation. This chapter contains the following sections:

Configuring Port-Based Traffic Control

Configuring Web Cache Services By Using WCCP

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VTP. Understanding VTP CHAPTER

Configuring Storm Control

Configuring MLD Snooping

Cisco Discovery Protocol Configuration Guide, Cisco IOS Release 15M&T

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Configuring RMON. Understanding RMON CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VTP. Understanding VTP CHAPTER

VLAN Configuration. Understanding VLANs CHAPTER

Configuring EtherChannels

Configuring EtherChannels and Layer 2 Trunk Failover

Configuring VLANs. Understanding VLANs CHAPTER

Switches running the LAN Base feature set support only static routing on SVIs.

Configuring Voice VLAN

Configuring VLAN Trunks

2] Chapter 2 Cisco IOS Commands traceroute mac

For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.

Configuring SPAN. Understanding SPAN CHAPTER. This chapter describes how to configure Switched Port Analyzer (SPAN) and on the Catalyst 2960 switch.

Configuring SNMP. Understanding SNMP CHAPTER

Topology Neighbor Commands

Configuring EtherChannels and Link-State Tracking

Configuring Port-Based Traffic Control

Configuring InterVLAN Routing

Configuring EtherChannels and Layer 2 Trunk Failover

Configuring VLANs. Finding Feature Information. Prerequisites for VLANs

Configuring IP Multicast Routing

U Commands. udld (configuration mode), page 2 udld (Ethernet), page 4. Cisco Nexus 5600 Series Switches Layer2 Command Reference 1

Configuring Smartports Macros

Configuring EtherChannels and Link-State Tracking

Configuring HSRP. Understanding HSRP CHAPTER

Cisco IOS Commands. abort CHAPTER

Configuring IP Unnumbered Interface

Configuring IP Multicast Routing

Secure Cisco Discovery Protocol

2V] Chapter 2 Catalyst 3560 Switch Cisco IOS Commands shutdown. This command has no arguments or keywords.

Configuring EEE. Finding Feature Information. Information About EEE. EEE Overview

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Configuring Port-Based Traffic Control

Configuring Port-Based Traffic Control

Using Link Layer Discovery Protocol in Multivendor Networks

Configuring sflow. Information About sflow. sflow Agent. This chapter contains the following sections:

Configuring IP Unicast Routing

Configure Global Link Layer Discovery Protocol (LLDP) Settings on a Switch through the Command Line Interface (CLI)

Using Link Layer Discovery Protocol in Multivendor Networks

Configuring Control-Plane Security

IPv6 Multicast Listener Discovery Protocol

Configuring VTP. Understanding How VTP Works CHAPTER

Configuring System MTU

Configuring Port-Based Traffic Control

Configuring Control-Plane Security

AP Power and LAN Connections

Configuring STP. Understanding Spanning-Tree Features CHAPTER

Configuring VLANs. Finding Feature Information. Prerequisites for VLANs

Configuring Cache Services Using the Web Cache Communication Protocol

Configuring DHCP Features

Behavior of Cisco Discovery Protocol between Routers and Switches

VLAN Trunking Protocol (VTP)

Configuring IP Unicast Routing

Configuring Storm Control

Configuring Interface Characteristics

Configuring EEE. Finding Feature Information. Restrictions for EEE

Configure Link Layer Discovery Protocol (LLDP) Properties on a Switch

Cisco HWIC-4ESW and HWIC-D-9ESW EtherSwitch Interface Cards

Configuring IP Unicast Routing

V Commands. virtual ip, page 2 virtual ipv6, page 5 vrf, page 8. Cisco Nexus 7000 Series NX-OS Intelligent Traffic Director Command Reference 1

C H A P T E R Commands Cisco SFS Product Family Command Reference OL

MLD. MLDv1 (defined in RFC 2710), which is derived from IGMPv2. MLDv2 (defined in RFC 3810), which is derived from IGMPv3.

For complete syntax and usage information for the commands used in this chapter, see the Cisco IOS Configuration Fundamentals Command Reference

Understanding and Configuring VTP

Configuring IP Multicast Routing

VLAN Access Control Lists

VLAN Access Control Lists

Configuring 802.1X Port-Based Authentication

Configuring and Analyzing Clustering on Catalyst Fixed Configuration Switches

Configuring Storm Control

Configuring SPAN and RSPAN

Configuring IGMP Snooping and MVR

Introduction to the Catalyst 3920

Cisco IOS Commands. abort CHAPTER

Transcription:

21 CHAPTER This chapter describes how to configure Cisco Discovery Protocol (CDP) on the Catalyst 3560 switch. Note For complete syntax and usage information for the commands used in this chapter, refer to the command reference for this release and the Cisco IOS Configuration Fundamentals Reference for Release 12.1. This chapter consists of these sections: Understanding CDP, page 21-1, page 21-2 Monitoring and Maintaining CDP, page 21-5 Understanding CDP CDP is a device discovery protocol that runs over Layer 2 (the data link layer) on all Cisco-manufactured devices (routers, bridges, access servers, and switches) and allows network management applications to discover Cisco devices that are neighbors of already known devices. With CDP, network management applications can learn the device type and the Simple Network Management Protocol (SNMP) agent address of neighboring devices running lower-layer, transparent protocols. This feature enables applications to send SNMP queries to neighboring devices. CDP runs on all media that support Subnetwork Access Protocol (SNAP). Because CDP runs over the data-link layer only, two systems that support different network-layer protocols can learn about each other. Each CDP-configured device sends periodic messages to a multicast address, advertising at least one address at which it can receive SNMP messages. The advertisements also contain time-to-live, or holdtime information, which is the length of time a receiving device holds CDP information before discarding it. Each device also listens to the messages sent by other devices to learn about neighboring devices. On the switch, CDP enables the Cluster Management Suite to display a graphical view of the network. The switch uses CDP to find cluster candidates and maintain information about cluster members and other devices up to three cluster-enabled devices away from the command switch by default. The switch supports CDP version 2. 21-1

Chapter 21 These sections include CDP configuration information and procedures: Default CDP Configuration, page 21-2 Configuring the CDP Characteristics, page 21-2 Disabling and Enabling CDP, page 21-3 Disabling and Enabling CDP on an Interface, page 21-4 Default CDP Configuration Table 21-1 shows the default CDP configuration. Table 21-1 Default CDP Configuration Feature CDP global state CDP interface state CDP timer (packet update frequency) CDP holdtime (before discarding) CDP version-2 advertisements Default Setting Enabled Enabled 60 seconds 180 seconds Enabled Configuring the CDP Characteristics You can configure the frequency of CDP updates, the amount of time to hold the information before discarding it, and whether or not to send version-2 advertisements. Beginning in privileged EXEC mode, follow these steps to configure the CDP timer, holdtime, and advertisement type. Note Steps 2 through 4 are all optional and can be performed in any order. Step 2 cdp timer seconds (Optional) Set the transmission frequency of CDP updates in seconds. The range is from 5 to 254; the default is 60 seconds. Step 3 cdp holdtime seconds (Optional) Specify the amount of time a receiving device should hold the information sent by your device before discarding it. The range is from 10 to 255 seconds; the default is 180 seconds. Step 4 cdp advertise-v2 (Optional) Configure CDP to send version-2 advertisements. This is the default state. Step 5 end Return to privileged EXEC mode. 21-2

Chapter 21 Step 6 show cdp Verify configuration by displaying global information about CDP on the device. Step 7 copy running-config startup-config (Optional) Save your entries in the configuration file. Use the no form of the CDP commands to return to the default settings. This example shows how to configure and verify CDP characteristics. Switch# configure terminal Switch(config)# cdp timer 50 Switch(config)# cdp holdtime 120 Switch(config)# cdp advertise-v2 Switch(config)# end Switch# show cdp Global CDP information: Sending CDP packets every 50 seconds Sending a holdtime value of 120 seconds Sending CDPv2 advertisements is enabled For additional CDP show commands, see the Monitoring and Maintaining CDP section on page 21-5. Disabling and Enabling CDP CDP is enabled by default. Note Switch clusters and other Cisco devices (such as Cisco IP Phones) regularly exchange CDP messages. Disabling CDP can interrupt cluster discovery and device connectivity. For more information, see Chapter 5, Clustering Switches. Beginning in privileged EXEC mode, follow these steps to disable the CDP device discovery capability: Step 2 no cdp run Disable CDP. Step 3 end Return to privileged EXEC mode. 21-3

Chapter 21 Beginning in privileged EXEC mode, follow these steps to enable CDP when it has been disabled: Step 2 cdp run Enable CDP after disabling it. Step 3 end Return to privileged EXEC mode. This example shows how to enable CDP if it has been disabled. Switch# configure terminal Switch(config)# cdp run Switch(config)# end Disabling 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 a port: Step 2 interface interface-id Enter interface configuration mode, and enter the interface on which you are disabling CDP. Step 3 no cdp enable Disable CDP on an interface. Step 4 end Return to privileged EXEC mode. Step 5 copy running-config startup-config (Optional) Save your entries in the configuration file. Beginning in privileged EXEC mode, follow these steps to enable CDP on a port when it has been disabled: Step 2 interface interface-id Enter interface configuration mode, and enter the interface on which you are enabling CDP. Step 3 cdp enable Enable CDP on an interface after disabling it. Step 4 end Return to privileged EXEC mode. Step 5 copy running-config startup-config (Optional) Save your entries in the configuration file. This example shows how to enable CDP on a port when it has been disabled. Switch# configure terminal Switch(config)# interface gigabitethernet0/1 Switch(config-if)# cdp enable Switch(config-if)# end 21-4

Chapter 21 Monitoring and Maintaining CDP Monitoring and Maintaining CDP To monitor and maintain CDP on your device, perform one or more of these tasks, beginning in privileged EXEC mode. clear cdp counters clear cdp table show cdp show cdp entry entry-name [protocol version] show cdp interface [interface-id] show cdp neighbors [interface-id] [detail] show cdp traffic Description Reset the traffic counters to zero. Delete the CDP table of information about neighbors. Display global information, such as frequency of transmissions and the holdtime for packets being sent. Display information about a specific neighbor. You can enter an asterisk (*) to display all CDP neighbors, or you can enter the name of the neighbor about which you want information. You can also limit the display to information about the protocols enabled on the specified neighbor or information about the version of software running on the device. Display information about interfaces where CDP is enabled. You can limit the display to the interface about which you want information. Display information about neighbors, including device type, interface type and number, holdtime settings, capabilities, platform, and port ID. You can limit the display to neighbors of a specific interface or expand the display to provide more detailed information. Display CDP counters, including the number of packets sent and received and checksum errors. This is an example of the output from the show cdp privileged EXEC commands: Switch# show cdp Global CDP information: Sending CDP packets every 50 seconds Sending a holdtime value of 120 seconds Sending CDPv2 advertisements is enabled 21-5

Monitoring and Maintaining CDP Chapter 21 21-6