Disabling And Enabling Cdp On An Interface - Cisco Catalyst 2960 Software Configuration Manual

Hide thumbs Also See for Catalyst 2960:
Table of Contents

Advertisement

Configuring CDP
Beginning in privileged EXEC mode, follow these steps to disable the CDP device discovery capability:
Command
Step 1
configure terminal
Step 2
no cdp run
Step 3
end
Beginning in privileged EXEC mode, follow these steps to enable CDP when it has been disabled:
Command
Step 1
configure terminal
Step 2
cdp run
Step 3
end
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 to receive CDP information.
Beginning in privileged EXEC mode, follow these steps to disable CDP on a port:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
no cdp enable
Step 4
end
Step 5
copy running-config startup-config
Catalyst 2960 and 2960-S Switches Software Configuration Guide, Release 15.0(1)SE
25-4
Purpose
Enter global configuration mode.
Disable CDP.
Return to privileged EXEC mode.
Purpose
Enter global configuration mode.
Enable CDP after disabling it.
Return to privileged EXEC mode.
Purpose
Enter global configuration mode.
Specify the interface on which you are disabling CDP, and enter
interface configuration mode.
Disable CDP on the interface.
Return to privileged EXEC mode.
(Optional) Save your entries in the configuration file.
Chapter 25
Configuring CDP
OL-26520-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 2960-s

Table of Contents