cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1070
Views
0
Helpful
4
Replies

Need BGP prepend suggestions

wwbishop2
Level 1
Level 1

Hi everyone, I'm simply configuring a WAN failover solution between 2 routers.

I have 2 7206VXR routers. Each WAN connection comes from the same ISP. I have HSRP running successfully inside, but need some clarification on the WAN side in terms of BGP failover if one interface or router fails. As a test I'm announcing the same /24 block on each router, lets say 192.168.1.0 for this example.

RTRA's BGP configuration is a normal BGP configuration. RTRB's configuration is identical, but I have prepended the as-path using a route-map, and applied it to the neighbor statement outbound.

For example, in RTRB

route-map prepend permit 10
set as-path prepend 123 123 (where 123 is my AS example in both routers)

Will this configuration give me the desired effect? i.e. forcing the ISP to route this block to RTRA, unless of course it's not available?

Thanks in advance.

Wayne

4 Replies 4

Marcos Olivera
Level 1
Level 1

Hi,

Im not an expert, but I have a similar configuration (one provider with two connections for failover), what I use is communities, so there is a prefered path to my networks and if one goes down the other one takes over.

Hope this helps,

Gonzalo

milan.kulik
Level 10
Level 10

Hi,

it depends on your provider BGP configuration.

You can use MED, as prepending, communities, etc., to tell your provider which path you'd like him to prefer.

But you need him to accept this. (He can always ignore/override your preferrence.)

So the best practice is to ask the provider: "Is this the way you would accept?"

Should the provider refuse, the only way to force the provider to use your preferred path is advertising the prefix from one of your routers only.

You might use BGP conditional advertisement feature, e.g., see

http://www.cisco.com/en/US/tech/tk365/technologies_configuration_example09186a0080094309.shtml

for details.

HTH,

Milan

merryllem
Level 1
Level 1

Hello,

The method you stated *should* give you your desired outcome. If the provider does not overide it (like mentioned above). (Normaly Internet ISP's do)

If you decide to go with using communities like the post above mentioned, Here is a good site that list common ISP's and gives that details what communities strings they accept

http://onesc.net/communities/

Another method if you have a subnet larger than 192.168.0.0/24 let say for example a 192.168.0.0/23 you can split the subnet into two and advertise that on router A (so router A would be advertising 192.168.0.0/24 and 192.168.1.0/24) and router B advertise the larger subnet 192.168.0.0/23. Since the route with the shorter/more specific prefix is preffered traffic will always go to router A and if a failure on router A happens the path thru the larger prefix will still exist.

Hope that helps

Thanks all. The original prepend scenario worked as desired. It's always good to have a flexible ISP.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card