cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1684
Views
10
Helpful
16
Replies

Asymetric route issue

Mark1110
Level 1
Level 1

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

16 Replies 16

Harold Ritter
Level 12
Level 12

Hi @Mark1110 ,

 

You can run iBGP between the R-A and R-B and set the local preference higher for the paths received from ISP-A. 

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thank you for your reply Harold. ISP already set MED on their end. ( MED 100 at ISP-A and MED 150 at ISP-B) should i have to put local preference as well?

Hi @Mark1110 ,

 

You don't need to, but I usually prefer not to rely on the ISP for egress decision.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thank you Harold. Is there any other way with using ospf as IGP or we have to use ibgp only?

 

Regards,

Nis

Hi @Mark1110 ,

 

Using iBGP between R-A and R-B is the easiest way to make R-B prefer the internal route (ospf) over the one received via eBGP and to automate the failover.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

@Harold Ritter  changes AD can be also a solution ? if i use below distance command at datacenter B router ( R-B ) to change AD for ebgp routes at R-B. 

 

distance 115 neighbor IP 0.0.0.0

Hello

TBH I dont see any asymmetric routing what you have currently is preferable unless that is you wish to the change routing process?  Each wan link is being utilised to the nearest egress point that being the closest ebgp peer and you show resiliency incase of any isp failure, and I assume looking at your topology local prefixes are preferred over the igp (ospf) links also?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Thank you for your reply Paul. For going outside from my network if traffic generated by servers located at datacenter B  ( taking path R-B, ISP-B and for return coming from ISP-A,R-A to R-B ) is there any way to make IGP(ospf) route preferable at datacenter B ( R-B) ? 

Hello

I would agree with @Harold Ritter changing to an ibgp interconnection would be the best option if you wanted to proceed in changing the current routing, In fact I am presently involved in doing a similar thing for a some of our main sites ( that is migrating from igp to an ibgp solution) as it will be much easier to engineer and administer long term.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

since the AD of eBGP less than OSPF so Edge-B prefer eBGP always BUT check the feature backdoor.
this make Edge-B prefer the OSPF than the eBGP.

Hello


@MHM Cisco World wrote:

since the AD of eBGP less than OSPF so Edge-B prefer eBGP always BUT check the feature backdoor.
this make Edge-B prefer the OSPF than the eBGP.


I have found the backdoor feature is quite restricted, if you have multiple routes then its quite administrative 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Again freind you can use backdoor this simple solution without change any ad.

Thank you for your reply @MHM Cisco World . I agree with you but want to know does below also work or not. 

 

if i use below distance command at datacenter B router ( R-B ) to change AD for ebgp routes at R-B. 

 

distance 115 neighbor IP 0.0.0.0

Review Cisco Networking for a $25 gift card