OVH Community, your new community space.

Add a second IP failover to a VM


Mark G
06-01-2015, 20:19
You can use OVH's help section on Bridge Client (here: http://help.ovh.com/BridgeClient), or if you choose to, I have put together a more in-depth guide here: https://www.markgreenall.uk/blog/OVH...ailover-Part-1.

AlbaHost
15-09-2014, 09:12
You need to route them, use this configuration:
/etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR=IP.FAIL.OVER
GATEWAY=94.23.xxx.254
ARP=yes
HWADDR=aa:bb:cc:dd:70:2B

/etc/sysconfig/network-scripts/route-eth0:0
94.23.xxx.254 dev eth0
default via 94.23.xxx.254 dev eth0

Refer to this guide about VMs:
http://help.ovh.com/BridgeClient

Hope it solve your problem.

Dpy
14-09-2014, 23:14
Thanks for your reply.

I added the MAC address of my VM1 to my second IP failover
I followed this guide http://help.ovh.com/IpAlias to create eth0:0
I can't ping the secondary IP from my PC or my KVM host

What I did wrong?
Thanks in advance if you can help me

My configuration


/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=37.59.xxx.xx4
NETMASK=255.255.255.255
GATEWAY=94.23.xxx.254
/etc/sysconfig/network-scripts/ifcfg-eth0:0
Code:
DEVICE=eth0:0
BOOTPROTO=static
ONBOOT=yes
IPADDR=37.59.xxx.xx7
NETMASK=255.255.255.255
GATEWAY=37.59.xxx.xx7


ifconfig result:
Code:
eth0      Link encap:Ethernet  HWaddr aa:bb:cc:dd:70:2B
          inet addr:37.59.xxx.xx4  Bcast:37.59.xxx.xx4  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29561 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3298478 (3.1 MiB)  TX bytes:664784 (649.2 KiB)

eth0:0    Link encap:Ethernet  HWaddr aa:bb:cc:dd:70:2B
          inet addr:37.59.xxx.xx7  Bcast:37.59.xxx.xx7  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

AlbaHost
13-09-2014, 23:33
You need to use/create for all second ips an existing MAC (which is VM's main ip/mac) in this case it will work as well.

Dpy
13-09-2014, 17:26
Hi,

I have a KVM server with a ripe /30 block
I have a functioning Centos 6.5 VM, and I want add a secondary IP (eth0:0) on this VM

KVM host: 94.23.xxx.yyy
RIPE bloc /30 (37.59.xxx.aaa - 37.59.xxx.ddd)
VM1 eth0 IP: 37.59.xxx.aaa / GW: 94.23.xxx.254
2nd IP that I want to add to my VM1 eth0:0 = 37.59.xxx.ddd

I'm fully lost
do I have to assign a new MAC address to the second IP?
do I have to assign the MAC address of the VM to that IP?

Thanks in advance
Dpy