From 3bf9b9040d3af82d345ad54cf2f388796aea0739 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Wed, 13 Nov 2019 22:26:41 +0000 Subject: When creating a bond, flush the underlying interface IP. Also removed redundant setting of a 0.0.0.0 IP address. --- rc.inet1 | 6 ++---- 1 file 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" -- cgit v1.2.3