Solaris 10 on E250

I am running OS 5.10 in E250. I had assigned an staic ip to the box, now I want to change the ip which I did in /etc/hosts file. However everytime I reboot my box, the IP goes back to the old one. I use the following command line to change the ip again which gives me alive ping and the box is on line. I am using one of the NAT ips from the router and have done the similar settings on the router i.e. reserve the spcific ip for my solaris box.

ifconfig hme0 inet 10.50.100.49 netmask 255.255.255.0 broadcast + up

also the file /etc/hostname.hme0 has my box name in it. On reboot and on ifconfig -a command it shows my prvious ip in hme0.

What do I have to do to have my new IP in the box so that I don't have to go through the above command everytime I want to have my box alive?

Help is greatly appreciated

Gabe

[853 byte] By [gabe_ryn] at [2007-11-26 11:42:09]
# 1
Edit /etc/hosts and /etc/inet/ipnodes
robertcohen at 2007-7-7 11:48:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
Thansk Robert. It works. Also would you happen to know which file I have to edit in Cygwin for X-server to give a new static IP address?Thanks a million in advance.Gabe
gabe_ryn at 2007-7-7 11:48:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

> Thansk Robert. It works. Also would you happen to

> know which file I have to edit in Cygwin for X-server

> to give a new static IP address?

I'm not sure I understand. Neither cygwin nor Xservers control IP addresses. They just use the IPs from the OS.

Cygwin runs on windows, so you can go into the windows networking control panel to set an IP address.

--

Darren

Darren_Dunham at 2007-7-7 11:48:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
Thanks.
gabe_ryn at 2007-7-7 11:48:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5

Darren,

I use the following command in windows cygwin to get into X-cygwin (Solaris Desktop):

/usr/X11R6/bin

hostname.bat

X-cygwin is still trying to connect with existing ip however I changed ip in my solaris box. My windows pc has its own ip to connecect. I am just wondering if I have to make any changes within the cygwin.

Thanks

gabe_ryn at 2007-7-7 11:48:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6

I don't know what that file is. It's not on my cygwin installation. I only have the base X installation. Is it big? Can you show the contents?

In general, you shouldn't need to change anything in cygwin if you change the address or hostname. Obviously if you have any customizations or hostnames stored yourself, you might need to change those.

--

Darren

Darren_Dunham at 2007-7-7 11:48:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 7
this is what i did to resolve the issue:cd /usr/X11R6/binI edited my hosname.bat file i.e.vi solaris1.batSET REMOTE_HOST = my current IP addressThanks again for your help.Gabe
gabe_ryn at 2007-7-7 11:48:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...