113
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter C Commands
cdp enable
cdp enable
To enable the Cisco Discovery Protocol (CDP) on an interface, use the cdp enable command. To disable
CDP on the interface, use the no form of this command.
cdp enable
no cdp enable
Syntax Description This command has no arguments or keywords.
Command Default None
Command Modes Interface configuration mode
Virtual Ethernet interface configuration mode
Command History
Usage Guidelines You can use this command on the following interfaces:
• Ethernet interface
• Management interface
• Virtual Ethernet interface
Examples This example shows how to enable CDP on an Ethernet interface:
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# cdp enable
This example shows how to enable CDP on a specific virtual Ethernet interface:
switch# configure terminal
switch(config)# interface vethernet 1
switch(config-if)# cdp enable
This example shows how to disable CDP on a specific virtual Ethernet interface:
switch# configure terminal
switch(config)# interface vethernet 1
switch(config-if)# no cdp enable
Release Modification
5.2(1)N1(1) This command was introduced.