Community discussions

MikroTik App
 
mickeymouse690
Member Candidate
Member Candidate
Topic Author
Posts: 117
Joined: Sun May 20, 2007 3:08 am

BGP over gre tunnel or EOIP Keeps flapping

Fri Mar 31, 2023 9:04 pm

Hi all,

Not well versed in these protocols. Im trying to establish bgp over internet to another router that requires the first routers tables. I setup EOIP tunnels and bgp gets a connection and forwards the routes to the other router but the tunnel then starts flapping every second.. If I disbale bgp, the tunel stays up no problem. Same happens with a GRE tunnel. Im assuming im creating some sort of loop? The tunnel IPs are a unique private /30 between them. Tried also MTU 1500. Thoughts?

Regards,
 
mickeymouse690
Member Candidate
Member Candidate
Topic Author
Posts: 117
Joined: Sun May 20, 2007 3:08 am

Re: BGP over gre tunnel or EOIP Keeps flapping

Sun Apr 02, 2023 7:10 pm

bump
 
pe1chl
Forum Guru
Forum Guru
Posts: 10196
Joined: Mon Jun 08, 2015 12:09 pm

Re: BGP over gre tunnel or EOIP Keeps flapping

Sun Apr 02, 2023 7:51 pm

You forgot your network drawing and configuration export!
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: BGP over gre tunnel or EOIP Keeps flapping

Mon Apr 03, 2023 2:15 am

check the remote address of the tunnel.
Usually i'm living the tracert running and waching at loss and the path
 
pe1chl
Forum Guru
Forum Guru
Posts: 10196
Joined: Mon Jun 08, 2015 12:09 pm

Re: BGP over gre tunnel or EOIP Keeps flapping

Mon Apr 03, 2023 3:42 pm

A common problem is that start of BGP inserts other routes in the routing table and this overrides the route towards the BGP peer, causing loss of the peer connection.
But we never know until we know his network layout and configuration....
(having EoIP usually indicates a not very proficient admin, and so does writing "bump" in a reply to one's own posting)
 
mickeymouse690
Member Candidate
Member Candidate
Topic Author
Posts: 117
Joined: Sun May 20, 2007 3:08 am

Re: BGP over gre tunnel or EOIP Keeps flapping

Mon Apr 03, 2023 5:07 pm

Here is the worlds best network diagram..

Locations are connected to transit and local IX. I wish to share the learned routes from local IX with my private IX. At the moment,Image I am able to share the local IX routes learned in upstream router with core router. I wish to share the learned local IX routes in upstream router with another identical location and vice versa.

I had previously setup OSPF and MPLS among all participating routers and LSA etc all mapping was shared but as Im not proficient at all in those routing protocols and went with BGP as I can see the routes populate.

Image

image upload not working it seems

Transit1 Transit 2 Local IX
bgp
Upstream Router
bgp
Core Router-Local IX
direct attach
Switches

gre or eoip
internet
gre or eoip


Transit1 Transit 2 Local IX
bgp
Upstream Router
bgp
Core Router-Local IX
direct attach
Switches
 
wiseroute
Member
Member
Posts: 352
Joined: Sun Feb 05, 2023 11:06 am

Re: BGP over gre tunnel or EOIP Keeps flapping

Mon Apr 03, 2023 6:08 pm

hello.
I setup EOIP tunnels and bgp gets a connection and forwards the routes to the other router but the tunnel then starts flapping every second.. If I disbale bgp, the tunel stays up no problem. Same happens with a GRE tunnel. Im assuming im creating some sort of loop? The tunnel IPs are a unique private /30 between them. Tried also MTU 1500. Thoughts?
1. what did the bgp router log say about those flapping?

2. looped? could be. but later on. let see your network layout.

3. how many tunnel did you build for each back to back router? did you do bonding on those tunnel as well?
 
mickeymouse690
Member Candidate
Member Candidate
Topic Author
Posts: 117
Joined: Sun May 20, 2007 3:08 am

Re: BGP over gre tunnel or EOIP Keeps flapping

Mon Apr 03, 2023 6:58 pm

Only one side of the GRE or EOIP tunnel flaps but add's nothing to the logs, nor are there any BGP logs entries when this happens. I only see on the router receiving the new tables from BGP stop adding routes momentarily and then adds, then stops as the flapping continues...
 
wiseroute
Member
Member
Posts: 352
Joined: Sun Feb 05, 2023 11:06 am

Re: BGP over gre tunnel or EOIP Keeps flapping

Tue Apr 04, 2023 5:50 pm

hello mickey,

ok.

1. what does the eoip or gre interface log say about those flapping? and which method did you put those tunnels? inside a bridge?

2. what hardware platform did you run that bgp routing? have you checked its ram?

3. the simplest thing in filters: never accept own routes sent back from any peers.

ok. good luck 👍🏻
 
mickeymouse690
Member Candidate
Member Candidate
Topic Author
Posts: 117
Joined: Sun May 20, 2007 3:08 am

Re: BGP over gre tunnel or EOIP Keeps flapping

Tue Apr 04, 2023 7:13 pm

hello mickey,

ok.

1. what does the eoip or gre interface log say about those flapping? and which method did you put those tunnels? inside a bridge?

2. what hardware platform did you run that bgp routing? have you checked its ram?

3. the simplest thing in filters: never accept own routes sent back from any peers.

ok. good luck 👍🏻
tunnels are not bridged

upstream router is 4Gb ram and core router is 16Gb ram

Can you provide an example rule for v7 to never accept own routes back from peers? Would be much appreciated.

Who is online

Users browsing this forum: No registered users and 10 guests