show interfaces summary [<interface-name>]

    • Displays information regarding the network interfaces
    • Example:
    admin@sonic:~$ show interfaces summary
    Ethernet0 Link encap:Ethernet  HWaddr ec:f4:bb:fe:88:0a
              inet addr:192.168.1.100  Bcast:192.168.1.31  Mask:255.255.255.224
              inet6 addr: fe80::eef4:bbff:fefe:880a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1991 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:489338 (477.8 KiB)
    
    Ethernet4 Link encap:Ethernet  HWaddr ec:f4:bb:fe:88:0a
              inet addr:192.168.1.102  Bcast:192.168.1.31  Mask:255.255.255.224
              inet6 addr: fe80::eef4:bbff:fefe:880a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1991 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:489338 (477.8 KiB)
    
    Ethernet8 Link encap:Ethernet  HWaddr ec:f4:bb:fe:88:0a
              inet addr:192.168.1.104  Bcast:192.168.1.31  Mask:255.255.255.224
              inet6 addr: fe80::eef4:bbff:fefe:880a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1991 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:493312 (481.7 KiB)
    
    Ethernet12 Link encap:Ethernet  HWaddr ec:f4:bb:fe:88:0a
              inet addr:192.168.1.106  Bcast:192.168.1.31  Mask:255.255.255.224
              inet6 addr: fe80::eef4:bbff:fefe:880a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1991 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:493312 (481.7 KiB)
    
    • Optionally, you can specify an interface name in order to display only that particular interface
    • Example:
    admin@sonic:~$ show interfaces summary Ethernet8 
    Ethernet8 Link encap:Ethernet  HWaddr ec:f4:bb:fe:88:0a
              inet addr:192.168.1.104  Bcast:192.168.1.31  Mask:255.255.255.224
              inet6 addr: fe80::eef4:bbff:fefe:880a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1991 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:493312 (481.7 KiB)
    
  • show interfaces counters

    • Displays packet counters for all interfaces over a period of 30 seconds
      • NOTE: This command takes 30 seconds to execute
    • Example:
    admin@sonic:~$ show interfaces counters
          Iface            RX_OK      RX_RATE    RX_UTIL    RX_ERR    RX_DRP    RX_OVR            TX_OK      TX_RATE    TX_UTIL    TX_ERR    TX_DRP    TX_OVR
    -----------  ---------------  -----------  ---------  --------  --------  --------  ---------------  -----------  ---------  --------  --------  --------
      Ethernet0  471,729,839,997  653.87 MB/s     12.77%         0    18,682         0  409,682,385,925  556.84 MB/s     10.88%         0         0         0
      Ethernet4  453,838,006,636  632.97 MB/s     12.36%         0     1,636         0  388,299,875,056  529.34 MB/s     10.34%         0         0         0
      Ethernet8  549,034,764,539  761.15 MB/s     14.87%         0    18,274         0  457,603,227,659  615.20 MB/s     12.02%         0         0         0
     Ethernet12  458,052,204,029  636.84 MB/s     12.44%         0    17,614         0  388,341,776,615  527.37 MB/s     10.30%         0         0         0
     Ethernet16   16,679,692,972   13.83 MB/s      0.27%         0    17,605         0   18,206,586,265   17.51 MB/s      0.34%         0         0         0
     Ethernet20   47,983,339,172   35.89 MB/s      0.70%         0     2,174         0   58,986,354,359   51.83 MB/s      1.01%         0         0         0
     Ethernet24   33,543,533,441   36.59 MB/s      0.71%         0     1,613         0   43,066,076,370   49.92 MB/s      0.97%         0         0         0
    
  • show ip route [<ip-address>]

    • Displays the IP routing table
    • Example:
    admin@sonic:~$ show ip route
    Codes: K - kernel route, C - connected, S - static, R - RIP,
           O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel,
    
    >
     - selected route, * - FIB route
    
    C
    >
    * 10.0.0.0/31 is directly connected, Ethernet0
    C
    >
    * 10.0.0.2/31 is directly connected, Ethernet4
    C
    >
    * 10.0.0.4/31 is directly connected, Ethernet8
    C
    >
    * 10.0.0.6/31 is directly connected, Ethernet12
    C
    >
    * 10.0.0.8/31 is directly connected, Ethernet16
    C
    >
    * 10.0.0.10/31 is directly connected, Ethernet20
    C
    >
    * 10.0.0.12/31 is directly connected, Ethernet24
    C
    >
    * 10.0.0.14/31 is directly connected, Ethernet28
    C
    >
    * 10.0.0.16/31 is directly connected, Ethernet32
    C
    >
    * 10.0.0.18/31 is directly connected, Ethernet36
    C
    >
    * 10.0.0.20/31 is directly connected, Ethernet40
    C
    >
    * 10.0.0.22/31 is directly connected, Ethernet44
    C
    >
    * 10.0.0.24/31 is directly connected, Ethernet48
    C
    >
    * 10.0.0.26/31 is directly connected, Ethernet52
    C
    >
    * 10.0.0.28/31 is directly connected, Ethernet56
    C
    >
    * 10.0.0.30/31 is directly connected, Ethernet60
    C
    >
    * 10.0.0.32/31 is directly connected, Ethernet64
    
  • Optionally, you can specify an IP address in order to display only routes to that particular IP address

  • Example:

admin@sonic:~$ show route 10.0.0.12

results matching ""

    No results matching ""