VPC : clean up rt_table when stop domr

This commit is contained in:
anthony 2012-07-03 12:25:05 -07:00
parent d0ed346b49
commit 051acd2306
2 changed files with 14 additions and 2 deletions

View File

@ -602,10 +602,10 @@ EOF
ip route delete default
# create route table for static route
sudo echo "251 static_route_back" >> /etc/iproute2/rt_tables 2>/dev/null
sudo echo "252 static_route" >> /etc/iproute2/rt_tables 2>/dev/null
sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null
sudo echo "251 static_route_back" >> /etc/iproute2/rt_tables 2>/dev/null
sudo ip rule add from $VPCCIDR table static_route 2>/dev/null
sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null
sed -i /gateway/d /etc/hosts
@ -777,6 +777,7 @@ setup_default() {
auto lo
iface lo inet loopback
EOF
cp -f /etc/iptables/rt_tables_init /etc/iproute2/rt_tables
}
change_password() {

View File

@ -0,0 +1,11 @@
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep