lxc-net: Set broadcast

Closes #3457 Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent a94c4a6d
......@@ -46,7 +46,7 @@ _ifdown() {
_ifup() {
MASK=`_netmask2cidr ${LXC_NETMASK}`
CIDR_ADDR="${LXC_ADDR}/${MASK}"
ip addr add ${CIDR_ADDR} dev ${LXC_BRIDGE}
ip addr add ${CIDR_ADDR} broadcast + dev ${LXC_BRIDGE}
ip link set dev ${LXC_BRIDGE} address $LXC_BRIDGE_MAC
ip link set dev ${LXC_BRIDGE} up
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment