VPC : if no public gateway then set up public gateway in ip assoc

This commit is contained in:
anthony 2012-06-21 18:23:55 -07:00
parent 93eeb58a0e
commit 5e16130d98
1 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,11 @@ add_routing() {
sudo ip route add $subnet/$mask dev $ethDev table $tableName proto static
sudo ip route add default via $defaultGwIP table $tableName proto static
sudo ip route flush cache
sudo ip route | grep default
if [ $? -gt 0 ]
then
sudo ip route add default via $defaultGwIP
fi
return 0
}
@ -61,7 +66,6 @@ add_an_ip () {
fi
add_routing
return $?
}
remove_an_ip () {