Operating System - HP-UX
1756607 Members
3525 Online
108848 Solutions
New Discussion юеВ

Re: Changing Hostname and IP Address

 
Rafael Casero
Regular Advisor

Changing Hostname and IP Address

Which files do I have modify when I change the full adentity of a server to another.

We want to change the hostname, IP address and etc...

Running HP 11.i
Thanks,
Ralph
5 REPLIES 5
MarkSyder
Honored Contributor

Re: Changing Hostname and IP Address

Easiest way would be to run set_parms initial. I'm pretty certain this will do everything you want.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Arunvijai_4
Honored Contributor

Re: Changing Hostname and IP Address

Hi Ralph,

You can use # /sbin/set_parms to set these values. Also have a look at /etc/rc.config.d/netconf

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mridul Shrivastava
Honored Contributor

Re: Changing Hostname and IP Address

If you make any changes to /etc/rc.config.d/netconf then for those changes to be effective you have two options

1. stop and start the net service using
/sbin/init.d/net stop
/sbin/init.d/net start
or
2. Reboot the server
Time has a wonderful way of weeding out the trivial
Tim Nelson
Honored Contributor

Re: Changing Hostname and IP Address

/etc/rc.config.d/netconf
change IP and hostname.
don't forget to update your host file as well.
Then reboot.
Ninad_1
Honored Contributor

Re: Changing Hostname and IP Address

Rafael,

Apart from the suggestions above, please note that any software installed registered to the current nodename needs to be configured so as to use the new nodename.
Also if there are any scripts with server name hardcoded (a bad idea to do), then you need to modify them as well.

Regards,
Ninad