Community discussions

MikroTik App
 
Mike33
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Tue Jun 25, 2013 2:13 am

IPIP vs GRE

Mon Apr 19, 2021 6:55 pm

Please give your assessment of what is better to choose for a tunnel between two routers to combine two subnets.
IPIP vs GRE - what's the difference?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19099
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: IPIP vs GRE  [SOLVED]

Tue Apr 20, 2021 12:58 am

From wiki: "GRE is the same as IPIP and EoIP which were originally developed as stateless tunnels. Which means that if the remote end of the tunnel goes down, all traffic that was routed over the tunnels will gets blackholed. To solve this problem, RouterOS have added 'keepalive' feature for GRE tunnels."

https://help.mikrotik.com/docs/display/ROS/IPIP
https://help.mikrotik.com/docs/display/ROS/GRE
https://help.mikrotik.com/docs/display/ROS/EoIP

Without much knowledge I would say IPIP and GRE are for connecting routers at different sites and EOIP is more for connecting LANS from different sites.
 
Mike33
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Tue Jun 25, 2013 2:13 am

Re: IPIP vs GRE

Tue Apr 20, 2021 5:09 pm

In what cases do I need to specify addresses for both ends of the IPIP-tunnel, and in what cases it is not necessary?
I tried a IPIP-tunnel without addresses - everything works fine.
 
mhaluska
just joined
Posts: 22
Joined: Sat Jun 13, 2020 1:20 pm

Re: IPIP vs GRE

Tue Apr 20, 2021 6:59 pm

In what cases do I need to specify addresses for both ends of the IPIP-tunnel, and in what cases it is not necessary?
I tried a IPIP-tunnel without addresses - everything works fine.
Not required for single ISP or single WAN IP. If you have multi-ISP uplink or more IPs on WAN and you want to use specific one (not default), then you need to specify
local-address
. You can achieve same using static routes with multi-ISP/WAN-IP, then you can omit
local-address
.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: IPIP vs GRE

Tue Apr 20, 2021 8:11 pm

In what cases do I need to specify addresses for both ends of the IPIP-tunnel, and in what cases it is not necessary?
I tried a IPIP-tunnel without addresses - everything works fine.
When you enable IPsec encryption you will need to specify a local address
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11433
Joined: Thu Mar 03, 2016 10:23 pm

Re: IPIP vs GRE

Tue Apr 20, 2021 8:50 pm

In what cases do I need to specify addresses for both ends of the IPIP-tunnel, and in what cases it is not necessary?
I tried a IPIP-tunnel without addresses - everything works fine.
When you enable IPsec encryption you will need to specify a local address
I just tried ... and IPsec works just fine without setting local address. Seems it automatically takes local IP address of interface used when routing towards peer. For most users that'll be interface used by default route.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: IPIP vs GRE

Wed Apr 21, 2021 8:50 pm

...
I just tried ... and IPsec works just fine without setting local address. Seems it automatically takes local IP address of interface used when routing towards peer. For most users that'll be interface used by default route.
Hmmm, Yup, just tested and seems you are correct.
I guarantee this was not the case a couple of versions ago...
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11433
Joined: Thu Mar 03, 2016 10:23 pm

Re: IPIP vs GRE

Wed Apr 21, 2021 10:28 pm

I guarantee this was not the case a couple of versions ago...
I'll take your word on it ;-)

Who is online

Users browsing this forum: dervomsee and 46 guests