diff options
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]} } |