Configuring Ethernet Interfaces

Configuring the CDP Characteristics

 

Command or Action

Purpose

Step 3

switch(config-if)# no negotiate auto

Disables link negotiation on the selected Ethernet

 

 

interface (1-Gigabit port).

Step 4

switch(config-if)# negotiate auto

(Optional)

 

 

Enables link negotiation on the selected Ethernet

 

 

interface. The default for 1-Gigabit ports is enabled.

This example shows how to disable auto negotiation on a specified Ethernet interface (1-Gigabit port):

switch# configure terminal switch(config)# interface ethernet 1/1 switch(config-if)#no negotiate auto switch(config-if)#

This example shows how to enable auto negotiation on a specified Ethernet interface (1-Gigabit port):

switch# configure terminal switch(config)# interface ethernet 1/5 switch(config-if)#negotiate auto switch(config-if)#

Configuring the CDP Characteristics

You can configure the frequency of Cisco Discovery Protocol (CDP) updates, the amount of time to hold the information before discarding it, and whether or not to send Version-2 advertisements.

To configure CDP characteristics for an interface, perform this task:

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# [no] cdp

(Optional)

 

advertise {v1 v2 }

Configures the version to use to send CDP advertisements.

 

 

Version-2 is the default state.

 

 

Use the no form of the command to return to its default

 

 

setting.

Step 3

switch(config)# [no] cdp format

(Optional)

 

device-id {mac-address

Configures the format of the CDP device ID. The default is

 

serial-number system-name}

the system name, which can be expressed as a fully qualified

 

 

domain name.

 

 

Use the no form of the command to return to its default

 

 

setting.

Step 4

switch(config)# [no] cdp

(Optional)

 

holdtime seconds

Specifies the amount of time a receiving device should hold

 

 

the information sent by your device before discarding it. The

 

 

range is 10 to 255 seconds; the default is 180 seconds.

 

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

16

OL-26590-01

Page 30
Image 30
Cisco Systems N3KC3048TP1GE Configuring the CDP Characteristics, Advertise v1, Device-id mac-address, Holdtime seconds