aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-tunnel3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-tunnel b/sysconfig/network-scripts/ifup-tunnel
index fc9c2f06..017dbf5c 100755
--- a/sysconfig/network-scripts/ifup-tunnel
+++ b/sysconfig/network-scripts/ifup-tunnel
@@ -61,7 +61,8 @@ fi
# The outer addresses are those of the underlying (public) network.
/sbin/ip tunnel add "$DEVICE" mode "$MODE" \
${MY_OUTER_IPADDR:+local "$MY_OUTER_IPADDR"} \
- remote "$PEER_OUTER_IPADDR" ${TTL:+ttl "$TTL"}
+ ${PEER_OUTER_IPADDR:+remote "$PEER_OUTER_IPADDR"} \
+ ${KEY:+key "$KEY"} ${TTL:+ttl "$TTL"}
if [ -n "$MTU" ]; then
/sbin/ip link set "$DEVICE" mtu "$MTU"