I have attached our network architecture. We splitted our upstreamers to both our BGP routers and when we enable the BGP networks announcement on second BGP router, the world is losing us… We have our own AS number and one /22 IPv4 pool that we announce from the first BGP router.
Our purpose is to :
add one more BGP router for failover purpose
to have failover also for outbound and inbound traffic
We get full FIRT from both Cogent and Level 3. Also both Mikrotik do OSPF between them and Switches.
Have you any idea why when we enable the announcement of /22 at the second BGP router we are dead??? We have one VPS outside our network and we lose ping when we enable the second announcement.
we are using a similar setup, we have two routers doing bgp to multiple peers each, and we are running ibgp & OSPF between the two. (OSPF is running on other routers as well)
But my question is: if I add “set as-path prepend XXX789” to one router only then all the inbound traffic probably will go to the other router cause of smaller AS path.
The discussion is on a very similar configuration as yours.
Fix your filters, so that you are accepting full routes (no filtering by ASN).
Your inbound filter should accept all routes
Your outbound filter should advertise your prefix.
related to the sample config (other post, you have tinet-miami-out filter)…
my in-filter is as follows:-
we are peering with a couple of dozen networks, the basic setup is the same, and then each has it’s own specific setup.
i.e. external peers are same as listed in the config, only difference is filters.
the only one with different settings is the ibgp peer (it has route reflector setup)
(Peer detail is listed in the other thread I have referenced above)
As to what could be going wrong in your setup is a bit hard to guess… but not too difficult to troubleshoot.
Make sure you have loopback interface setup with IP address.
Get rid of the bgp-as-path filtering you are doing… e.g. bgp-as-path=^XXX789_
make sure that ospf is running between the two routers and they can see/reach each others loopback interface.
Bring up your bgp with one router, make sure you are receiving full tables appx 500k routes, and you are sending your prefix (using /routing bgp advertisements print PEERNAME)
bring up your IBGP session between the two routers, make sure you are getting all of your routes to the 2nd router. (remember to remove bgp-as-path=^XXX789_ filters, there no need for any and besides this filter is wrong for ibgp)
bring up the bgp session with the 2nd router, but make sure you have both content of filters inbound and outbound disabled, this way you are not receiving any routes or advertising any routes.
once the bgp session is up…
modify your filter on at a time, you can do receive side, to make sure you get full routers… and do the send side to make sure you are advertising your prefix properly.
I suggest that you modify your OUT-AS-IPV4 to include larger prefix equivalent to le 24 command in cisco.. (see my code from the other thread).