We are running Solaris 9 and I have changed the IP address, Subnet Mask & Broadcast Address using ifconfig and have also changed the default gateway.
How do I save these changes as I have bounced the box and it reverted back to the old IP Address settings.
I am really new to UNIX and we normally have someone who manages this, but he is off sick at the moment.
Any help would be greatly appreciated.
Thanks
PAUL LEWIS
IP changed but the hostname is the same, right?
Edit /etc/hosts to change the hostname's ip address. Edit /etc/defaultrouter if that changed.
Perderabo,
Thanks for this. The host file says the new IP Address of the server (Host name is the same by the way)
I cant seem to find this defaultrouter file / folder under /etc but there is a default folder that contains the following:
-r-xr-xr-x 1 root bin 12 Jun 30 2005 cron
-r--r--r-- 1 root sys 204 Jun 30 2005 devfsadm
-r--r--r-- 1 root sys 3388 Jun 30 2005 dhcpagent
-r--r--r-- 1 root bin 10 Jun 30 2005 fs
-r--r--r-- 1 root sys 719 Jun 30 2005 inetd
-r--r--r-- 1 root sys 1697 Jun 30 2005 inetinit
-r-xr-xr-x 1 root sys 632 Jul 1 2005 init
-rw-r--r-- 1 root root 495 Jun 30 2005 jumpstart
-r--r--r-- 1 root sys 1183 Jun 30 2005 kbd
-r--r--r-- 1 root sys 523 Jun 30 2005 keyserv
-r--r--r-- 1 root sys 2014 Jun 30 2005 login
-r--r--r-- 1 root bin 16511 May 11 2004 lu
-rw-r--r-- 1 root sys 489 Oct 17 2003 metassist.xml
-r--r--r-- 1 root sys 481 Jun 30 2005 mpathd
-rw-r--r-- 1 root sys 1358 Jun 30 2005 nfs
-r--r--r-- 1 root bin 576 Jun 30 2005 nfslogd
-rw-r--r-- 1 root sys 749 Jun 30 2005 nss
-r--r--r-- 1 root sys 74 Jun 30 2005 passwd
-rw-r--r-- 1 root sys 5606 Apr 7 2002 rpc.nisd
-r--r--r-- 1 root sys 703 Jun 30 2005 su
-rw-r--r-- 1 root sys 803 Oct 5 2001 sys-suspend
-r--r--r-- 1 root sys 509 Jun 30 2005 syslogd
-r--r--r-- 1 root sys 526 Jun 30 2005 tar
-r--r--r-- 1 root sys 16 Jun 30 2005 utmpd
-r--r--r-- 1 root sys 509 Jun 30 2005 yppasswdd
Do I have to ammend one of these files under this directory.
Sorry to ask such daft questions it is just that I am really new to all this and dont fully understand the file structure for this OS
Thanks
You should not need to touch /etc/default/*
/etc/resolv.conf and /etc/netmasks might need a change. Most of these files have links into /etc/inet/* (iirc) and you can look there.
But if /etc/hosts was changed prior to the reboot (and you have no /etc/defaultrouter) then I must suspect that DHCP is being used. That means you have another server somewhere that is telling this server what to use on reboot. You need to track down that other server. If you missed that, you may have missed DNS as well. Your DNS servers (assuming you use them...they would be listed /etc/resolv.conf) need to know the new IP address.
DHCP Problem it was. We have 2 DHCP servers and we had a reserved address on the first one that I needed to delete. Then the server looked at the 2nd DHCP server and configured itself with the correct IP Address.
Thanks for all your help in this matter perderabo
Cheers