Operating System - HP-UX
1834150 Members
3584 Online
110064 Solutions
New Discussion

Re: Server IP Address Change

 
Rob Smith
Respected Contributor

Server IP Address Change

Hello All,

I have three boxes that I have to change to IP addresses on. I believe the best way to do this is to run set_parms. Is there anything else I should be aware of? Any potential problems or pitfalls? None of these servers are running named and the host names are going to stay the same. Any help or advice would be appreciated.

TIA
R.Smith
Learn the rules so you can break them properly.
10 REPLIES 10
Paula J Frazer-Campbell
Honored Contributor

Re: Server IP Address Change

Hi Robert
Before changing ip addresss ping the address on your lan to ensure that it is not already allocated and also if moving an ip address from one server to another remember to move the target ip address first.

Just a couple of Ideas..
Paula
If you can spell SysAdmin then you is one - anon
Patrick Wallek
Honored Contributor

Re: Server IP Address Change

You can also change the IP address by editing the /etc/rc.config.d/netconf file and then rebooting the machine. I find that this is easier than running set_parms if you are not changing anything else like NIS, your time zone and whatever else set_parms prompts you for.

James R. Ferguson
Acclaimed Contributor

Re: Server IP Address Change

Robert:

It's just as easy to edit /etc/rc.config.d/netconf . Remember to check/change your ROUTE_GATEWAY. Also, edit /etc/hosts for your own address.

...JRF...
Rita C Workman
Honored Contributor

Re: Server IP Address Change

I agree with what everyone else is saying....one other thing to watch out for is if your boxes are configured into any MC/SG clusters...you'd need to fix those files also.

Bruce Regittko_1
Esteemed Contributor

Re: Server IP Address Change

Hi,

In addition to /etc/rc.config.d/netconf, set_parms also modifies /etc/hosts. Don't forget that file if you are "doing it by hand" or else the system probably won't boot past run level 1.

You may be able to avoid the reboot altogether by editing the above two files and then using the ifconfig(1m) command to change the ip address of the current session.
www.stratech.com/training
Harri Muttilainen
Occasional Advisor

Re: Server IP Address Change

Another way to avoid the reboot is to edit the netconf and hosts files and use:
# /sbin/init.d/net stop
and
# /sbin/init.d/net start

Regards
Harri
That wasn't me! I didn't say that!
Darrel Louis
Honored Contributor

Re: Server IP Address Change

Hi,

If you've any application, which is IP-Address sensitive, like Openview products, you need to do a license move.
If you're using DNS, make sure that the DNS database is updated properly.
If you're not using DNS, you should modify all the hosts files.

Bill McNAMARA_1
Honored Contributor

Re: Server IP Address Change

Watch out for client apps/devices.
ie and xterm will require to requalify
it's boot server, you should change its
config file.

Other client apps may also be affected.
It really depends on what you've got
hard-coded.
Typically set_params and /etc/hosts
perhaps /etc/bootptab should be
changed.

Bill
It works for me (tm)
Jochen Herrmann
New Member

Re: Server IP Address Change

Have look whereever DISPLAY is set!
HP-UX User and Developer
Robert R. Colp
Advisor

Re: Server IP Address Change

I am changing my IP addresses on my network. I have decided to take a different approach. After I reload my server with the operating system and all patches, I will ignite my 17 workstations with a reload of their operating systems. Why? Because I have had a few strange events with the software I run and the network can be down for at least a month.

You need to worry about any software with the IP address hard coded as well as the files mentioned above (etc/hosts, netconf, bootptab.)