From 96e7e3d1cac6cc6873e515e70675f094b128259f Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Thu, 31 May 2012 14:30:42 -0700 Subject: [PATCH] CS-15175: Fix public interfaces of redundant router We need to use ifup/ifdown to bring up the interfaces, because ifconfig don't know the ip of the interface after we modify cloud-early-config to avoid first start up of public interface. Reviewed-by: Edison --- .../debian/config/root/redundant_router/enable_pubip.sh.templ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ index 8be4265efb9..32604954990 100644 --- a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ +++ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ @@ -5,8 +5,8 @@ set -e ip link|grep BROADCAST|grep -v eth0|grep -v eth1|cut -d ":" -f 2 > /tmp/iflist while read i do - ifconfig $i down - ifconfig $i up + ifdown $i + ifup $i done < /tmp/iflist ip route add default via [GATEWAY] dev eth2 && \ service dnsmasq restart