10-15-2014 11:50 PM - edited 03-04-2019 11:58 PM
Hi.. I have been facing some issue hence approached you to find solution. I have a CE router running BGP to MPLS service provider. Earlier i was having one mpls circuit to ISP on this CE. Now i have taken another mpls circuit to same provider to make it secondary. Now issue i am facing is that since i am redistributing my ospf lan segments into BGP so these prefixes i am receiving back from secondary peer which is unnecessary. Pls help me how i could stop prefixes from receving back from secondary peer which is being advertised to primary peer and vice versa.
I cannot create access-list or prefix list since there are hundreds of prefixes.
R1#router bgp 65100
neighbour 172.25.1.1 remote-as 3422
neighbour 172.25.1.1 weight 500
neighbour 172.25.1.9 remote-as 3422
redistribute ospf 1 match internal external 1 external 2
router ospf 1
redistribute bgp 65100 subnets
10-16-2014 08:32 AM
you can prevent prefixes originating from bgp as 65100 (originating from your own as)
10-17-2014 02:17 AM
Thanks for help Tagir.. Could you share config example to achieve this.
Pls note that i have others locations connected to this MPLS cloud and those locations also running ASN 65100. So applying your suggestion should not make impact in receiving other locations prefixes.
10-19-2014 01:01 PM
10-20-2014 05:22 AM
Hi Milan.. I am using single router(CE) which has two circuits(primary & secondary) not two routers as you explained above. So does your above suggestion apply on single CE router too. If yes, could you share config example.
10-20-2014 06:02 AM
Hi,
actually, the easiest way woul dbe to ask your provider to configure SoO attribute on his PEs for you.
See http://www.cisco.com/c/en/us/td/docs/ios/12_4t/12_4t11/htbgpsoo.html#wp1054894
If he refuses, thea ask a question regarding BGP communities: If you add some community when advertising from the primary router, will that be kept with the prefix by the provider and advertised to the secondary router?
If yes, you could match by the community.
You could also use some AS number prepended, but again, would the provider accept a prefix with something more than 65100 within the AS_PATH?
Last chance:
If nothing above is possible, you could conbfigure the AD for OSPF on your router to be better than teh eBGP AD (20 by default).
In that case even if the primary line fails and you would receieve your own prefix from the secondary line via eBGP, the same prefix received from OSPF would beat it.
Best regards,
Milan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide