• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris netstat : Understanding the output when displaying routing table

By admin

The post describes the meaning of the flags that are displayed in the routing tables when you use the netstat command.

Sample output:

# netstat -rn
Routing Table:
Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- -----  ----- ----- ---------
127.0.0.1            127.0.0.1             UH       021220517  lo0
192.9.200.0          207.82.202.188        UG       0     93
192.9.200.0          207.82.202.65         UG       0      0
205.163.59.0         207.82.202.188        UG       0  24729
207.82.203.0         207.82.202.188        UG       0  29053
205.163.209.0        207.82.202.188        UG       0     27
207.82.202.128       207.82.202.129        U        2   9377  le1
207.82.202.64        207.82.202.66         U        2    496  qe0
192.112.65.0         192.112.65.10         U        3   1601  le0
224.0.0.0            192.112.65.10         U        3      0  le0
default              207.82.202.65         UG       0 152449
The Flags indicate:
U - Up (The route is up)
G - Gateway (The route is via a remote Router/Gateway)
H - Host (The destination of the route is a specific host)

Entries with the U flag only, are routes to networks, via a gateway physically local to this host, (also displayed on all multicast routes).

You may also see a D flag. This flag indicates whether a route was created dynamically by an ICMP redirect, (this flag appears for Host routes only).

In Solaris 10, if you use the -a option with netstat you may see these additional flags:

A - Address Resolution
B - Broadcast Address
L - Local address for the host

In Solaris 11, if the -a option is specified, there will be routing entries with the following flags:

b    Broadcast addresses.
C    Clones interface host route entries for on-link  destinations.
L    Local addresses for the host.

Filed Under: Solaris, Solaris 11

Some more articles you might also be interested in …

  1. Creating network interface alias for network boot or jumpstart installation at OBP
  2. How to delegate SMF management to a non-root user in Solaris
  3. How to dynamically replace CPU/memory board (dynamic reconfiguration) on SunFire s6800/e12K/e15K/e25K
  4. Solaris : How to increase the Inodes on UFS file system with newfs command
  5. How to configure link aggregation in Solaris 11
  6. Solaris : How to unconfigure and configure a cpu/memory board using cfgadm
  7. How to replace a disk under ZFS in Solaris
  8. How to configure Probe Based IPMP in Solaris 11
  9. Solaris Zones : How To Change The Number Of CPUs Using Dynamic Resource Pools
  10. The ultimate Solaris jumpstart troubleshooting guide

You May Also Like

Primary Sidebar

Recent Posts

  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • MySQL: Identify what user and thread are holding on to a meta data lock that is preventing other queries from running
  • MySQL: How to kill a Long Running Query using max_execution_time
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary