1752600 Members
4278 Online
108788 Solutions
New Discussion юеВ

Re: IP ADDRESS CHANGE

 
Jeff Hagstrom
Regular Advisor

IP ADDRESS CHANGE

How do you change the IP address of a HPK460?
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: IP ADDRESS CHANGE

Hi Jeff:

One easy way is to run:

# /sbin/set_parms ip_address

...JRF...
Juan Gonz├бlez
Trusted Contributor

Re: IP ADDRESS CHANGE

Hi Jeff,
if you don't want to reboot you can do the follow:
1. Get your net-interface with lanscan.
2. Set the ip address of this interface with ifconfig. For example:
#ifconfig lan0 192.168.1.1
3.Modify /etc/rc.config.d/netconf changing the old IP address with the new.
4. Change in /etc/hosts the old IP for the new IP.

Best regards
Juan Gonzalez
Vincenzo Restuccia
Honored Contributor

Re: IP ADDRESS CHANGE

1. set_parms (reboot yes)
2. /etc/rc.config.d/netconf,/etc/hosts the old IP for the new IP,/sbin/init.d/net stop|start and restart swagentd (no reboot).

MANOJ SRIVASTAVA
Honored Contributor

Re: IP ADDRESS CHANGE

Hi Jeff

One more way , try doing it using SAM it also ensures taht all the respective files get updated.

Manoj Srivastava
eran maor
Honored Contributor

Re: IP ADDRESS CHANGE

Hi

change the /etc/rc.config.d/netconf with the new ip adress .

also change the /etc/host or the nis if you are working with nis.

you can change the ip with set_params .

my advise is to run /sbin/init.d/net stop
/sbin/init.d/net start

but my advise is to do reboot because i dont knowwith applic you have install
love computers
RAJESH GANGADHARAN
Regular Advisor

Re: IP ADDRESS CHANGE

edit the file /etc/rc.config.d/netconf
and change the IP Address
edit /etc/hosts and change th IP

reboot the machine
Let the choices you make today be the choices you can live with tomorrow.
Hamdy Al-Sebaey
Regular Advisor

Re: IP ADDRESS CHANGE

Hi Jeff,
similar to James & Vincezo, but be careful if you have some applications(Tuxedo,staffware or uniface) which listen to the IP adress& the node name or not before you the change it,if it is so then I'll go with the opion of James just reboot your server.

Goodluck,
Hamdy
Thanks for sharing knowledge
Shannon Petry
Honored Contributor

Re: IP ADDRESS CHANGE

DO NOT USE SAM! as someone mentioned to change a hostname. It does not change all of the required files, and after a bounce, you'll be dead in the water.

Also, I saw your other post for the IP address change, which is identical to this. Edit the /etc/rc.config.d/netconf, and modify the IP, Netmask, and broadcast address if it is defined in that file. Then modify /etc/hosts to reflect the change. Best bet is to reboot as opposed to running /sbin/init.d/net stop
/sbin/init.d/net start
See below...

As others said, modify the HOSTNAME variable defined in "/etc/rc.config.d/netconf", then change /etc/hosts to reflect the change. Dont do this in the other order, as you could hose your X desktop!

Rebooting is the safest, as there are many sub-applications that will require updates for the system to function properly. These are not updated nor restarted by running the "net" boot script. X is a great example, but anything that creates/uses a socket based on the hostname or IP address can be affected.

Regards,
Shannon
Microsoft. When do you want a virus today?
jedd
Advisor

Re: IP ADDRESS CHANGE

we are in the process of changing our whole network. it seems like /sbin/set_parms ip_address only changes ip. if i need to change the whole shbang incl. gateway, dns pointers and subnet mask. is there any way to do it? i tried sam but can't find anything else other than changing the ip and subnet.
thanks for the help.