1833776 Members
2000 Online
110063 Solutions
New Discussion

Re: ip address change

 
SOLVED
Go to solution
jane zhang
Regular Advisor

ip address change

Hi all,

I will need to bring several workstations including hp and sun from another site to our site.
We are using DNS. I will need to change ip address, hostname, NIS domain change, subnet mask, gateway...

Can anybody tell me the details steps besides set_pams and SAM.

Is it better to make the changes before shutting them down or after?

Thanks,
Jane
8 REPLIES 8
kish_1
Valued Contributor

Re: ip address change

Hi
edit /etc/rc.config.d/netconf
and /etc/hosts
do the required changes on IP address and subnet mask
share the power of the knowledge
Sudhakar J_1
Advisor

Re: ip address change

Hi

It is better you change before the shutdown and move it to new site to save time because while starting services may seem to hang if it is not able to find NIS domain.

Regards

Sudhakar J
tomorrow is just another day
T G Manikandan
Honored Contributor
Solution

Re: ip address change

Before you start moving the machines make sure that you disable all ip's on the machines.

Bring them to the new network.
There is no need to change any files on those machines.

Just doing a
#set_parms initial

which should be able to change all the things you have mentioned and should update all the files automatically.

To check them you can use

DNS--->check the /etc/resolv.conf file for the server ip.
check the /etc/nsswitch.conf file for the lookup order.Make sure that dns is placed first before files.
For ip and hostname,subnet-mask,gateway check,

/etc/hosts
/etc/rc.config.d/netconf


For the sun machines,

Disable all ip-address on the machines.move them to the new network.

For ip and hostname

Edit the /etc/hosts file and change the ip-address change address
Also edit the /etc/hostname. to change the hostname.

you can just do a
ifconfig inet
to change the ip.

For DNS

you can use teh /etc/resolv.conf
file to make the changes

Revert
Ravi_8
Honored Contributor

Re: ip address change

Hi jane

the machines will be down when they are shifted to your new place.

power ON the machines, interrupt the boot process and get into single user mode
#mount -a
#set_parms initial

machines will reboot and will be on your network.
never give up
jane zhang
Regular Advisor

Re: ip address change

Hi all,
Thanks for the detailed info.
Revert, DNS server is controlled by another group, I will disable the old ip and hostname, bring the machines on site and then acquire new IP address as well as hostname before I run "set_parms initial".
Also, Running this command in single user mode?
Any special attention about the NIS domain change?

Regards,
Jane
jane zhang
Regular Advisor

Re: ip address change

Sorry, miss the comment given by ravi.
get into single user mode
#mount -a
#set_parms initial

Jane
Patrick Wallek
Honored Contributor

Re: ip address change

Everyone has covered the HP machines pretty well.

On the Sun solaris machines, I'd run a 'sys-unconfig' on the machines before you shut them down. This will unconfigure the machines at bring them down to the 'ok' prompt.

When you get them to the new location and power them up they will boot up into the Sun configuration dialog and allow you to set the IP address, NIS domain name, and everything else.
jane zhang
Regular Advisor

Re: ip address change

Hi all,
Thanks, I will try it out with the move.
Jane