Operating System - HP-UX
1834346 Members
1982 Online
110066 Solutions
New Discussion

Need to change to new IP address -- does it require reboot

 
SOLVED
Go to solution
Debbie Fleith
Regular Advisor

Need to change to new IP address -- does it require reboot

I need to switch an HP-UX 11 server to a new IP address.

After making changes to the /etc/rc.config.d/netconf file, is there any init command I can run to restart network services, or do I have to reboot?
4 REPLIES 4
Mel Burslan
Honored Contributor

Re: Need to change to new IP address -- does it require reboot

no most likely you do not have to reboot unles there is some bizzare application which refuses to realize the new ip address for some reason, but in general no you do not have to.

In order to change the ip address of the server on the fly, after you modified the /etc/rc.config.d/netconf file, run this command:

ifconfig lanX inet a.b.c.d netmask x.y.w.z up

where

lanX is the name of the interface your host has, most likely lan0 if you have one interface only

a.b.c.d is your new ip address

x.y.w.z is the new netmask for this ip address, most likely 255.255.255.0

hope this helps.
________________________________
UNIX because I majored in cryptology...
Mel Burslan
Honored Contributor
Solution

Re: Need to change to new IP address -- does it require reboot

or again after modifying the /etc/rc.config.d/netconf file, you can stop and restart networking by running these commands:

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

make sure you do not do it from a telnet or ssh session as stopping the network will kill your connection. Do it from the system console.
________________________________
UNIX because I majored in cryptology...
Devender Khatana
Honored Contributor

Re: Need to change to new IP address -- does it require reboot

Hi,

No it is not required. You can change IP simply from SAM , update host file and it should be fine.

HTH,
Devender
Impossible itself mentions "I m possible"
Debbie Fleith
Regular Advisor

Re: Need to change to new IP address -- does it require reboot

solution found