Show interface status with the command line on a Cisco switch.

Posted: June 1, 2015. At: 1:58 PM. This was 2 years ago. Post ID: 8222
Page permalink: http://securitronlinux.com/bejiitaswrath/show-interface-status-with-the-command-line-on-a-cisco-switch/

The show interface brief command, issued at the elevated command prompt will show the status of all ports on the switch/router and also show your vlan interfaces you have created.

tyrion#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
Vlan1                  unassigned      YES NVRAM  up                    down
Vlan2                  172.18.31.128   YES NVRAM  up                    up
GigabitEthernet0/1     unassigned      YES unset  down                  down
GigabitEthernet0/2     unassigned      YES unset  down                  down
GigabitEthernet0/3     unassigned      YES unset  down                  down
GigabitEthernet0/4     unassigned      YES unset  down                  down
GigabitEthernet0/5     unassigned      YES unset  down                  down
GigabitEthernet0/6     unassigned      YES unset  down                  down
GigabitEthernet0/7     unassigned      YES unset  down                  down
GigabitEthernet0/8     unassigned      YES unset  down                  down
GigabitEthernet0/9     unassigned      YES unset  down                  down
GigabitEthernet0/10    unassigned      YES unset  down                  down
GigabitEthernet0/11    unassigned      YES unset  down                  down
GigabitEthernet0/12    unassigned      YES unset  down                  down
GigabitEthernet0/13    unassigned      YES unset  down                  down
GigabitEthernet0/14    unassigned      YES unset  down                  down
GigabitEthernet0/15    unassigned      YES unset  down                  down
GigabitEthernet0/16    unassigned      YES unset  down                  down
GigabitEthernet0/17    unassigned      YES unset  down                  down
GigabitEthernet0/18    unassigned      YES unset  down                  down
GigabitEthernet0/19    unassigned      YES unset  down                  down
GigabitEthernet0/20    unassigned      YES unset  down                  down
GigabitEthernet0/21    unassigned      YES unset  down                  down
GigabitEthernet0/22    unassigned      YES unset  down                  down
GigabitEthernet0/23    unassigned      YES unset  down                  down
GigabitEthernet0/24    unassigned      YES unset  down                  down
GigabitEthernet0/25    unassigned      YES unset  down                  down
GigabitEthernet0/26    unassigned      YES unset  down                  down
GigabitEthernet0/27    unassigned      YES unset  down                  down
GigabitEthernet0/28    unassigned      YES unset  down                  down
GigabitEthernet0/29    unassigned      YES unset  down                  down
GigabitEthernet0/30    unassigned      YES unset  down                  down
GigabitEthernet0/31    unassigned      YES unset  down                  down
GigabitEthernet0/32    unassigned      YES unset  down                  down
GigabitEthernet0/33    unassigned      YES unset  down                  down
GigabitEthernet0/34    unassigned      YES unset  down                  down
GigabitEthernet0/35    unassigned      YES unset  down                  down
GigabitEthernet0/36    unassigned      YES unset  down                  down
GigabitEthernet0/37    unassigned      YES unset  down                  down
GigabitEthernet0/38    unassigned      YES unset  down                  down
GigabitEthernet0/39    unassigned      YES unset  down                  down
GigabitEthernet0/40    unassigned      YES unset  down                  down
GigabitEthernet0/41    unassigned      YES unset  down                  down
GigabitEthernet0/42    unassigned      YES unset  down                  down
GigabitEthernet0/43    unassigned      YES unset  up                    up
GigabitEthernet0/44    unassigned      YES unset  up                    up
GigabitEthernet0/45    unassigned      YES unset  down                  down
GigabitEthernet0/46    unassigned      YES unset  down                  down
GigabitEthernet0/47    unassigned      YES unset  down                  down
GigabitEthernet0/48    unassigned      YES unset  down                  down

This command will show the arp table.

tyrion#show ip arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  172.18.31.128           -   ec44.763d.9041  ARPA   Vlan2
Internet  172.18.31.1            11   0026.f1f5.0300  ARPA   Vlan2
Internet  172.18.31.2            11   0022.19b1.a18c  ARPA   Vlan2

And show the terminal information with this command.

tyrion#show terminal
Line 0, Location: "", Type: ""
Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits
Status: PSI Enabled, Ready, Active, Ctrl-c Enabled, Automore On
  0x40000
Capabilities: none
Modem state: Ready
Special Chars: Escape  Hold  Stop  Start  Disconnect  Activation
                ^^x    none   -     -       none
Timeouts:      Idle EXEC    Idle Session   Modem Answer  Session   Dispatch
               00:10:00        never                        none     not set
                            Idle Session Disconnect Warning
                              never
                            Login-sequence User Response
                             00:00:30
                            Autoselect Initial Wait
                              not set
Modem type is unknown.
Session limit is not set.
Time since activation: 00:22:34
Editing is enabled.
History is enabled, history size is 20.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are telnet ssh.
Preferred transport is telnet.
No output characters are padded
No special data dispatching characters

The show ip traffic command will display information about the ip traffic traveling through your switch.

tyrion#show ip traffic
IP statistics:
  Rcvd:  1410 total, 1035 local destination
         0 format errors, 0 checksum errors, 0 bad hop count
         0 unknown protocol, 375 not a gateway
         0 security failures, 0 bad options, 127 with options
  Opts:  0 end, 0 nop, 0 basic security, 0 loose source route
         0 timestamp, 0 extended security, 0 record route
         0 stream ID, 0 strict source route, 127 alert, 0 cipso, 0 ump
         0 other
  Frags: 0 reassembled, 0 timeouts, 0 couldn't reassemble
         0 fragmented, 0 couldn't fragment
  Bcast: 1025 received, 0 sent
  Mcast: 0 received, 0 sent
  Sent:  10 generated, 0 forwarded
  Drop:  0 encapsulation failed, 0 unresolved, 0 no adjacency
         0 no route, 0 unicast RPF, 0 forced drop
         0 options denied, 0 source IP address zero
 
ICMP statistics:
  Rcvd: 0 format errors, 0 checksum errors, 0 redirects, 0 unreachable
        0 echo, 10 echo reply, 0 mask requests, 0 mask replies, 0 quench
        0 parameter, 0 timestamp, 0 info request, 0 other
        0 irdp solicitations, 0 irdp advertisements
  Sent: 0 redirects, 0 unreachable, 10 echo, 0 echo reply
        0 mask requests, 0 mask replies, 0 quench, 0 timestamp
        0 info reply, 0 time exceeded, 0 parameter problem
        0 irdp solicitations, 0 irdp advertisements
 
TCP statistics:
  Rcvd: 0 total, 0 checksum errors, 0 no port
  Sent: 0 total
 
UDP statistics:
  Rcvd: 1025 total, 0 checksum errors, 1021 no port
  Sent: 0 total, 0 forwarded broadcasts
 
ARP statistics:
  Rcvd: 1241 requests, 2 replies, 0 reverse, 0 other
  Sent: 2 requests, 8 replies (0 proxy), 0 reverse
  Drop due to input queue full: 0

These commands will allow the administrator to get a good picture of the performance of their network and the configuration of your network hardware.

No comments have been made. Use this form to start the conversation :)

Leave a Reply