Page 1 of 1

iBGP & 2x eBGP

Posted: Thu Dec 22, 2016 11:36 pm
by roman117
Hello,

I have newbie question about iBGP configuration, please give some HOWTO.

Now we have:
- 1 office, 1 router and 1 EBGP session with our ISP;
- one AS-number and /22 IPv4 network.

We need:
- create an additional eBGP session to ISP in another town;
- rise up IGP between routers for exchanging routes;
- use one /24 subnet from our /22 subnet in new place. For example, we have 192.168.96.0/22 from RIPE, in first place we use 192.168.96.0/24 , in second office we need to use 192.168.97.0/24


I created iBGP with default settings(Remote IP, my AS) and it was successfully established.
Then i started eBGP session with ISP in second office, but after that all my subnet 192.168.96.0/24 stop working from first office.

All my /22 network start working from new place, but in routes on router1 i have only reconfigured 192.168.96.0/24 and on router2 192.168.97.0/24

Thanks for any advice!

Re: iBGP & 2x eBGP

Posted: Fri Dec 23, 2016 12:44 pm
by mrz
What prefixes you are advertising to each provider? Looks like you are advertising /22 from both peers and new one is more preferred.

Re: iBGP & 2x eBGP

Posted: Fri Dec 23, 2016 12:49 pm
by roman117
Hello,

It is the same provider, in 2 different places.
Yes, i am advertising /22 subnet from both places. It is how it was received from RIPE.

Re: iBGP & 2x eBGP

Posted: Fri Dec 23, 2016 12:58 pm
by roman117
There is a way to resolve situation if we advertising /22 network from both places?

Re: iBGP & 2x eBGP

Posted: Sun Dec 25, 2016 9:11 pm
by faisali
Review this to see if it helps you in your design.

http://mum.mikrotik.com/presentations/H ... ktech1.pdf

Re: iBGP & 2x eBGP

Posted: Mon Dec 26, 2016 5:16 am
by Murmaider
There is a way to resolve situation if we advertising /22 network from both places?

Advertise the /22 on both routers.
Then advertise each /24 on their "preferred" router. So in your case, the first 3 /24's will be on router 1 and then 4th one on router 2.

All /24's are smaller network blocks, they will be the preferred router over BGP. However if one router goes down, traffic will use the /22 on the other router as redundancy.

Re: iBGP & 2x eBGP

Posted: Tue Dec 27, 2016 3:01 pm
by reion
Why you do not advertise /24 subnets from their real place, mean 3X/24 from one side and one / 24 from another? Provider will advertise further as one /22 (summarized). But on it's iBGP it will have 4 routes to you!