]> git.ipfire.org Git - people/stevee/network.git/commitdiff
ipv4-static: Fix setting default route.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Mar 2013 13:05:52 +0000 (14:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Mar 2013 13:05:52 +0000 (14:05 +0100)
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

index 16361639b98bbf14a36bea9c6c86f6aad59f6d4e..ba866ca6e5b31344cea3fcc083cbcdb14b28bb3a 100755 (executable)
@@ -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}
 }