Technical data
netstat
-v
Displays detailed output when specified with the
-r
flag. In this case, route
metric values are displayed.
-z
Sets the network interface counters to zero. This flag must be specified with the
-I
interface flag. You must have system privileges to use the
-z
flag.
Examples
The following examples show how to use the
netstat
command to display
information about configured interfaces and routing tables.
1.
TCPIP> netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
LO0 4096 <Link> Link#1 167 0 167 0 0
LO0 4096 loop LOCALHOST 167 0 167 0 0
SE0 1500 <Link> aa:0:4:0:6d:f8 1544 0 157 0 0
SE0 1500 loop RUFUS 1544 0 157 0 0
TN0* 1280 <Link> Link#2 0 0 0 0 0
This example shows how to display the state of the configured interfaces.
2.
TCPIP> netstat -r
Routing tables
Destination Gateway Flags Refs Use Interface
Route Tree for Protocol Family 26:
Route Tree for Protocol Family 2:
default sqagate UG 0 0 SE0
10.10.2 v72kt U 2 125 SE0
v72kt v72kt UHL 0 50 SE0
LOCALHOST LOCALHOST UHL 7 117 LO0
This example shows how to display the routing tables.
3.
TCPIP> netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface
Route Tree for Protocol Family 26:
Route Tree for Protocol Family 2:
default 10.10.2.66 UG 0 0 SE0
10.10.2/24 10.10.2.4 U 2 109 SE0
10.10.2.4 10.10.2.4 UHL 0 50 SE0
127.0.0.1 127.0.0.1 UHL 7 117 LO0
This example shows how to display the routing tables with network addresses.
Troubleshooting Utilities Reference A–21