diff options
author | Bill Nottingham <notting@redhat.com> | 2009-02-20 09:47:00 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-02-20 09:47:00 -0500 |
commit | ce4d036fcaebe759bd5edc2026c34bae5d8bf853 (patch) | |
tree | f524cdd09b1bfa07a636e395618be10d463e5441 /sysconfig/network-scripts/ifup-tunnel | |
parent | 252c7c1bf9779dbdba94abe47350c866ba8ca421 (diff) | |
download | initscripts-ce4d036fcaebe759bd5edc2026c34bae5d8bf853.tar initscripts-ce4d036fcaebe759bd5edc2026c34bae5d8bf853.tar.gz initscripts-ce4d036fcaebe759bd5edc2026c34bae5d8bf853.tar.bz2 initscripts-ce4d036fcaebe759bd5edc2026c34bae5d8bf853.tar.xz initscripts-ce4d036fcaebe759bd5edc2026c34bae5d8bf853.zip |
Add compatiblity for openNHRP tunnels (#486559, <claude.tompers@ieee.lu>)
ifup-tunnel fails for openNHRP type tunnels because the PEER_OUTER_IPADDR is
generated dynamically and therefore not given for this type of tunnels.
openNHRP tunnels also need a key, this is also added.
Diffstat (limited to 'sysconfig/network-scripts/ifup-tunnel')
-rwxr-xr-x | sysconfig/network-scripts/ifup-tunnel | 3 |
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" |