diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-07-17 15:40:21 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-07-17 15:40:21 +0200 |
commit | 17bd14915a0498832df22904cab661feed04bf65 (patch) | |
tree | a8414d1ac5a948a59a4e163c62221d630f7f4bf3 | |
parent | c8bcc10c322cb281ab3abb78483eebf189aeede4 (diff) | |
download | netctl-17bd14915a0498832df22904cab661feed04bf65.tar.gz netctl-17bd14915a0498832df22904cab661feed04bf65.tar.xz |
ethernet: specify device name explicitly when setting gateways
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/connections/ethernet | 8 |
2 files changed, 7 insertions, 4 deletions
@@ -1,3 +1,6 @@ +version 2.6.5 +- specify device name explicitly when setting gateways + version 2.6.4 - documentation update - modify wireless workflow to avoid issues with association 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 |