From 2195f3ad838047f2492b58395820ce27db7b6be8 Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Thu, 5 Jul 2012 13:45:29 -0700 Subject: [PATCH] VPC : CS-15424 default route & gateway is missing for private network in VPC virtual router on Vmware reviewd by : Anthony adding route configuration through eth0 when VPC router --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 2e6d3c3bca7..21324cbbac5 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -596,7 +596,10 @@ EOF fi if [ -n "$MGMTNET" -a -n "$LOCAL_GW" ] then - ip route add $MGMTNET via $LOCAL_GW dev eth1 + if [ "$hyp" == "vmware" ] + then + ip route add $MGMTNET via $LOCAL_GW dev eth0 + fi fi ip route delete default