Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network configuration disappears when rebooting

Status
Not open for further replies.

menace212

Programmer
Jul 11, 2003
144
US

Whenever I reboot the Sun Solaris machine it seems to loose it's routing table(netstat -r) and ip address(hme0) information, everytime. It just's disappears like the file the sun box is trying to pull routing and ip information from is corrupted. Has anyone had this experience before and/or possible solution to the problem?
 
To keep basic IP settings on Solaris you will need to edit some files:
let's set this
IP: 192.168.44.97
hostname: oregon
default gateway: 192.168.44.1
DNS server: 192.168.2.16

/etc/hosts
put a record with the ip of the interface like this:
192.168.44.97 oregon loghost

loghost is important!

/etc/hostname.hme0
put only one word: oregon

/etc/defaultgateway
put only one ip: 192.168.44.1

/etc/resolv.conf
put like this:
nameserver 192.168.2.16
domain mydomain.com

and maybe you will need to tinker with /etc/nsswitch.conf

for further info look at
--Trifo
 
yea, but I the info above is already coded into the box...It loses all this information you stated above when it reboots.... I'll look at the host file to be sure loghost is in there but I pretty sure it's there...
 
Well, there is a script on solaris to restore default configuration (remove network customization, hostname, etc). It is called configdel, or deconfig or something similar. It cleans up config, and sets a flag for the OS to ask the basic info during the next boot.

You should also search your RC scripts if there was some strange stuff.

--trifo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top