Apr 302008
 


Everytime you reboot your Sun Solaris Server, you may find that one or more of your Network Interfaces may not come online.

If you did a “netstat -r”

sunsolaris# netstat -r

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
——————– ——————– —– —– —— ———
BASE-ADDRESS.MCAST.NET solaris10            U         1      0 hme0
default              192.168.0.1          UG        1      0 hme0
localhost            localhost            UH        1     61 lo0

You may not find that the network for the Network interface not found in there (192.168.0.0 here) and as you would expect adding the netmask manually fixes the problem.

sunsolaris# ifconfig hme0 255.255.0.0

The problem with not being able to bring an interface up at a reboot indicates a problem with the /etc/hostname.interface file (here /etc/hostname.hme0). It could be with an extra line in your hostname.interface file (here hostname.hme0) that causes the problem with the interface.

To check if thats the problem,

sunsolaris# wc /etc/hostname.hme0
                  2       0       2 /etc/hostname.hme0

It should report as “1” line and not as “2” as above. To fix the problem from occuring again,, edit the hostname.interface file and delete the extra file.

sunsolaris# vi /etc/hostname.hme0

and delete the extra empty line in the bottom and that should fix the problem.

  5 Responses to “Network Interface may not come up online at reboot in Solaris”

  1. Thanks. This solved my problem.

  2. and my problem saved too. many thx

  3. >>and my problem saved too. many thx
    sory for typo. not saved – solved

  4. El mio tambien gracias

  5. God bless you!.
    Saved several days of my life.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)