summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r--src/connections/ethernet11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 902b603..a792922 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -149,11 +149,12 @@ ethernet_up() {
static)
sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=0
if [[ -n "$ADDR6" ]]; then
- [[ -z $PREFIXLEN ]] && PREFIXLEN=64
- report_debug ethernet_iproute_up ip -6 addr add "$ADDR6/$PREFIXLEN" dev "$INTERFACE"
- if ! ip -6 addr add "$ADDR6/$PREFIXLEN" dev "$INTERFACE"; then
- report_iproute "Could not configure interface"
- fi
+ for addr in "${ADDR6[@]}"; do
+ report_debug ethernet_iproute_up ip -6 addr add "$addr" dev "$INTERFACE"
+ if ! ip -6 addr add "$addr" dev "$INTERFACE"; then
+ report_iproute "Could not add address $addr to interface"
+ fi
+ done
fi
if [[ -n "$GATEWAY6" ]]; then
report_debug ethernet_iproute_up ip -6 route add default via "$GATEWAY6"