Solaris view network routes using netstat

The netstat command can be used to view network routes on Solaris. Use the “-rn” flags to get the output formatted as below

root@solaris:~# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              192.168.1.1          UG        1          0
127.0.0.1            127.0.0.1            UH        2         32 lo0
192.168.1.0          192.168.1.25         U         4        164 net0

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If
--------------------------- --------------------------- ----- --- ------- -----
::1                         ::1                         UH      2       0 lo0
fe80::/10                   fe80::a00:27ff:feb2:4270    U       2       0 net0