Operating System - HP-UX
1820315 Members
2348 Online
109623 Solutions
New Discussion юеВ

transferring servers from one environment to another

 
SOLVED
Go to solution
Sandra R.
Occasional Contributor

transferring servers from one environment to another

What configuration files need to be updated with ip address, subnetmask, etc. when moving servers from one place to another to ensure that connectivity so that you can telnet or ping the servers once they are powered back up. Thanks
4 REPLIES 4
Con O'Kelly
Honored Contributor

Re: transferring servers from one environment to another

Hi Sandra
2 files to update.

1) If you're changing IP address, subnet mask, look at /etc/rc.config.d/netconf file to set IP address & subnet mask for each interface as well as to set your default router.

2) You also need to update /etc/hosts with the new IP address.

Depending on your DNS setup you may also need to update /etc/resolv.conf if are using a different DNS server.

Cheers
Con
A. Clay Stephenson
Acclaimed Contributor

Re: transferring servers from one environment to another

If none of the speed/duplex settings need to be changed, simply edit /etc/rc.config.d/netconf. You should check the settings of ROUTE_GATEWAY[x],IP_ADDRESS[x],SUBNET_MASK[x].

If speed/duplex setting need to be changed then cd to /etc/rc.config.d. Your file(s) will be there (e.g. hpbtlanconf, hpetherconf, ... depending upon your network card model).

You will also need to update /etc/hosts, /etc/resolv.conf (if applicable), and update DNS/NIS tables (if applicable).

The better way to do this is to
run the set_parms ip_address, set_parms hostname, set_parms addl_netwrk commands. They will update the appropriate files for you.

If it ain't broke, I can fix that.
twang
Honored Contributor

Re: transferring servers from one environment to another

Use "set_parms ip_address", it will configure all files for you.

You need to looked into the following files after change:
/etc/rc.config.d/netconf
/etc/hosts

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

If NFS, look into /etc/rc.config.d/nfsconf, set NFS_SERVER and NFS_CLIENT to 0 first.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: transferring servers from one environment to another

Hi Sandra,

Do this *just* before shutting down the system-

Save copies of the files that you modify below into a directory. Edit /etc/rc.config.d/netconf file and change the hostname, IP addresses and subnetmasks (for all the interfaces), default router and other static routers (if you have). Edit /etc/hosts and change the IP address corresponding to the new hostname. You may have to change the DNS entries in /etc/resolv.conf if the DNS configuration is also changing.

Then shutdown, move the servers and simply bring them up after the connections. You should get everything up and running with minimum effort provided the network is configured properly.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try