|
Syntax
|
show interfaces id [status | protected] |
|
Parameter
|
id: Specify the interface or LAG. The id parameter represents the interface or LAG number or a range of interface numbers or LAG numbers. Use a hyphen to indicate a range. Use a comma to separate individual interfaces, ranges, or a combination of both.
status: Use this optional keyword to display a brief status for the interface.
protected: Use this optional keyword to display the protected status of the interface.
|
|
Default
|
No default value.
|
|
Mode
|
Privileged EXEC
|
|
Usage
|
Use the show interfaces command to display detailed interface counters, the parameters, and the status.
Use the show interfaces status command to display a brief status of the interface.
Use the show interfaces protected command to display the protected status of an interface.
|
|
Example
|
This example shows how to display the counters for interface g1:
Switch# show interfaces g1
Hardware is Gigabit Ethernet
Auto-duplex, Auto-speed, media type is Copper
flow-control is off
back-pressure is enabled
0 packets input, 0 bytes, 0 throttles
Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underrun
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 PAUSE output
This example shows how to display the port status for interface g1:
Switch# show interfaces g1 status
Port Name Status Vlan Duplex Speed Type
g1 connected 1 auto auto Copper
This example shows how to display the protected port state for interfaces g1 and g2:
Switch# show interfaces g1-2 protected
Port | Protected State
--------+-----------------
g1 | enabled
g2 | enabled
|