info_i_25x25.png Our ticketing platform provider has scheduled a maintenance window on May 20th, 2018. It will start at 1:00 am UTC on Sunday, May 20th and end at 1:00 pm UTC on Sunday, May 20th. During this time there might be an interruption in the chat service, but all our users will still be able to submit support tickets via the ticket submission form.

EdgeRouter - GRE tunnel commands

Overview


Readers will learn the commands to configure a GRE tunnel between two routers.

 
Router1

Use the following commands on Router1:

configure
set interfaces tunnel tun0 encapsulation gre
set interfaces tunnel tun0 local-ip 172.0.2.3
set interfaces tunnel tun0 remote-ip 172.0.2.20
set interfaces tunnel tun0 address 100.0.0.1/24
commit
exit
 
Router2

Use the following commands on Router2:

configure
set interfaces tunnel tun0 encapsulation gre
set interfaces tunnel tun0 local-ip 172.0.2.20
set interfaces tunnel tun0 remote-ip 172.0.2.3
set interfaces tunnel tun0 address 100.0.0.2/24
commit
exit

 

Firewall considerations:
Users will also need to allow protocol gre on the WAN local firewall.
Use the following commands on each router.
configure
set firewall name WAN_LOCAL rule 100 action accept
set firewall name WAN_LOCAL rule 100 description 'Allow GRE'
set firewall name WAN_LOCAL rule 100 protocol gre
commit
save
exit