Network services status display

Displaying running interfaces

The show interface command displays running network interfaces. Interfaces may be physical interfaces (e.g. eth0_0) or pseudo-interfaces (e.g, stu0, tu0…).

router{}show interface [IFNAME [statistics [detail | update INT]]]
IFNAME
Interface name (e.g eth0_0). If this parameter is omitted, all UP interfaces are displayed.
statistics
Display inbound/outbound packet statistics for the specified interface.
detail
Display detailed packet statistics (about lower layers). All interfaces do not provide detailed statistics.
update INT
Specify to regularly update the display, with an update period of INT (in seconds). Exit with <Ctrl+C>.

Example

router{}show interface
eth0_0: <BROADCAST,MULTICAST,UP,RUNNING> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:c9:98:93:b9 brd ff:ff:ff:ff:ff:ff
    inet 10.100.1.155/24 brd 10.100.1.255 scope global xmsd eth0_0
    inet6 fe80::2d0:c9ff:fe98:93b9/64 scope link
    inet6 2001:660:3008:1100:209:c0ff:fe40:c054/64 scope global xmsd
        0:up    100Mb/s Half    Twisted Pair    PHY:0   Autoneg
eth1_0: <BROADCAST,MULTICAST,UP,RUNNING> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:c9:98:93:ba brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.155/24 brd 10.0.0.255 scope global xmsd eth1_0
    inet6 2001:660:3008:1000::155/64 scope global xmsd
    inet6 fe80::2d0:c9ff:fe98:93ba/64 scope link tentative
        0:up    100Mb/s Full    Twisted Pair    PHY:0   Autoneg
eth2_0: <BROADCAST,MULTICAST,PROMISC,UP,RUNNING> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:c9:98:93:bb brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2d0:c9ff:fe98:93bb/64 scope link
        0:up    1000Mb/s        Full    Twisted Pair    PHY:0   Autoneg
eth3_0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:c9:98:93:bc brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2d0:c9ff:fe98:93bc/64 scope link
        0:down  Unknown! (65535)        Unknown! (255)  Twisted Pair    PHY:0   Autoneg

router{}show interface eth1_0
eth1_0: <BROADCAST,MULTICAST,UP,RUNNING> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:c9:98:93:ba brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.155/24 brd 10.0.0.255 scope global xmsd eth1_0
    inet6 2001:660:3008:1000::155/64 scope global xmsd
    inet6 fe80::2d0:c9ff:fe98:93ba/64 scope link
        0:up    100Mb/s Full    Twisted Pair    PHY:0   Autoneg

router{}show interface eth1_0 statistics
eth1_0:
    TX-PACKETS       : 421                     RX-PACKETS : 412
    TX-BYTES         : 41456                   RX-BYTES   : 40186
    TX-ERRORS        : 0                       RX-ERRORS  : 0
    TX-DROPPED       : 0                       RX-DROPPED : 0
    TX-COLLISIONS    : 0                       RX-OVERRUNS: 0

router{}show interface eth1_0 statistics detail
statistics:
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth1_0     1500   0    20844      0      0      0       23      0      0      0 BMRU
    RX: bytes  packets  errors  dropped overrun mcast
    1718623    20844    0       0       0       1295
    TX: bytes  packets  errors  dropped carrier collsns
    2268       23       0       0       0       0

router{}show interface eth1_0 statistics update 1
eth1_0:
    TX-PACKETS       : 421                     RX-PACKETS : 412
    TX-BYTES         : 41456                   RX-BYTES   : 40186
    TX-ERRORS        : 0                       RX-ERRORS  : 0
    TX-DROPPED       : 0                       RX-DROPPED : 0
    TX-COLLISIONS    : 0                       RX-OVERRUNS: 0
eth1_0:
    TX-PACKETS       : 427                     RX-PACKETS : 418
    TX-BYTES         : 42044                   RX-BYTES   : 40774
    TX-ERRORS        : 0                       RX-ERRORS  : 0
    TX-DROPPED       : 0                       RX-DROPPED : 0
    TX-COLLISIONS    : 0                       RX-OVERRUNS: 0
eth1_0:
    TX-PACKETS       : 437                     RX-PACKETS : 428
    TX-BYTES         : 43024                   RX-BYTES   : 41754
    TX-ERRORS        : 0                       RX-ERRORS  : 0
    TX-DROPPED       : 0                       RX-DROPPED : 0
    TX-COLLISIONS    : 0                       RX-OVERRUNS: 0
eth1_0:
    TX-PACKETS       : 448                     RX-PACKETS : 439
    TX-BYTES         : 44102                   RX-BYTES   : 42832
    TX-ERRORS        : 0                       RX-ERRORS  : 0
    TX-DROPPED       : 0                       RX-DROPPED : 0
    TX-COLLISIONS    : 0                       RX-OVERRUNS: 0
<Ctrl+C>
router{}

Displaying running services

The show service command displays active and inactive services.

router{}show service

Example

router{}show service
Service  SSH             is active
Service  TELNET          is inactive
Service  HTTP            is inactive
Service  IP Forwarding   is active
Service  IPv6 Forwarding is active
Service  NAT             is inactive
Service  DNS-PROXY       is inactive
Service  FILTER          is inactive
Service  RIP             is inactive
Service  RIPng           is inactive
Service  OSPFv2          is inactive
Service  OSPFv3          is inactive
Service  BGP             is inactive
Service  ISIS            is inactive
Service  DHCPSERVER      is active
Service  DHCP            is inactive
Service  DHCP RELAY      is inactive
Service  NTP             is active
Service  CRON            is inactive
router{}

Displaying and flushing the ARP and NDP caches

The show arp and show ndp commands respectively display the content of the ARP and NDP caches. The database contains both statically configured ARP and NDP entries and entries learnt by the ARP and NDP protocols.

Example

router{}show arp
192.168.0.2 dev eth0_0 lladdr 00:50:fc:21:7c:05 nud reachable
192.168.1.2 dev eth1_0 lladdr 00:02:b3:39:ba:d2 nud permanent
192.168.1.3 dev eth1_0 lladdr 00:20:ed:27:22:03 nud stale
router{}show ndp
3ffe:304:124::2 dev eth2_0 lladdr 00:d0:c9:98:93:53 router nud reachable
fe80::2d0:c9ff:fe98:9353 dev eth2_0 lladdr 00:d0:c9:98:93:53 router nud stale
router{}

The flush arp and flush ndp commands respectively remove all the ARP and NDP dynamic entries. The statically configured ARP and NDP entries remain in the cache.

router{}flush arp|ndp