3-7. Cisco Discovery Protocol
Configuration of CDP
Feature ExampleThis example shows a switch with the CDP timers altered so that the holdtime is 480 seconds and the update time is 120 seconds. It also shows CDP disabled for port 3/1 through 3/48 on the COS switch and Fast Ethernet ports 1 to 12 on an IOS switch. An example of the COS configuration follows: Console (enable)> set cdp interval 120 Console (enable)> set cdp holdtime 480 Console (enable)> set cdp disable 3/1-48 An example of the Supervisor IOS configuration follows: Switch(config)# cdp timer 120 Switch(config)# cdp holdtime 480 Switch(config)# interface fastethernet 0/1 Switch(config)# no cdp enable Switch(config)# interface fastethernet 0/2 Switch(config)# no cdp enable Switch(config)# interface fastethernet 0/3 Switch(config)# no cdp enable Switch(config)# interface fastethernet 0/4 Switch(config)# no cdp enable Switch(config)# interface fastethernet 0/5 Switch(config)# no cdp enable Switch(config)# interface fastethernet 0/6 Switch(config)# no cdp enable Switch(config)#end Switch#copy running-config startup-config |