1833802 Members
2550 Online
110063 Solutions
New Discussion

add IP on server HP

 
SOLVED
Go to solution
DIERICKX_1
Occasional Contributor

add IP on server HP

I have two servers HP.

I want to stop one and then applications will be transfered on the second.

I want that the second server will take the IP adress of the first server and keep his IP adress.

So i think i must add a line on /etc/hosts.

But must i reboot the second server or is there a command which permits to avoid this reboot ?
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: add IP on server HP

Shalom,

Adding an IP address is done two ways.

1) ifconfig lan0:0 newipaddress netmask
This adds a virtual ip address that is a slae to the main ip of lan0 in this example.
2) configure lan0:0 (example) in /etc/rc.config.d/netconf This is a permanent solution.

/etc/hosts can be used to handle name to number resolution issues.

if hostname server2 gets a DNS ip address of 192.168.0.10, you can use /etc/hosts to override it with 192.168.0.20 server2 entry in /etc/hosts

Hopefully this will clarify things for you.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yogeeraj_1
Honored Contributor

Re: add IP on server HP

Hi,

You can also use SAM for the same operation.

Note that although you can configure you environment without the need to reboot the servers, there may be issues related to networking devices that know the server by the MAC address.

If you clear everything then there is less possibilities of 'glitches'.

Hope you did not do any application configuration by making use the physical IP address of the server....

Good luck!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
DIERICKX_1
Occasional Contributor

Re: add IP on server HP

I thank for the solutions