Merge pull request #374 from currite/tunnel-keys

tunnel: add tunnel keys
This commit is contained in:
Christian Poessinger 2020-11-11 17:55:58 +01:00 committed by GitHub
commit d9d7e64a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,29 @@ ip otherwise it would have to be configured as well.
tunnel source 203.0.113.10 tunnel source 203.0.113.10
tunnel destination 198.51.100.2 tunnel destination 198.51.100.2
Tunnel keys
^^^^^^^^^^^
GRE is also the only classic protocol that allows creating multiple tunnels with the same source and destination due to its support for tunnel keys. Despite its name, this feature has nothing to do with security: it's simply an identifier that allows routers to tell one tunnel from another.
An example:
.. code-block:: none
set interfaces tunnel tun0 local-ip 192.0.2.10
set interfaces tunnel tun0 remote-ip 192.0.2.20
set interfaces tunnel tun0 address 10.40.50.60/24
set interfaces tunnel tun0 parameters ip key 10
.. code-block:: none
set interfaces tunnel tun0 local-ip 192.0.2.10
set interfaces tunnel tun0 remote-ip 192.0.2.20
set interfaces tunnel tun0 address 172.16.17.18/24
set interfaces tunnel tun0 parameters ip key 20
Troubleshooting Troubleshooting
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^