Use the lsroute command to display the
IP routing table.
Syntax
lsroute [ -delim delimiter ] [ -nohdr ]
Parameters
- -nohdr
- (Optional) By default, headings are displayed for each column of data in a concise style view,
and for each item of data in a detailed style view. The -nohdr parameter
suppresses the display of these headings.
Note: If there is no data to be displayed, headings are not
displayed.
- -delim delimiter
- (Optional) By default in a concise view, all columns of data are space-separated. The width of
each column is set to the maximum width of each item of data. In a detailed view, each item of data
has its own row, and if the headers are displayed, the data is separated from the header by a space.
The -delim parameter overrides this behavior. Valid input for the
-delim parameter is a 1-byte character. If you enter -delim
: on the command line, the colon character (:) separates all items of data
in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data
is separated from its header by the specified delimiter.
Description
This
command displays the IP routing table. The table provides details
of the gateway that is used for IP traffic to a range of IP addresses
for each Ethernet port. This information can be used to diagnose configuration
node accessibility problems. The lsroute command
is equivalent to the Linuxroute command.
An invocation example
lsroute
The
resulting output:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
9.71.46.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 9.71.46.1 0.0.0.0 UG 0 0 0 eth0
Kernel IPv6 routing table
Destination Next Hop Flags Metric Ref Use Iface
2002:914:fc12:849::/64 :: UA 256 3675 0 eth0
fe80::/64 :: U 256 0 0 eth0
::/0 fe80::7:b4ff:fe00:500 UGDA 1024 1 0 eth0
::1/128 :: U 0 1441 1 lo
2002:914:fc12:849:214:5eff:fe33:5192/128 :: U 0 0 1 lo
fe80::214:5eff:fe33:5192/128 :: U 0 0 1 lo
ff00::/8 :: U 256 0 0 eth0