Operating System - HP-UX
1832511 Members
4959 Online
110043 Solutions
New Discussion

Re: Changing ipaddress of HP-UX Server..

 
vas_3
Advisor

Changing ipaddress of HP-UX Server..

Hi all,

I am planning to change the ipaddress of the HP-UX servers.What are the file i have change?.(should bind to New DNS and NIS Servers also).

->/etc/rc.config.d/netconf
IP_ADDRESS[0]=xxxxxxxxxxxxx
SUBNET_MASK[0]=xxxxxxxxxxxxx
ROUTE_GATEWAY[0]=xxxxxxxxxxx
->/etc/rc.config.d/namesrv
->/etc/hosts
->/etc/resolv.conf

I am thinking that above four files are enough.Is it correct?

I have written one perl script that will chagne above files.I don't want to use set_parms commands.Need to change more than 5 Servers ipaddresses.

Please help me..

Regards,
Srinu.


6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Changing ipaddress of HP-UX Server..

The easiest way to do this is to use the "/sbin/set_parms ip_address" command.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Changing ipaddress of HP-UX Server..

Sorry - while waiting for submit to work, I read your last line where you said you don't want to use set_parms.


Pete

Pete
DCE
Honored Contributor

Re: Changing ipaddress of HP-UX Server..



you can use set_parms ip_address
(reboot required)

or

SAM
(no imediate reboot)
ITlearner
Frequent Advisor

Re: Changing ipaddress of HP-UX Server..

Hi,

You can change the ipaddress and to make the change into effect immediate without reboot.
restart the network service.

#/sbin/init.d/net stop
#/sbin/init.d/net start

#/sbin/init.d/net.init stop
#/sbin/init.d/net.init start


Regards.
ITLearner.

vas_3
Advisor

Re: Changing ipaddress of HP-UX Server..

Hi DCE,

I need to change ipaddress of more than 5 Servers.I can't login to each and every servers and change the ipaddress.
I wrote one perl script that will chagne the ipaddresses of all Servers in one shot..My script will modify above four files.

Regards,
Srinu.
DCE
Honored Contributor

Re: Changing ipaddress of HP-UX Server..


Srinu,

Missed the line about not using set_parms.

Modifying the files you listed will change the IP address, however the system will still have the original IP address being referenced by some apps.

you will need at a minimum, to restart the networking services.

Sometimes it is less risky to do the change one system at a time.........