Monitoring Interface and Controller Status
Commands entered at the privileged EXEC prompt display information about the interface, including the version of the software and the hardware, the controller status, and statistics about the interfaces. Table 9-2 lists some of these interface monitoring commands. (You can display the full list of show commands by using the show ? command at the privileged EXEC prompt.) These commands are fully described in the Cisco IOS Interface Command Reference for Release 12.1.
|
Command |
Purpose |
|
show interfaces [interface-id] |
Display the status and configuration of all interfaces or a specific interface. |
|
show interfaces interface-id status [err-disabled] |
Display interface status or a list of interfaces in error-disabled state. |
|
show interfaces [interface-id] switchport |
Display administrative and operational status of switching (nonrouting) ports. |
|
show interfaces [interface-id] description |
Display the description configured on an interface or all interfaces and the interface status. |
|
show running-config |
Display the running configuration in RAM. |
|
show version |
Display the hardware configuration, software version, the names and sources of configuration files, and the boot images. |
This example shows how to display the status and configuration of Gigabit Ethernet interface 0/2:
Switch# show interfaces gigabitethernet0/2
GigabitEthernet0/2 is up, line protocol is up
Hardware is Gigabit Ethernet, address is 0 0 02.4b29.4400 (bia 0002.4b29.4400)
Internet address is 192.2 0.135.21/24
MTU 1500 bytes, BW 100000 Kbit, DLY 10 usee, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s input flow-control is off, output flow-control is off ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:01, output 00:00:00, output hang never Last clearing of "show interface" counters never Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec
89245 packets input, 8451658 bytes, 0 no buffer Received 81551 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected 60387 packets output, 5984015 bytes, 0 underruns 0 output errors, 0 collisions, 16 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
This example shows how to display the status of all interfaces:
|
Switch# |
show interfaces |
status |
||||
|
Port |
Name |
Status |
Vlan |
Duplex |
Speed |
Type |
|
Fa0/1 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/2 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/3 |
connected |
trunk |
a-full |
a-100 |
10/100BaseTX |
|
|
Fa0/4 |
connected |
trunk |
a-full |
a-100 |
10/100BaseTX |
|
|
Fa0/5 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/6 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/7 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/8 |
notconnect |
0 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/9 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/10 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/11 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/12 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/13 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/14 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/15 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/16 |
connected |
1 |
a-half |
a-10 |
10/100BaseTX |
|
|
Fa0/17 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/18 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/19 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/20 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/21 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Port |
Name |
Status |
Vlan |
Duplex |
Speed |
Type |
|
Fa0/22 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/23 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Fa0/24 |
notconnect |
1 |
auto |
auto |
10/100BaseTX |
|
|
Gi0/1 |
notconnect |
5 |
auto |
auto |
10/100/1000BaseTX |
|
|
Gi0/2 |
notconnect |
5 |
auto |
auto |
10/100/1000BaseTX |
|
|
Po1 |
notconnect |
1 |
auto |
auto |
||
|
Po2 |
notconnect |
1 |
auto |
auto |
This example shows how to display the status of switching ports:
Switch# show interfaces switchport
Name:Fa0/1 Switchport:Enabled Administrative Mode:static access Operational Mode:down
Administrative Trunking Encapsulation:dot1q
Negotiation of Trunking:Off
Access Mode VLAN:1 (default)
Trunking Native Mode VLAN:1 (default)
Trunking VLANs Enabled:ALL
Pruning VLANs Enabled:2-10 01
Protected:false
Voice VLAN:dot1p (Inactive)
Appliance trust:5
Name:Fa0/2
Switchport:Enabled
Administrative Mode:static access
Operational Mode:down
Administrative Trunking Encapsulation:dot1q
Negotiation of Trunking:Off
Access Mode VLAN:1 (default)
Trunking Native Mode VLAN:1 (default)
Trunking VLANs Enabled:ALL
Pruning VLANs Enabled:2-10 01
Protected:true
Voice VLAN:none (Inactive) Appliance trust:none
<output truncated>
Continue reading here: Configuring the Root Switch
Was this article helpful?