info_i_25x25.png Due to unforeseen weather conditions we are experiencing higher chat wait times. Remember you can also submit a ticket and one of our support representatives will get back to you as soon as possible. We apologize for the inconvenience.

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