Cisco N7K-C7010 Configuration Guide - Page 105
Monitoring the Layer 2 Interfaces, Example Configurations for Access and Trunk Ports
UPC - 882658174445
View all Cisco N7K-C7010 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 105 highlights
Chapter 3 Configuring Layer 2 Interfaces Monitoring the Layer 2 Interfaces Send document comments to [email protected] Command show running-config interface ethernet slot/port show running-config interface port-channel slot/port Purpose Displays configuration information about the specified interface. Displays configuration information about the specified port-channel interface. For detailed information about these commands, see the Cisco Nexus 7000 Series NX-OS Layer 2 Switching Command Reference, Release 5.x. Monitoring the Layer 2 Interfaces Use the following commands to display layer 2 interfaces: Command clear counters [interface] load- interval {interval seconds {1 | 2 | 3}} show interface counters [module module] show interface counters detailed [all] show interface counters errors [module module] Purpose Clears the counters. Beginning with Cisco NX-OS Release 4.2(1) for the Cisco Nexus 7000 Series devices, sets three different sampling intervals to bit-rate and packet-rate statistics. Displays input and output octets unicast packets, multicast packets, and broadcast packets. Displays input packets, bytes, and multicast as well as output packets and bytes. Displays information on the number of error packets. See the Cisco Nexus 7000 Series NX-OS Interfaces Command Reference, Release 5.x, for information on these commands. Example Configurations for Access and Trunk Ports The following example shows how to configure a Layer 2 access interface and assign the access VLAN mode for that interface: switch# configure terminal switch(config)# interface ethernet 2/30 switch(config-if)# switchport switch(config-if)# switchport mode access switch(config-if)# switchport access vlan 5 switch(config-if)# The following example shows how to configure a Layer 2 trunk interface, assign the native VLAN and the allowed VLANs, and configure the device to tag the native VLAN traffic on the trunk interface: switch# configure terminal switch(config)# interface ethernet 2/35 switch(config-if)# switchport switch(config-if)# switchport mode trunk OL-23435-03 Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x 3-23