Click to See Complete Forum and Search --> : Solaris: IP address problem


ortiz.michael
10-30-2003, 04:15 PM
First off, this isn't my problem but a friend of mine's problem.

I'll just copy and paste what he told me hehe


Now here is the new problem (different machine though):
There is a Solaris box here that when it reboots, it loses the correct IP configuration.

Correct information is:
IP xxx.xxx.xxx.xxx
Gateway xxx.xxx.xxx.xxx
Netmask xxx.xxx.xxx.xxx

I can set it properly by using the following command string:

# ifconfig hme0 xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

The problem lies in that even after I make the change, if the machine gets rebooted at any time it reverts to the wrong configuration of:

IP xxx.xxx.xxx.xxx
Gateway xxx.xxx.xxx.xxx
Netmask xxx.xxx.xxx.xxx

In what files and locations are the settings stored so I can change it so that it comes up with correct settings permanently?


I've x'ed out the IP's for security reasons. I hope they're not needed in figuring out the problem :(

rmalejandre
10-30-2003, 04:43 PM
No, the IPs are not key in solving the problem :D

Every change in the systen that you make in Solaris will be lost upon reboot, unless you modify the appropriate files.

You should modify and add the correct information to these files:
/etc/hosts
/etc/netmasks
/etc/hostname.eth0

So that the system will boot up with the right info

ortiz.michael
10-31-2003, 12:00 PM
ty rmalejandre! :)

rmalejandre
10-31-2003, 12:04 PM
I made a mistake while typing the last file :eek:, it should be

etc/hostname.hme0
not
etc/hostname.eth0

sorry about that!

ortiz.michael
10-31-2003, 09:05 PM
lol ya know, actually when I typed the files to him I put hme0 :p