The SBC is enhanced to include the native Linux commands ping
and traceroute
(and their IPv6 variants) from the SBC command line interface. To use the commands at the SBC application level, log on to the SBC as an application administrator.
For an HA pair configuration, you can run CLI commands ping
and traceroute
(and their IPv6 versions) from the active CE; switchover is needed to run the CLI commands from standby CE.
The enhancement is useful when you want to use the commands to test node connectivity and other network issues without leaving the application command line.
The commands, options, and syntax available from the SBC CLI are exactly same as Linux and Unix platforms.
Command Syntax
- For IPv6 addresses, use
ping6
andtraceroute6
. - Execute the commands without entering the
configure private
mode of the SBC.
ping
> ping [-LRUbdfnqrvVaAD] [-c <count>] [-i <interval>] [-w <deadline>] [-p <pattern>] [-s <packetsize>] [-t <ttl>] [-I <interface>] [-M <pmtudisc-hint>] [-m <mark>] [-S <sndbuf>] [-T <tstamp-options>] [-Q <tos>] [hop1 ...] <destination_IPv4_address>
ping6
> ping6 [-LRUbdfnqrvVaAD] [-c <count>] [-i <interval>] [-w <deadline>] [-p <pattern>] [-s <packetsize>] [-t <ttl>] [-I <interface>] [-M <pmtudisc-hint>] [-m <mark>] [-S <sndbuf>] [-T <tstamp-options>] [-Q <tos>] [hop1 ...] <destination_IPv6_address>
traceroute
> traceroute [ -46dFITnreAUV ] [ -f <first_ttl> ] [ -g gate,... ] [ -i <device> ] [ -m <max_ttl> ] [ -N <squeries> ] [ -p <port> ] [ -t <tos> ] [ -l <flow_label> ] [ -w <waittime> ] [ -q <nqueries> ] [ -s <src_addr> ] [ -z <sendwait> ] [ --fwmark=<num> ] host [ <packetlen> ]
traceroute6
> traceroute6 [ -46dFITnreAUV ] [ -f <first_ttl> ] [ -g gate,... ] [ -i <device> ] [ -m <max_ttl> ] [ -N <squeries> ] [ -p <port> ] [ -t <tos> ] [ -l <flow_label> ] [ -w <waittime> ] [ -q <nqueries> ] [ -s <src_addr> ] [ -z <sendwait> ] [ --fwmark=<num> ] host [ <packetlen> ]
Parameter Descriptions
For parameter descriptions and other information on the ping
and traceroute
commands and their IPv6 variants, refer to the Linux manual pages on the internet. Alternatively, you may refer to the manual pages installed as part of the Linux platform on the SBC. To access the manual pages installed on the SBC:
- Log on to the SBC as
root
. Execute the command:
# man <command>
Configuration Examples
- For IPv6 addresses, use
ping6
andtraceroute6
. - Execute the commands without entering the
configure private
mode of the SBC.
ping
> ping -c 3 10.31.200.50 PING 10.31.200.50 (10.31.200.50) 56(84) bytes of data. 64 bytes from 10.31.200.50: icmp_req=1 ttl=255 time=5.28 ms 64 bytes from 10.31.200.50: icmp_req=2 ttl=255 time=5.69 ms 64 bytes from 10.31.200.50: icmp_req=3 ttl=255 time=4.34 ms--- 10.31.200.50 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 4.340/5.106/5.693/0.566 ms
ping6
> ping6 -c 2 0000:0000:0000:0000:0000:0000:0000:0001 PING 0000:0000:0000:0000:0000:0000:0000:0001(::1) 56 data bytes 64 bytes from ::1: icmp_seq=1 ttl=64 time=0.031 ms 64 bytes from ::1: icmp_seq=2 ttl=64 time=0.060 ms--- 0000:0000:0000:0000:0000:0000:0000:0001 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.031/0.045/0.060/0.016 ms
traceroute
> traceroute 10.31.200.50 traceroute to 10.31.200.50 (10.31.200.50), 30 hops max, 60 byte packets 1 10.31.200.50 (10.31.200.50) 9.487 ms 9.493 ms 9.491 ms
traceroute6
> traceroute6 0::0.0.0.0 traceroute to 0::0.0.0.0 (::), 30 hops max, 80 byte packets 1 localhost (::1) 0.033 ms 0.009 ms 0.008 ms