summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
Diffstat (limited to 'rc.inet1')
-rw-r--r--rc.inet14
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index 691db79..ebbd243 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -319,8 +319,8 @@ if_up() {
ip="${ipalias%/*}"
nm="${ipalias#*/}"
[ -z "$nm" ] || [ "$ip" == "$nm" ] && nm="24"
- echo "/etc/rc.d/rc.inet1: /sbin/ip -4 address add ${ip}/${nm} dev ${1} label ${1}:${num}" | $LOGGER
- if /sbin/ip -4 address add ${ip}/${nm} dev ${1} label ${1}:${num}; then
+ echo "/etc/rc.d/rc.inet1: /sbin/ip -4 address add ${ip}/${nm} broadcast + dev ${1} label ${1}:${num}" | $LOGGER
+ if /sbin/ip -4 address add ${ip}/${nm} broadcast + dev ${1} label ${1}:${num}; then
num=$(($num + 1))
else
echo "/etc/rc.d/rc.inet1: failed to add IP ${ip} to ${1}" | $LOGGER