[Cialug] CentOS failover

Zachary Kotlarek zach at kotlarek.com
Thu Apr 10 13:59:22 CDT 2014


On Apr 10, 2014, at 10:40 AM, L. V. Lammert <lvl at omnitec.net> wrote:

> Had a situation today where the client was trying to make the backup
> webserver live by swapping IPs, .. and he was trying to do it from the
> GUI (which DNW).
> 
> What would be the best way to swap primary IPs for CentOS?

If you just want the machine to temporarily respond on another address:
	ip addr add 1.2.3.4/24 dev eth0
you don’t even need to take the old address down.

When you’re done:
	ip addr del 1.2.3.4/24 dev eth0
and things will be back to normal.

If you want the change to be persistent you should edit the on-disk config (which I think is at /etc/sysconfig/network-scripts/<interface>) and restart the networking service.

	Zach

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2749 bytes
Desc: not available
URL: <http://cialug.org/pipermail/cialug/attachments/20140410/792617a3/attachment.bin>


More information about the Cialug mailing list