tools netstat
tools netstat—Display information about network connections, routing tables, interface statistics, masquerading connections, and multicast memberships. This command is effectively the standard Linux netstat command.
Command Syntax
tools netstat [options options] [vpn vpn-id]
tools netstat help
Options
- Command Help
- help
Display all the command options. - Command Options
- options options
See the Example Output below for a list of all the tool netstat command options. - Specific VPN
- vpn vpn-id
Run the command in a specific VPN.
Default: VPN 0
Output Fields
The output is self explanatory.
Example Output
Viptela# tools netstat help USAGE: Options: help Show usage vpn VPN or namspace options Netstat options Netstat --help in VPN 0 usage: netstat [-vWeenNcCF] [<Af>] -r netstat {-V|--version|-h|--help} netstat [-vWnNcaeol] [<Socket> ...] netstat { [-vWeenNac] -i | [-cWnNe] -M | -s } -r, --route display routing table -i, --interfaces display interface table -g, --groups display multicast group memberships -s, --statistics display networking statistics (like SNMP) -M, --masquerade display masqueraded connections -v, --verbose be verbose -W, --wide don't truncate IP addresses -n, --numeric don't resolve names --numeric-hosts don't resolve host names --numeric-ports don't resolve port names --numeric-users don't resolve user names -N, --symbolic resolve hardware names -e, --extend display other/more information -p, --programs display PID/Program name for sockets -c, --continuous continuous listing -l, --listening display listening server sockets -a, --all, --listening display all sockets (default: connected) -o, --timers display timers -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <Socket>={-t|--tcp} {-u|--udp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom <AF>=Use '-6|-4' or '-A <af>' or '--<af>'; default: inet List of possible address families (which support routing): inet (DARPA Internet) inet6 (IPv6) netrom (AMPR NET/ROM)
Viptela# tools netstat vpn 512 options -anr Netstat -anr in VPN 512 Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.99.0 0.0.0.0 255.255.255.0 U 0 0 0 mgmt0 127.1.0.0 0.0.0.0 255.255.255.0 U 0 0 0 loop0.2 Viptela# tools netstat options -anr Netstat -anr in VPN 0 Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.100.0 0.0.0.0 255.255.255.0 U 0 0 0 ge1_7 127.1.0.0 0.0.0.0 255.255.255.0 U 0 0 0 loop0 127.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 loop1
Viptela# tools netstat Netstat in VPN 0 Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost.localdo:39339 localhost.localdom:2424 TIME_WAIT tcp 0 0 localhost.localdo:39173 localhost.localdom:2424 TIME_WAIT tcp 0 0 localhost.localdoma:iax localhost.localdo:55613 TIME_WAIT tcp 0 0 localhost.localdo:39100 localhost.localdom:2424 TIME_WAIT tcp 0 0 localhost.localdo:39299 localhost.localdom:2424 TIME_WAIT tcp 0 0 localhost.localdo:51278 localhost.localdom:9300 ESTABLISHED tcp 0 0 localhost.localdo:60695 localhost.localdom:4565 ESTABLISHED tcp 0 0 localhost.localdo:39133 localhost.localdom:2424 TIME_WAIT tcp 0 0 localhost.localdo:50682 localhost.localdom:9300 ESTABLISHED
Release Information
Command introduced in Viptela Software Release 15.4.5.