[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] XCP 1.6 routing a (failover) ip over the host system

  • To: 'Sebastian Kuhn' <sebakuhn@xxxxxxxxx>, "Xen-api@xxxxxxxxxxxxx" <Xen-api@xxxxxxxxxxxxx>
  • From: Rob Hoes <Rob.Hoes@xxxxxxxxxx>
  • Date: Tue, 19 Mar 2013 09:44:00 +0000
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Tue, 19 Mar 2013 09:44:14 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: Ac4j6eUdXRHGjCzdTYylzbxkwfjOVgAnDkBQ
  • Thread-topic: [Xen-API] XCP 1.6 routing a (failover) ip over the host system

Hi Sebastian,


Perhaps you need to enable IP forwarding in dom0 to make this work?


You could try something like this:

# sysctl -w net.ipv4.ip_forward=1





From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf Of Sebastian Kuhn
Sent: 15 March 2013 1:08 PM
To: Xen-api@xxxxxxxxxxxxx
Subject: [Xen-API] XCP 1.6 routing a (failover) ip over the host system


Hello everyone, 


I'm pretty new to Xen/XCP and I have a problem which I wasn't able to solve yet. Maybe you can help me.


- I have to machines at Hetzner. 

- I booked a failover ip from hetzner which can dynamically be re-routed to one of the hosts.

- This IP can only be routed to one of the main IPs, so a router VM can not be used.


I have tried different configurations so far and none of them seem to be working.


I tried attaching the IP to xenbr0 and then configzured it in the VM, using the host as the gateway. It currently looks as if the VM itself has internet access, since its has an additional ip (with own MAC) too.


The config on the guest is:


# Failover-IP
iface eth0 inet static
        address xx.4.4.170                              # FailoverIP
        netmask                    # Netmask of the hosts main IP
        gateway xx.4.10.214                           # IP of the host
        broadcast xx.4.10.255                         # BC adddress for hosts main IP
        pointopoint xx.4.10.214                       
iface eth0:1 inet static
        address xx.4.10.242                             # additional IP
        netmask                    #
        broadcast xx.4.10.255                          # 
        gateway xx.4.10.214                           # IP of the host
When I ping  xx.4.10.242, using "tcpdump -Kn | grep ICMP" I can see the ping request and repsonse from the VM.
When I ping xx.4.4.170, I can only see the request on the host.
What exactly do I have to do to route this IP to a guest, which then uses the host as its gateway.

Any Ideas?
Xen-api mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.