BGP Conditional Advertisement Query

Unanswered Question
Jan 29th, 2009

Hi All,

I have client with 2 ISPs/Dual routers. ISP-A :10Meg & ISP-B : T1

Local public IP space advertised to ISPA & ISPB via EBGP (with ISP-B : via AS-Prepend). LAN side of the routers has HSRP config to have ISP-A Connected router as Primary and IBGP config as well.

I would like to implement 'BGP Conditional Advertisement' so that ISP-B will strictly be backup (as ISP-B does not support any communmities). I want to create the NON-EXIST map such a way when ISP-B router not seeing 0.0.0.0 being advertised from ISP-A AS, then ISP-B will be used. Please see the attached info from both the routers.

(attached as the o/p copy& paste here not sitting in better way)

As the Backup router learning 0.0.0.0 from backup ISP (preferred *>) as well as from IBGP via primary ISP AS#, if conditional adverisement applied and in case if BGP with Primary ISP does down, will the secondary ISP takes over (as 0.0.0.0 from priamry willbe gone).

How much time normally it takes for the take over - 3mins..??

TIA

MS

Attachment: 
I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Mohamed Sobair Thu, 01/29/2009 - 12:49

Hi,

The link provided by Gui is usefull, But what do u mean by 0.0.0.0? Do u mean the 0.0.0.0 as (next-hop) or (Default route)?

The Conditional advertise applies IF and Only IF the Network Specified in the Non-exist Map is not in the BGP routing table, This doesnt mean the Main link has to be Down. about BGP update , the EBGP update takes 30 sec while the IBGP takes 5 sec.

HTH

Mohamed

fortis123 Fri, 01/30/2009 - 20:59

Thank you both for your replies. I have the above link, but this example shows that client is receiving different n/w from the ISPs. My case, Iam receiving default route (0.0.0.0) only from each ISP (as customer advertise his own /24 subnet to the ISPs).

The primary router will not receive default route from ISP1  1. Link is down  2. EBGP peering issues with primary ISP. So My query is (with reference attached output from both routers- when both links are up & healthy), incase on the second router, if I create a NON-EXIST map of 'NOT RECEIVING 0.0.0.0 from ISP1 AS# ONLY'  ADVERTISE --> Client network. Will that achieve what Iam trying to..?

TIA

MS

Giuseppe Larosa Sat, 01/31/2009 - 00:14

Hello Mehboob,

the third example of the document shows that you can match on AS path and on IP prefix.

So you need to have an iBGP session between the two customer routers.

On R2 you will use weight to give preference to 0.0.0.0/0 received on iBGP session.

All this should work but some testing is recommended.

Hope to help

Giuseppe

 

 

royalblues Sat, 01/31/2009 - 01:17

Yes it would work

The best thing would be to set a condition on the router connecting to ISPB to advertise the LAN subnet pool only if you receive the WAN subnet between the primary router and ISPA..something like below

ip prefix-list adv seq 10 permit 6.9.62.0/24

ip prefix-list cond seq 10 permit 27.10.96.48/30


route-map advertise permit 10

match ip address prefix-list adv


route-map condition permit 10

match ip address prefix-list cond


router bgp

neighbor 2.2.53.157 advertise-map advertise non-exist-map cond

Narayan

 

fortis123 Sat, 01/31/2009 - 21:14

Thanks again. Narayan, if you look at the o/p that was attached , the ISPB router not learning the any of the Subnets from ISPA (except default route)

Thank you

MS

royalblues Sun, 02/01/2009 - 00:33

Yes i saw that but the WAN subnet can be advertised from the ISPA router as well towards ISPB router

Narayan

fortis123 Sun, 02/01/2009 - 06:07

Thank you. What is recomended way for that (redistributing..?) . Also, without modifying ISPA rtr with the existing o/p attached, if I create the route-map(s) based on default route (0.0.0.0) on ISP-B, will that work..?

TIA

MS

Actions

This Discussion