From 2741ce5581c3dc5d34942d0b83380cf9b21ee898 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 10 Mar 2013 14:05:52 +0100 Subject: [PATCH] ipv4-static: Fix setting default route. When the static IPv4 address configuration has been applied to a zone, the default gateway was not properly set, which is fixed by this commit. --- hooks/zones/bridge.configs/ipv4-static | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hooks/zones/bridge.configs/ipv4-static b/hooks/zones/bridge.configs/ipv4-static index 16361639..ba866ca6 100755 --- a/hooks/zones/bridge.configs/ipv4-static +++ b/hooks/zones/bridge.configs/ipv4-static @@ -86,6 +86,7 @@ function _up() { routing_db_set ${zone} ipv4 active 1 routing_update ${zone} ipv4 + routing_default_update exit ${EXIT_OK} } @@ -104,6 +105,9 @@ function _down() { ip_address_del ${zone} ${ADDRESS}/${PREFIX} + # Update routing tables. + routing_default_update + exit ${EXIT_OK} } -- 2.47.3