![](http://pdfasset.owneriq.net/3/88/3884ec60-08cc-bac4-b176-2f6590d63c88/3884ec60-08cc-bac4-b176-2f6590d63c88-bgb3.png)
Discovery Protocols Command Set
Enterasys Discovery Protocol
Matrix NSA Series Configuration Guide 3-7
3.2.2.2 set cdp state
Use this command to enable or disable the CDP discovery protocol on one or more ports.
set cdp state {auto | disable | enable} [port-string]
Syntax Description
Command Defaults
If port-string is not specified, the CDP state will be globally set.
Command Type
Switch command.
Command Mode
Read-Write.
Examples
This example shows how to globally enable CDP:
This example shows how to enable the CDP for port fe.1.2:
This example shows how to disable the CDP for port fe.1.2:
auto | disable |
enable
Auto-enables, disables or enables the CDP protocol on the
specified port(s). In auto-enable mode, which is the default
mode for all ports, a port automatically becomes
CDP-enabled upon receiving its first CDP message.
port-string (Optional) Enables or disables CDP on specific port(s). For
a detailed description of possible port-string values, refer to
Section 4.1.1.
Matrix(rw)->set cdp state enable
Matrix(rw)->set cdp state enable fe.1.2
Matrix(rw)->set cdp state disable fe.1.2