12-23-2021 10:31 AM - edited 12-23-2021 10:42 AM
Hello,
I have two edge routers(R-A and R-B) located in two data centers. Data center A and Data center B. internet service provider router also present at both data center( ISP-A and ISP-B). Data center A is primary location and Data center B is for back up.
R-A and R-B is using ospf to share routes ( we redistribute BGP to ospf at both location ). There is asymetric route issue for data generated from Data center B servers ( going out from R-B , ISP -B). We actually want everything to go and receive via data center A only but not want to shut BGP at data center B.( anything generated from datacenter B should take R-B, R-A and ISP-A path ) ISP is using MED on their side. they put 100 MED on ISP-A and 200 MED on ISP-B router.
For client ip 77.97.0.0/18 receiving below routes on my routers
R-B
B 77.97.0.0/18 [20/200] via ISP-B
R-A
B 77.97.0.0/18 [20/100] via ISP-A
if i shut down bgp at data center B then there is no issue.
Routes when i shut down bgp at data center B
R-B
O E2 77.97.0.0/18 [110/1] via portchannel-x( connected to R-A)
R-A
B 77.97.0.0/18 [20/100] via ISP-A
under ospf i am using below redistribution command
redistribute bgp 10 subnets
under BGP using below redistribution
redistribute ospf 1 match external 1 external 2
Also, we have weight 65000 configured at routemap for 77.97.0.0/18 at data center A
I dont want to shut any BGP connection but want to set routing to prefer R-A to ISP-A when traffic generated from datacenter B location.
I have attached diagram as well.
Thanks,
Nis
01-21-2022 03:16 PM
what is the cisco IOS you use, this command not appear under the command reference of IOS.
01-27-2022 07:53 AM
@MHM Cisco World i have ASR1000 Version 16.06.06. I applied it last weekend! It worked as expected. No issues. I am good for now. Thank you everyone.
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