The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with C.
To set a profile capability for a virtual Ethernet interface, use the capability command. To remove the profile capability of an interface, use the no form of this command.
profile capability iscsi-multipath
no profile capability iscsi-multipath
Virtual Ethernet interface configuration mode
|
|
---|---|
This example shows how to set the profile capability for a specific virtual Ethernet interface:
|
|
---|---|
Displays the specified virtual Ethernet interface, attributes, and status. |
|
To set the carrier delay on a serial interface, use the carrier-delay command. To return to the default carrier delay value, use the no form of this command.
carrier-delay { delay-seconds | msec milliseconds }
|
|
---|---|
You can use this command on a VLAN interface.
If a link goes down and comes back up before the carrier delay timer expires, the down state is effectively filtered, and the rest of the software on the switch is not aware that a link-down event occurred. Therefore, a large carrier delay timer results in fewer link-up/link-down events being detected. Setting the carrier delay time to 0 means that every link-up/link-down event is detected.
This example shows how to change the carrier delay to 10 seconds:
This example shows how to revert to the default carrier delay value:
|
|
---|---|
Displays the running configuration information for an interface. |
To enable the Cisco Discovery Protocol (CDP) and configure CDP attributes, use the cdp command. To disable CDP or reset CDP attributes, use the no form of this command.
cdp { advertise { v1 | v2 } | enable | format device-id { mac-address | serial-number | system-name } | holdtime seconds | timer seconds }
no cdp { advertise | enable | format device-id { mac-address | serial-number | system-name } | holdtime seconds | timer seconds }
|
|
---|---|
This example shows how to enable CDP on all Ethernet interfaces:
This example shows how to configure the MAC address as the CDP device ID:
This example shows how to disable CDP on all Ethernet interfaces:
|
|
---|---|
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.
Interface configuration mode
Virtual Ethernet interface configuration mode
|
|
---|---|
This example shows how to enable CDP on an Ethernet interface:
This example shows how to enable CDP on a specific virtual Ethernet interface:
This example shows how to disable CDP on a specific virtual Ethernet interface:
|
|
---|---|
To assign and configure a physical interface to an EtherChannel, use the channel-group command. To remove the channel group configuration from the interface, use the no form of this command.
channel-group number [ force ] [ mode { active | on | passive }]
|
|
---|---|
Use this command to create a channel group that includes the interface that you are working on and to add or remove specific interfaces from the channel group. Use this command to move a port from one channel group to another. You enter the channel group that you want the port to move to; the switch automatically removes the specified port from its present channel group and adds it to the specified channel group.
Use the force keyword to force the addition of the interface into the specified channel group.
After you enable LACP globally, by using the feature lacp command, you enable LACP on each channel by configuring the channel mode as either active or passive. An EtherChannel in the on channel mode is a pure EtherChannel and can aggregate a maximum of eight ports. The EtherChannel does not run LACP.
You cannot change the mode for an existing EtherChannel or any of its interfaces if that EtherChannel is not running LACP; the channel mode remains as on. The system returns an error message if you attempt to change the mode.
Use the no form of this command to remove the physical interface from the EtherChannel. When you delete the last physical interface from an EtherChannel, the EtherChannel remains. To delete the EtherChannel completely, use the no form of the interface port-channel command.
The compatibility check includes the following operational attributes:
Use the show port-channel compatibility-parameters command to see the full list of compatibility checks that Cisco NX-OS uses.
You can only add interfaces configured with the channel mode set to on for static EtherChannels, that is, without a configured aggregation protocol. You can only add interfaces configured with the channel mode as active or passive to EtherChannels that are running LACP.
You can configure these attributes on an individual member port. If you configure a member port with an incompatible attribute, Cisco NX-OS suspends that port in the EtherChannel.
When the interface joins an EtherChannel, some of its individual parameters are overridden with the values on the EtherChannel, as follows:
Interface parameters, such as the following, remain unaffected when the interface joins or leaves a EtherChannel:
If interfaces are configured for the EtherChannel interface and a member port is removed from the EtherChannel, the configuration of the EtherChannel interface is not propagated to the member ports.
Any configuration changes that you make in any of the compatibility parameters to the EtherChannel interface are propagated to all interfaces within the same channel group as the EtherChannel (for example, configuration changes are also propagated to the physical interfaces that are not part of the EtherChannel but are part of the channel group).
This example shows how to add an interface to LACP channel group 5 in active mode:
switch(config)#
interface ethernet 1/1
switch(config-if)#
channel-group 5 mode active
switch(config-if)#
This example shows how to forcefully add an interface to the channel group 5:
switch(config)#
interface ethernet 1/1
switch(config-if)#
channel-group 5 force
switch(config-if)#
|
|
---|---|
Displays information about the traffic on the specified EtherChannel interface. |
|
To clear the Link Aggregation Control Protocol (LACP) counters, use the clear lacp counters command.
clear lacp counters [ interface port-channel channel-num ]
(Optional) Clears the LACP counters of a specific interface. |
|
(Optional) Specifies a port channel interface. The range is from 1 to 4096. |
|
|
---|---|
This example shows how to clear all LACP counters:
This example shows how to clear the LACP on a port channel:
|
|
---|---|
To clear statistical information from the access list, use the clear mac access-list counters command.
clear mac access-list counters [ name ]
(Optional) Name of a specific counter to clear. The name can be a maximum of 64 characters. |
|
|
---|---|
This example shows how to clear statistical information from the access list:
mac access-list counters
|
|
---|---|
To clear the dynamic address entries from the MAC address table, use the clear mac address-table dynamic command.
clear mac address-table dynamic [[ address mac-addr ] | [ interface { ethernet slot /[ QSFP-module /] port | port-channel number }]] [ vlan vlan-id ]
|
|
---|---|
Use the clear mac address-table dynamic command with no arguments to remove all dynamic entries from the table.
To clear static MAC addresses from the table, use the no mac address-table static command.
If the clear mac address-table dynamic command is entered with no options, all dynamic addresses are removed. If you specify an address but do not specify an interface, the address is deleted from all interfaces. If you specify an interface but do not specify an address, the switch removes all addresses on the specified interfaces.
This example shows how to clear all the dynamic entries from the MAC address table:
mac address-table dynamic
This example shows how to clear all the dynamic entries from the MAC address table for VLAN 2:
mac address-table dynamic vlan 2
|
|
---|---|
To clear port security information, use the clear port-security dynamic command.
clear port-security dynamic { address MAC-addr vlan vlan-ID | interface { ethernet slot /[ QSFP-module /] port [ vlan vlan-ID ] | port-channel channel-num [ vlan vlan-ID ]}}
|
|
---|---|
This example shows how to clear the dynamically secured MAC address information:
|
|
---|---|
Configures the switchport parameters to establish port security. |
To clear the counters for the Spanning Tree Protocol (STP), use the clear spanning-tree counters command.
clear spanning-tree counters [ interface { ethernet s lot /[ QSFP-module /] port | port-channel channel }] [ vlan vlan-id ]
|
|
---|---|
You can clear all the STP counters on the entire switch, per VLAN, or per interface.
This example shows how to clear the STP counters for VLAN 5:
switch#
clear
spanning-tree counters vlan 5
|
|
---|---|
To restart the protocol migration, use the clear spanning-tree detected-protocol command. With no arguments, the command is applied to every port of the switch.
clear spanning-tree detected-protocol [ interface { ethernet slot /[ QSFP-module /] port | port-channel channel }]
|
|
---|---|
Rapid per VLAN Spanning Tree Plus (Rapid PVST+) and Multiple Spanning Tree (MST) have built-in compatibility mechanisms that allow them to interact properly with other versions of IEEE spanning tree or other regions. For example, a switch running Rapid PVST+ can send 802.1D bridge protocol data units (BPDUs) on one of its ports when it is connected to a legacy device. An MST switch can detect that a port is at the boundary of a region when it receives a legacy BPDU or an MST BPDU that is associated with a different region.
These mechanisms are not always able to revert to the most efficient mode. For example, a Rapid PVST+ switch that is designated for a legacy 802.1D bridge stays in 802.1D mode even after the legacy bridge has been removed from the link. Similarly, an MST port assumes that it is a boundary port when the bridges to which it is connected have joined the same region.
To force a port to renegotiate with its neighbors, enter the clear spanning-tree detected-protocol command.
This example shows how to restart the protocol migration on a specific interface:
switch#
clear
spanning-tree detected-protocol interface ethernet 1/4
|
|
---|---|
To clear VLAN Trunking Protocol (VTP) counters, use the clear vtp counters command.
|
|
---|---|
Use this command to clear the VTP statistics, such as the VTP requests, VTP advertisements, and configuration revisions.
This example shows how to clear the VTP counters:
|
|
---|---|
To set the synchronization protocol for the clock to a protocol, use the clock protocol command. To remove the clock protocol, use the no form of this command.
no clock protocol { none | ntp }
Specifies that the clock be set to the Network Time Protocol (NTP). |
|
|
---|---|
This example shows how to set the synchronization protocol for the clock to NTP:
|
|
---|---|
To initiate a connection with a vCenter Server, use the connect command. To disconnect from a vCenter Server, use the no form of this command.
SVS connection configuration mode
|
|
---|---|
This example shows how to connect to a vCenter Server:
This example shows how to disconnect from a vCenter Server:
|
|
---|---|