diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2019-11-13 22:26:41 +0000 |
---|---|---|
committer | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2019-11-13 22:26:41 +0000 |
commit | 3bf9b9040d3af82d345ad54cf2f388796aea0739 (patch) | |
tree | ad860cccc77010ad16c75e4b2bdbf30f44505d01 | |
parent | 13dbfe19e521b9821dba0fee36a9e0ed8ab07fb6 (diff) | |
download | slacknetsetup-3bf9b9040d3af82d345ad54cf2f388796aea0739.tar.xz |
When creating a bond, flush the underlying interface IP.
Also removed redundant setting of a 0.0.0.0 IP address.
-rw-r--r-- | rc.inet1 | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -145,10 +145,8 @@ br_open() { debug_log "/sbin/ip link add name ${IFNAME[$1]} type bridge" /sbin/ip link add name ${IFNAME[$1]} type bridge for BRIF in ${BRNICS[$1]}; do - debug_log "/sbin/ip link set dev $BRIF down" - /sbin/ip link set dev $BRIF down - debug_log "/sbin/ip address add 0.0.0.0 dev $BRIF" - /sbin/ip address add 0.0.0.0 dev $BRIF + debug_log "/sbin/ip address flush dev $BRIF" + /sbin/ip address flush dev $BRIF debug_log "/sbin/ip link set dev $BRIF master ${IFNAME[$1]}" /sbin/ip link set dev $BRIF master ${IFNAME[$1]} debug_log "/sbin/ip link set dev $BRIF up" |