diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connections/ethernet | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index ebd3a78..3d70d9e 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -137,6 +137,16 @@ ethernet_up() { report_iproute "Adding gateway $GATEWAY6 failed" fi fi + + # Add static IPv6 routes + if [[ -n "$ROUTES6" ]]; then + for route in "${ROUTES6[@]}"; do + report_debug ethernet_iproute_up ip -6 route add $route dev $INTERFACE + if ! ip -6 route add $route dev $INTERFACE ; then + report_iproute "Adding route '$route' failed" + fi + done + fi ;; "") ;; |