summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-13 22:26:41 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-13 22:26:41 +0000
commit3bf9b9040d3af82d345ad54cf2f388796aea0739 (patch)
treead860cccc77010ad16c75e4b2bdbf30f44505d01
parent13dbfe19e521b9821dba0fee36a9e0ed8ab07fb6 (diff)
downloadslacknetsetup-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.inet16
1 files changed, 2 insertions, 4 deletions
diff --git a/rc.inet1 b/rc.inet1
index b9374ce..34daef1 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -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"