BGP Conditional Advertisement

Conditional Advertisement in BGP:

In the above example, we have to set R2 as a route reflector and the other two as clients R1 & R2. We have passed a loopback on every router. And above you can see that a link with 90MB is for ABC city and a 50MB link for XYZ city. Neighbor ships between these routers via loopbacks and internal communication through OSPF (open shortest path first protocol). 

BGP Conditional Advertisement

Route reflector R2 has a route from anywhere and he forward that route to the R1 client & R2 client (advertise). Now both R1 and R3 use our path for traffic transfer. Now R1 to R2 link is down, but after that reachability of R1 to R2 via R3 is still enabled.

krp2la67tUM 0ID1QJObpGr9sQzwyLw6MSPJutMwNGUW S2 JzJKEhpx0LBMbNdmogFIAE29z5VfnhUO7E7XrrFZRcQI 3mlkZC8X2vXR1Oq69SOG1egPI1BQFpR60jVghc0dMhQ 0LiovQIew

But the issue is here that R1 forward traffic also goes on R3 mean now for both link traffic flow on a single link so that on the same link surly congestion will occur. Because ABC city uses a 90 Mb link and XYZ use a 50 MB link. Now for the ABC traffic comer from the XYZ link and that link is only 50Mb but it needs now a 140 MB link for traffic flow for both links. Due to this, both sites will be suffered. 

Now condition applies for this situation if the link of R1 to R2 will be down then route reflector R2 does not advertise the route to ABC router R1 means we use here BGP conditional advertisement.

We do R1, and R2 network advertises in BGP, which is present in the routing table & after this in the BGP table also. Then we make a condition when R1 and R2 network in the BGP table at that time R2 advertise it to R1, when not present in the BGP table then does not advertise it to R1. This is the way of conditional advertisement. Now we are going to apply the condition on a router.

UH9gu868b5vkHEpve5tyGj2zhGKddkHqYvKFDmsaz00xfdowwxCUx5K9qz5Ca1MPsUBAK7tzfQwialZOs02BJepzRCs rPHeyG6d4UiWvTWYd9VdzwY3 zvF0RFDzl44laYkAXrRvt3sQQ9Z w

Make Access List: first, we make an access list on the route reflector router with the external route permit and internal also permit.

ssHWXduaXBqDxgMKDGWbT1h9znoDExAkXMxHoPy8rLKM8FrH0TbxIluR QYf3pEI3AN6Cd7OCaZjS04KskF96q7vEr94lPkUUtnZwwRnh0ZJI9cA6CTwol klvqEEGG5hVvd7ot

Make Route Map: we make a route map for exit routes.

After the create an access list and route map for both existing routes then we will call the route map on neighbor command as per above you can see. After the call the route map we checked with the R1 to R2 link was down and neighborship gone deleted.

XOgo6DDiY hsCYRgUKo2b89iJe3n55JM81LNPaw1sRC2o74e0WyWy5QJOyjSUYrjFvy4Jyon5qfJNJO1VrlPlPc7aY XW8RKNbwQOW8lQkDvRgFi6ERXdNklySII4Hg3mBkShfbM8ys6n W6Ew

Above is the all command configuration for conditional advertisement whichever we have used in BGP. First, run BGP with 100 autonomous systems then describe neighborship with the same Autonomous system IBGP neighborship formed. Network pass external & internal both. And call the route map in neighbour command.

Note* all the above configuration is done on the route reflector router only.

1 thought on “BGP Conditional Advertisement”

Leave a Comment