postIt

        Post-It sticky notes with PasteBin sense

  • 05:06:18 am on October 6, 2010 | # | 0
    Tags: , ,

    Check route/gateway in Solaris

    # netstat -rn
     
    Routing Table: IPv4
      Destination           Gateway           Flags  Ref     Use     Interface
    -------------------- -------------------- ----- ----- ---------- ---------
    default              192.168.40.1         UG        1          0
    192.168.40.0         192.168.40.91        U         1          2 e1000g2
    224.0.0.0            192.168.40.91        U         1          0 e1000g2
    127.0.0.1            127.0.0.1            UH        1          0 lo0

    If no /etc/defaultrouter set (file not exist), booting will set no default gateway as

    # netstat -rn
     
    Routing Table: IPv4
      Destination           Gateway           Flags  Ref     Use     Interface
    -------------------- -------------------- ----- ----- ---------- ---------
    192.168.40.0         192.168.40.91        U         1          2 e1000g2
    224.0.0.0            192.168.40.91        U         1          0 e1000g2
    127.0.0.1            127.0.0.1            UH        1          0 lo0
     

  • Modified from Prologue theme by Automattic

Leave a Comment