This is the documentation for the 20.08 version. Looking for the documentation of the latest version? Have a look here.
The TNSR CLI includes convenience utilities for testing connectivity.
Diagnostic Routing Behavior¶
The utilities in this section behave the same with regard to routing. They can
operate in either the
(Networking Namespaces), and default to using the
dataplane namespace so
the tests will run using the same networking environment as TNSR.
Test packets will follow the routing table available in the namespace.
To perform a basic ICMP echo request, use the
tnsr# ping <destination host>
TNSR will send 10 ICMP echo requests to the destination host using the
dataplane namespace, waiting a maximum of 12 seconds for a reply.
The ping command supports a number of additional parameters which alter its behavior:
tnsr# [(host|dataplane)] ping (<dest-host>|<dest-ip>) [ipv4|ipv6] [interface <if-name>] [source <src-addr>] [count <count>] [packet-size <bytes>] [ttl <ttl-hops>] [timeout <wait-sec>]
The namespace (Networking Namespaces) in which the command will run.
The target of the ICMP echo request. This may be a hostname, IPv4 IP address, or IPv6 IP address.
When a hostname is used for the destination, this parameter controls the address family used for the ICMP echo request when the DNS response for the hostname contains both IPv4 (A) and IPv6 (AAAA) records.
The TNSR interface from which the ICMP echo requests will originate.
The source IP address for the ICMP echo requests. If omitted, an address will be automatically selected on the interface through which the packet will exit toward the target.
The number of ICMP echo requests to send. Default value is
The size of of the ICMP echo request payload, not counting header information. Default value is
The Time To Live/Hop Limit value for ICMP echo requests, which can limit how far they may travel across the network. Default value is
The total time to wait for the command to complete.
To perform a network routing trace to a destination host, use the
tnsr# traceroute <destination host>
As with the
ping command, there several additional parameters to change the
behavior of the trace:
tnsr# [(host|dataplane)] traceroute (<dest-host>|<dest-ip>) [ipv4|ipv6] [interface <if-name>] [source <src-addr>] [packet-size <bytes>] [no-dns] [timeout <seconds>] [ttl <ttl-hos>] [waittime <wait-sec>]
Most parameters are the same as those found in
ping (Ping). Only
the items that differ are as follows:
Do not attempt to use DNS to reverse resolve hosts that respond to probes.
Amount of time the command will wait for individual probe responses to return.
traceroute command requires
/usr/bin/traceroute to be
present in the base operating system. The TNSR package set includes a
dependency which will automatically install a package for traceroute.
It may also be installed manually using
sudo dnf install -y traceroute
or a similar command, depending on the host OS package management