lsroute

Use the lsroute command to display the IP routing table.

Syntax

lsroute

Parameters

There are no parameters for this command.

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