summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
Diffstat (limited to 'rc.inet1')
-rw-r--r--rc.inet16
1 files 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]}
}