From d893cb48a51ffe08236dcfafaedf882af2ee9a5e Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Sun, 21 Jul 2013 22:15:22 -0700 Subject: [PATCH] CLOUDSTACK-3699: Fix ARP broadcast of VPC router Every new public IP should be send out ARP broadcast. --- patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh b/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh index f2f8a49339e..a5b02398086 100755 --- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh +++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh @@ -76,8 +76,9 @@ add_an_ip () { if [ $old_state -eq 0 ] then sudo ip link set $ethDev up - sudo arping -c 3 -I $ethDev -A -U -s $pubIp $pubIp fi + sudo arping -c 1 -I $ethDev -A -U -s $pubIp $pubIp + sudo arping -c 1 -I $ethDev -A -U -s $pubIp $pubIp local tableNo=${ethDev:3} sudo iptables-save -t mangle | grep "PREROUTING -i $ethDev -m state --state NEW -j CONNMARK --set-xmark" 2>/dev/null if [ $? -gt 0 ]