HP-UX Reference (11i v1 00/12) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man7/!!!intro.7
________________________________________________________________
___ ___
r
routing(7) routing(7)
147.253.144.66 U 0 7 lan1 1500
# netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
15.13.136.66/255.255.255.255
127.0.0.1 UH 1 39 lo0 4608
127.0.0.1/255.255.255.255
127.0.0.1 UH 0 68 lo0 4608
147.253.56.195/255.255.255.255
127.0.0.1 UH 0 0 lo0 4608
147.253.144.66/255.255.255.255
127.0.0.1 UH 0 0 lo0 4608
default/0.0.0.0 15.13.136.11 UG 3 40 lan0 1500
15.13.136.0/255.255.248.0
15.13.136.66 U 1 153 lan0 1500
147.253.56.0/255.255.254.0
147.253.56.195 U 0 8 lan2 1500
147.253.144.64/255.255.255.240
147.253.144.66 U 0 8 lan1 1500
The following columns are of particular interest:
Destination The destination Internet address: host name, network name, or default. The
default keyword indicates a wildcard route, used as a last resort if no route is
specified for a particular remote host or network. See Flags.
Netmask The netmask and the destination Internet address together define a range of IP
addresses that may be reached by the routes gateway. A host route by default
has a netmask of all 1’s. A default route by default has a netmask of all 0’s. The
netmask is also used in selecting a route to forward an IP packet. (see Routing
Algorithm
.)
Gateway The gateway to use to get to the destination: remote gateway or the local host.
See Flags.
Flags The type of route:
U The route is "up" or available(see ifconfig(1M)).
G The route uses a remote host as a gateway; otherwise, the local host is
shown as the gateway (see route(1M)).
H The destination is a host; otherwise, the destination is a network (see
route(1M)).
Interface The interface connections:
lo0 The local loopback after system boot-up.
lan0, lan1,... The interface cards installed on the local host after
the ifconfig command is executed at boot time
(see ifconfig(1M)).
The values of the count and destination type fields in the route command determine the presence of the
G
and H flags in the netstat -r display and thus the route type, as shown in the following table.
Count Destination Type Flags Route Type
Route to a network directly from the local host=0 network U
Route to a network through a remote host gateway>0 network UG
Route to a remote host directly from the local host=0 host UH
Route to a remote host through a remote host gateway>0 host UGH
Wildcard route directly from the local host=0 default U
HP-UX Release 11i: December 2000 2 Section 7105
___
___