From a6dc0c4b0aea51718147ad307c8b5ed101402d17 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Fri, 6 Jan 2017 15:29:32 -0600 Subject: rc.inet1: Partially migrate bridge setup code TODO: brctl --> ip link add name ${br_name} type bridge --- rc.inet1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc.inet1 b/rc.inet1 index 4377b58..5b3085c 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -78,8 +78,8 @@ br_open() { # argument is 'i' - the position of this interface in the IFNAME array. /sbin/brctl addbr ${IFNAME[$1]} for BRIF in $(echo ${BRNICS[$1]}); do - /sbin/ifconfig $BRIF down - /sbin/ifconfig $BRIF 0.0.0.0 promisc up + /sbin/ip link set $BRIF down + /sbin/ip address add 0.0.0.0 dev $BRIF /sbin/brctl addif ${IFNAME[$1]} $BRIF done } @@ -92,7 +92,7 @@ br_close() { do /sbin/brctl delif ${IFNAME[$1]} $BRIF done - /sbin/ifconfig ${IFNAME[$1]} down + /sbin/ip link set ${IFNAME[$1]} down /sbin/brctl delbr ${IFNAME[$1]} } -- cgit v1.2.3