--- modules.d/40network/ifup.sh | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 6c3133e..f64b16f 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -107,12 +107,13 @@ do_static() { linkup $netif [ -n "$macaddr" ] && ip link set address $macaddr dev $netif [ -n "$mtu" ] && ip link set mtu $mtu dev $netif + [ -n "$srv" ] && peer="peer $srv" if strstr $ip '*:*:*'; then # note no ip addr flush for ipv6 - ip addr add $ip/$mask dev $netif + ip addr add $ip/$mask $peer dev $netif else ip addr flush dev $netif - ip addr add $ip/$mask brd + dev $netif + ip addr add $ip/$mask $peer brd + dev $netif fi [ -n "$gw" ] && echo ip route add default via $gw dev $netif > /tmp/net.$netif.gw -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html