1826074 Members
3380 Online
109690 Solutions
New Discussion

nodename/IP change

 
SOLVED
Go to solution
Ross Minkov
Esteemed Contributor

nodename/IP change

What is the procedure to change the nodename / static IP on an 11i system?
Thanks,
Ross
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: nodename/IP change

Ross,

The easiest, most thorough method is to use the /sbin/set_parms command:

/sbin/set_parms ip_address
/sbin/set_parms hostname

After each command, you will be prompted to reboot. Respond no after the first and yes after the second.


Pete


Pete
A. Clay Stephenson
Acclaimed Contributor

Re: nodename/IP change

set_parms hostname

set_parms ip_address

Man set_parms for details. Of course, you must update any DNS,NIS,NIS+ or /etc/hosts entries which could be on many hosts but hopefully you are using DNS (or NIS) so that those changes can be done in one place.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: nodename/IP change

There are a couple of different ways you can do it:

1) Use the set_parms command. 'man set_parms' for more information.

# set_parms hostname
# set_parms ip_address
# set_parms addl_network


2) You could manually edit the /etc/hosts file and put in the new IP and hostname and also edit /etc/rc.config.d/netconf and put the new information there as well.

I prefer the manual method, but either will work.
Mark Grant
Honored Contributor

Re: nodename/IP change

This might not be as complete as the set_parms answer up above but at least you don't need to re-boot!

hostname newhostname

edit /etc/hosts to change hostname and ip address in there too

ifconfig lanX 128.xxx.xxx.xxx netmask xxx.xx.xxx.xxx

route add (the rest of this depends on how different your ip address is but suffice to say, set up your routing)

edit /etc/rc.config.d/netconf (so that you get the right settings when you boot up again)

There may be one or two extra things but this covers it mostly. We had to do this ourselves a couple of weeks ago and haven't had any ill effects as yet.
Never preceed any demonstration with anything more predictive than "watch this"
Ross Minkov
Esteemed Contributor

Re: nodename/IP change

thanks for your help