Configuring Ethernet Interfaces

Enabling or Disabling CDP

 

Command or Action

Purpose

 

 

 

Use the

no form of the command to return to its default

 

 

setting.

 

Step 5

switch(config)# [no] cdp timer

(Optional)

 

seconds

Sets the transmission frequency of CDP updates in seconds.

 

 

The range is 5 to 254; the default is 60 seconds.

 

 

Use the

no form of the command to return to its default

 

 

setting.

 

This example shows how to configure CDP characteristics:

switch# configure terminal switch(config)# cdp timer 50 switch(config)# cdp holdtime 120 switch(config)# cdp advertise v2

Enabling or Disabling CDP

You can enable or disable CDP for Ethernet interfaces. This protocol works only when you have it enabled on both interfaces on the same link.

To enable or disable CDP for an interface, perform this task:

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# interface type slot/port

Enters interface configuration mode for the specified

 

 

interface.

Step 3

switch(config-if)# cdp enable

Enables CDP for the interface.

 

 

To work correctly, this parameter must be enabled

 

 

for both interfaces on the same link.

Step 4

switch(config-if)# no cdp enable

Disables CDP for the interface.

The following example shows how to enable CDP for an Ethernet port:

switch# configure terminal switch(config)# interface ethernet 1/4 switch(config-if)#cdp enable

This command can only be applied to a physical Ethernet interface.

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

OL-26590-01

17

Page 31
Image 31
Cisco Systems N3KC3064TFAL3, N3KC3048TP1GE manual Enabling or Disabling CDP, Seconds