diff --git a/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh b/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh index 9a9a2c6f72f..f59eea9ef23 100644 --- a/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh +++ b/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh @@ -1,4 +1,4 @@ #!/bin/bash -ifconfig eth2 down +ifdown eth2 service dnsmasq stop 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 93539422753..5d96b018327 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 @@ -1,7 +1,7 @@ #!/bin/bash -ifconfig eth2 down && \ +ifdown eth2 && \ ifconfig eth2 hw ether [ETH2MAC] && \ -ifconfig eth2 up && \ -ip route add 0/0 via [GATEWAY] && \ +ifup eth2 && \ +ip route add default via [GATEWAY] dev eth2 && \ service dnsmasq restart