mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-12-15 18:12:02 +01:00
T3458:tunnel interface:added GRETAP section
added the command configuration for gretap and corrected the syntax in dhcp-relay example
This commit is contained in:
parent
c394c6e165
commit
5faf97f5a1
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. _examples-dhcp-relay-through-gre-bridge:
|
.. _examples-dhcp-relay-through-gre-bridge:
|
||||||
|
|
||||||
|
|
||||||
@ -24,8 +29,8 @@ DHCP Server
|
|||||||
set interfaces loopback lo address '192.168.3.3/24'
|
set interfaces loopback lo address '192.168.3.3/24'
|
||||||
set interfaces tunnel tun100 address '172.16.0.2/30'
|
set interfaces tunnel tun100 address '172.16.0.2/30'
|
||||||
set interfaces tunnel tun100 encapsulation 'gretap'
|
set interfaces tunnel tun100 encapsulation 'gretap'
|
||||||
set interfaces tunnel tun100 local-ip '10.0.2.1'
|
set interfaces tunnel tun100 source-address '10.0.2.1'
|
||||||
set interfaces tunnel tun100 remote-ip '192.168.0.1'
|
set interfaces tunnel tun100 remote '192.168.0.1'
|
||||||
set protocols ospf area 0 network '192.168.3.0/24'
|
set protocols ospf area 0 network '192.168.3.0/24'
|
||||||
set protocols ospf area 0 network '10.0.2.0/24'
|
set protocols ospf area 0 network '10.0.2.0/24'
|
||||||
set protocols ospf parameters router-id '192.168.3.3'
|
set protocols ospf parameters router-id '192.168.3.3'
|
||||||
@ -62,8 +67,8 @@ DHCP Relay
|
|||||||
set interfaces loopback lo address '10.100.100.1'
|
set interfaces loopback lo address '10.100.100.1'
|
||||||
set interfaces tunnel tun100 address '172.16.0.1/30'
|
set interfaces tunnel tun100 address '172.16.0.1/30'
|
||||||
set interfaces tunnel tun100 encapsulation 'gretap'
|
set interfaces tunnel tun100 encapsulation 'gretap'
|
||||||
set interfaces tunnel tun100 local-ip '192.168.0.1'
|
set interfaces tunnel tun100 source-address '192.168.0.1'
|
||||||
set interfaces tunnel tun100 remote-ip '10.0.2.1'
|
set interfaces tunnel tun100 remote '10.0.2.1'
|
||||||
set protocols ospf area 0 network '10.0.1.0/24'
|
set protocols ospf area 0 network '10.0.1.0/24'
|
||||||
set protocols ospf area 0 network '192.168.0.0/24'
|
set protocols ospf area 0 network '192.168.0.0/24'
|
||||||
set protocols ospf area 0 network '10.100.100.0/24'
|
set protocols ospf area 0 network '10.100.100.0/24'
|
||||||
|
|||||||
@ -201,6 +201,21 @@ An example:
|
|||||||
set interfaces tunnel tun0 address 172.16.17.18/24
|
set interfaces tunnel tun0 address 172.16.17.18/24
|
||||||
set interfaces tunnel tun0 parameters ip key 20
|
set interfaces tunnel tun0 parameters ip key 20
|
||||||
|
|
||||||
|
GRETAP
|
||||||
|
^^^^^^^
|
||||||
|
|
||||||
|
While normal GRE is for layer 3, GRETAP is for layer 2. GRETAP can encapsulate
|
||||||
|
Ethernet frames, thus it can be bridged with other interfaces to create
|
||||||
|
datalink layer segments that span multiple remote sites.
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces bridge br0 member interface eth0
|
||||||
|
set interfaces bridge br0 member interface tun0
|
||||||
|
set interfaces tunnel tun0 encapsulation gretap
|
||||||
|
set interfaces tunnel tun0 source-address 198.51.100.2
|
||||||
|
set interfaces tunnel tun0 remote 203.0.113.10
|
||||||
|
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user