General
cancel
Showing results for 
Search instead for 
Did you mean: 

Add new IP address with no reboot

SOLVED
Go to solution
Peternt
Regular Advisor

Add new IP address with no reboot

Hi,
I have several net interfaces on my server. I configured the lan4. The user connection is trough this interface. The system is in production.
But I want to setup the lan0. Namely, the server must to have two net interfaces.
I've modified the /etc/rc.config.d/netconf file, adding this new interface (new IP address).

Due to the system is in production, I don't wish any downtime.

The question is:
Is there a way to "activate" the new net interface with no reboot the server.

The system is HP-UX 11i v1
Thanks in advance.
Roger
5 REPLIES
Hakki Aydin Ucar
Honored Contributor
Solution

Re: Add new IP address with no reboot

hi,

set_parms ip_address

OR

ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up


no reboot needed, but you have to use console, or you will lost connection.
Laurent Menase
Honored Contributor

Re: Add new IP address with no reboot

ifconfig lan0 10.10.10.10 netmask 255.255.255.0 up
then don't forget to update /etc/rc.config/d/netconfig for next reboot.


Re: Add new IP address with no reboot

if you have modified the /etc/rc.config.d/netconf file , another way is to restart the network services , remember to do this from console else you will lose connectivity.
To restart the network services use

/sbin/init.d/net stop
/sbin/init.d/net start
Peternt
Regular Advisor

Re: Add new IP address with no reboot

Thank you very much
Roger

Re: Add new IP address with no reboot

Do not forget to update your /etc/hosts and/or dns-server.

Regards,
Roland