Monitoring The Layer 2 Interfaces; Example Configurations For Access And Trunk Ports - Cisco 7604-RSP720C-R Configuration Manual

Nx-os interfaces
Table of Contents

Advertisement

Chapter 3
Configuring Layer 2 Interfaces
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m
Command
show running-config interface ethernet
slot/port
show running-config interface port-channel
slot/port
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]
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
Purpose
Displays configuration information about the
specified interface.
Displays configuration information about the
specified port-channel interface.
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.
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
Monitoring the Layer 2 Interfaces
3-23

Advertisement

Table of Contents
loading

Table of Contents