BGP inbound for Class C - Preferences Not Taking Effect

Hi all,

I have a class C public IP range that was allocated from Apnic.
ISP A = 40 Mb fibre connection
ISP B = 40 Mb fibre connection
Behind both ISP's connections we have a cisco 2801 router
Each router gets a default route only via BGP
Each router advertises our public IP range via BGP to the ISP's

We are attempting to preference ISP A over ISP B to get most of the traffic flowing over the preferred provider.

We have tried the following:

Item                                      ISPA                   ISPB
prepending                           None Set           6 x prepended paths
local pref                              Set to 300          Set to 100
local pref via community      Set to 100          Set to 90
MED                                      Set to 50            Set to 350

None of this works - we still get almost all traffic coming into ISPB connection.

Can anyone offer any suggestions on what we would need to do to get some of the traffic from ISPB to ISPA.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ISP B likely has more interconnections which will explain.
The other option is that ISPA is not pushing/advertising your IPs or those with whom they peer are not rebroadcasting them.

Look at and looking glass project/bgpplay to see BGP convergence for your network.
Just retread your post, why don't you terminate both ISPs on a single 2801?

And maintain the other as a backup.
MED is not relevant when load balancing between ISP, so you can skip that.

Local pref via community, would mean to influence the local pref in each ISP network. Are you sure you use the right communities?

If ISP A buy IP Transit from ISP B, then it may be tricky to get this to work.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

The reason local pref might not be working here because it is always for outgoing traffic for ibgp peers and incoming for ebgp peers. If you can satisfy this condition, local pref will/should work.

Since you have only stated that you have a public ip from APNIC and there is no mention about the AS(s) you are using, it will be difficult to visualize your scenario and offer a solution.
A jpg or a block diagram of what AS you are using and what is your hardware would point the answers more precisely towards a solution.

In my experience, many ISP's put a local preference to any routes they learn directly. This means that they could care less that you prepend your AS 6 times because the local preference wins out. In your scenario (and if the ISP B is doing the local preference thing), traffic goes out ISP A and hits a destination that is closer to ISP B. This destination could be on ISP B's network or simply closer. On the return route, traffic goes through ISP B and due to local preference ISP B drops it off to you directly ignoring your prepending.
There are one of two ways to get around this that I can quickly think of. Call the ISP and ask they they change that policy for your connection. Or, you could configure conditional advertisements so that ISP B doesn't know about your subnets until ISP A is down. The first option is without doubt the better of the two.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Testing ISPA feed using traceroute to experts-exchange.
and then sending the same traceroute via the ISP B interface
to see whether they take the same path as pointed earlier i.e. ISP B is the upsrteam/peering provider for ISP A.
Can you post your scrubbed bgp configs (and all related parts: ACLs, route-maps, etc.) please for both routers?
Dealer_SolutionsAuthor Commented:
ISP B just got back to me and stated that they do not forward the community string outside of their own AS.

They strip the community setting the local preference to 90 and so when it hits the next AS the local preference is back to 100.

I am going to ask them to relax the policy however they have stated that the only way they will allow what I am proposing is to use conditional advertisements.

So it turns out it's not the architecture but the vendor...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Protocols

From novice to tech pro — start learning today.