Browse Source

40network/ifup: add "brd +" to "ip addr add"

Unlike "ifconfig", the "ip" command does not set a broadcast address
unless explicitly requested.

add "brd +" to make "ip" calculate the broadcast address on the fly
master
Harald Hoyer 13 years ago
parent
commit
d1b7efd578
  1. 2
      modules.d/40network/ifup

2
modules.d/40network/ifup

@ -63,7 +63,7 @@ do_static() { @@ -63,7 +63,7 @@ do_static() {
# do not flush addr for ipv6
strstr $ip '*:*:*' || \
echo ip addr flush dev $netif
echo ip addr add $ip/$mask dev $netif
echo ip addr add $ip/$mask brd + dev $netif
} > /tmp/net.$netif.up

[ -n "$gw" ] && echo ip route add default via $gw dev $netif > /tmp/net.$netif.gw

Loading…
Cancel
Save