diff options
author | Robert Bays <rbays@moresby.vyatta.com> | 2008-04-19 11:10:39 -0700 |
---|---|---|
committer | Robert Bays <rbays@moresby.vyatta.com> | 2008-04-19 11:10:39 -0700 |
commit | b0dd3c96c5e30077a602082c829d4bccf7795252 (patch) | |
tree | 1abb500d6b74cfdc7219bafa6d7ed44476951ce8 /scripts/vyatta-interfaces.pl | |
parent | 5617681dbb181b66d48164ec74d89f55e370a4d5 (diff) | |
download | vyatta-cfg-b0dd3c96c5e30077a602082c829d4bccf7795252.tar.gz vyatta-cfg-b0dd3c96c5e30077a602082c829d4bccf7795252.zip |
cycle interface state on IP address assigment to fix static routes
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index 28b1c14..abbf6a8 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -319,7 +319,10 @@ sub update_eth_addrs { } if ($version == 4) { - return system("ip addr add $addr broadcast + dev $intf"); + # revert this gruesome hack when quagga static route initialization + # is fixed. + #return system("ip addr add $addr broadcast + dev $intf"); + return system("ip link set $intf down; ip link set $intf up; ip addr add $addr broadcast + dev $intf"); } if ($version == 6) { return system("ip -6 addr add $addr dev $intf"); |