BGP Prepend

We have two WAN service providers and there is always some maintainance going on one or the other. During the time, I have to shutdown at neighbor peer to have no impact and then re-connect when the WAN connection to the provider comes up. I have heard that On router one can usually configure prepends to move both in and out traffic from one connection to another. Both in and out route-maps have to be configured for BGP peers to configure prepends.
totaramAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mikebernhardtConnect With a Mentor Commented:
BGP does NOT do load sharing. It picks one best path even if 2 are equal, unless you use the max-paths command in your bgp configuration.

Also as I said, AS prepend only helps control the path of inbound traffic (due to how you advertise your routes). To control the path of outbound traffic you have other options, some of which can probably be done in coordination with your ISPs (by managing the routes you receive). As I don't know your exact topology it's hard to tell you what to do. The easiest way is you use local preference.


An example of using AS prepend for outbound routes and local pref for inbound routes:
router bgp 65000
 neighbor 4.5.6.7 remote-as 65500
 neighbor 4.5.6.7 route-map as-add out
 neighbor 4.5.6.7 route-map set-pref in

access-list 10 permit any

route-map as-add permit 10
 match ip 10
 set as-path prepend 65000 65000 65000

route-map set-pref permit 10
 match ip 10
 set local-preference 90

Route map "as-path" will add "65000 65000 65000" to all routes sent to AS 65500. this makes the path longer so that it will be less preferred. You would do this to the backup ISP.

Route map "set-pref" will set the local preference to 90 for routes coming in from the backup ISP. Since the default local pref is 100, this will make routes coming from the backup ISP less preferred (higher pref is better).
 
0
 
rfc1180Commented:
>I have heard that On router one can usually configure prepends to move both in and out traffic from one connection to another. Both in and out route-maps have to be configured for BGP peers to configure prepends.

you would be advertising the prepends, so if you are advertising out a link that is having maintenance, there will be issues. It is always best practice to just shutdown the peer that is having maintenance.  

Billy
0
 
totaramAuthor Commented:
rfc1180;
Like always, it is a pleasure working w/ you.. well, when we have two WAN providers, and if one (say A) going thro' some maintainance... we are solely depending on other(say B).

So during maintainance, instead of shuting down the peer neighbor, if we can somehow present to BGP configuration, one stream (irrespective of two neighbors) under under 'router BGP <AS number>'. That (I think) is possible with prepends and henceforth we do not have to worry about the maintainance/sudden jerks/interruption with one of the providers.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
rfc1180Commented:
>So during maintainance, instead of shuting down the peer neighbor, if we can somehow present to BGP configuration, one stream (irrespective of two neighbors) under under 'router BGP <AS number>'. That (I think) is possible with prepends and henceforth we do not have to worry about the maintainance/sudden jerks/interruption with one of the providers.

>we are solely depending on other(say B).
This is the whole point of redundancy and is based on your business case;

If the maintenance window is intrusive, you can potentially run into is other service providers that have flap-dampening enabled, dampen routes received from your AS if BGP experience route flapping. This can cause routing issues, latency, and in some cases loss of connectivity.

I would highly recommend that any provider maintenance, you shutdown BGP with that peer; I would not have it any other way; if you are solely depending on provider B and can not afford to be down, sounds like you need to get another peer.

Billy
0
 
mikebernhardtCommented:
AS Prepend is for inbound traffic, as it advertises a less-preferred path to your network. It lets you control which path to your network should be the primary one. It has no impact on outbound traffic FROM your network.

If your provider does scheduled maintenance then the best thing is to just shut down the link while they're doing it. If you have an unscheduled outage, then the other provider should take over automatically whether or not you are using AS-prepend.
0
 
totaramAuthor Commented:
OK... thanks for your posting.. So, with AS prepend I can choose the primary WAN provider... Can you please give a sample example of how you would do that, I run into the issue all the time, One pipe we have is bigger and better than second and would like that to be the primary, as opposed to the BGP algorithm (load sharing) to decide which circuit to take.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.