In this section:
Overview
The SBC Core includes 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.
These commands are useful to test node connectivity and other network issues without leaving the application command line.
For an HA pair configuration, you can run CLI commands ping
and traceroute
(and their IPv6 versions) from the active CE; a switchover is required to run the CLI commands from the standby CE.
Command Syntax
The commands, options, and syntax available from the SBC CLI are exactly same as Linux and Unix platforms.
- 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
The traceroute6 command is not supported in SBC release versions 9.2.x to 11.0.x. It is supported from SBC version 11.1.x onwards.
> traceroute6 [ -46dFITnreAUV ] [ -d ] ---Use SO_DEBUG socket option [ -f <first_ttl> ] [ -g gate,... ] [ -i <device> ] ---Bind to <device> [ -m <hops> ] ---Use maximum <hops> [ -n ] ---No dns name resolution [ -p <port> ] ---Use destination <port> [ -t <tos> ] [ -l <flow_label> ] [ -w <waittime> ] [ -q <nprobes> ] ---Number of probes [ -r ] ---Use SO_DONTROUTE socket option [ -s <address> ] ---Use source <address> [ -v ] ---Verbose output [ -w <timeout> ] ---Time to wait for response [ -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
. Issue the command:
# man <command>
Configuration Examples
- For IPv6 addresses, use
ping6
andtraceroute6
. - Issue 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
The traceroute6 command is not supported in SBC release versions 9.2.x to 11.0.x. It is supported from SBC version 11.1.x onwards.
> 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