From 17bd14915a0498832df22904cab661feed04bf65 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 17 Jul 2011 15:40:21 +0200 Subject: ethernet: specify device name explicitly when setting gateways MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Oudompheng --- src/connections/ethernet | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/connections/ethernet b/src/connections/ethernet index 9b471bb..f9c660c 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -104,8 +104,8 @@ ethernet_up() { done fi if [[ -n "$GATEWAY" ]]; then - report_debug ethernet_iproute_up ip route add default via "$GATEWAY" - if ! ip route add default via "$GATEWAY"; then + report_debug ethernet_iproute_up ip route add default via "$GATEWAY" dev "$INTERFACE" + if ! ip route add default via "$GATEWAY" dev "$INTERFACE"; then report_iproute "Adding gateway $GATEWAY failed" fi fi @@ -162,8 +162,8 @@ ethernet_up() { done fi if [[ -n "$GATEWAY6" ]]; then - report_debug ethernet_iproute_up ip -6 route add default via "$GATEWAY6" - if ! ip -6 route add default via "$GATEWAY6"; then + report_debug ethernet_iproute_up ip -6 route add default via "$GATEWAY6" dev "$INTERFACE" + if ! ip -6 route add default via "$GATEWAY6" dev "$INTERFACE"; then report_iproute "Adding gateway $GATEWAY6 failed" fi fi -- cgit v1.2.3-24-g4f1b