incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Russell <>
Subject RE: [xenserver6 networking] dual IP routes not supported for host machine
Date Wed, 09 May 2012 20:19:02 GMT

How will Cloudstack management be able to function across datacenters without a gateway?

I had a similar issue where I was inclined to do something similar, but instead I further
separated the network because I realized that the one interface that must have a gateway is
the management.   My example was that I had my Cloudstack Management my Cloudstack-Storage
subnets contained in the same vlan-id and in the same subnet.

Ex:  Both vlan id 1500 with a 172.16.16/20

172.16.25/20 was for cloudstack management
172.16.28/20 was for cloudstack storage

While it worked in the confines of the cloudstack rules to stand up the zone, it broke because
the servers would mix up which NIC to source the traffic from which broke my secondary storage
and snapshots.  So I would end up traffic going different ways.

To fix, I stood up separate vlan and subnet for storage traffic.  

-----Original Message-----
From: Kevin Landreth [] 
Sent: Wednesday, May 09, 2012 3:57 PM
Subject: [xenserver6 networking] dual IP routes not supported for host machine

Emailing this to the list as per the IRC conversation.

I was having issues two nics and the default route which wasn't used for cloudstack management.

I am using advanced networking so this "patch" works for me.  I don't know exactly why the
conditional is in there or even why the gateway is needed, but removing it has caused no ill
effects so far in my testing.

I submitted the following bug report: for tracking.

diff --git a/scripts/vm/hypervisor/xenserver/
index 12d4e79..c6beccd 100755
--- a/scripts/vm/hypervisor/xenserver/
+++ b/scripts/vm/hypervisor/xenserver/
@@ -45,10 +45,7 @@ ipaddr=$1

 device=$(ip addr | grep $1 | head -1 | awk '{print $NF}')  defaultdev=$(ip route | grep default
| awk '{print $NF}') -if [ "$device" == "$defaultdev" ] -then
-  gateway=$(ip route | grep default | awk '{print $3}') -fi
+gateway=$(ip route | grep default | awk '{print $3}')

 [ -n "$gflag" ] && echo $gateway && exit 0
View raw message