Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

bgp localpref

Hi all,

i have 2 routers with in one AS (AS1) and these are connected to 2 seperate TELCO's and my branch office router is connected with both the links.

Our requirement is to have telco1 as primary and telco 2 as secondary.

I have configured local preference at AS1 to influnce the outbound traffic and prepended as-path to influnce the inbound traffic.

But observing out bound traffic from AS1 on both the telcos(not as expected) for location routers and inbound is on telco 1(as expected)

Kindly help

thanks in advance.

9 REPLIES
Cisco Employee

Re: bgp localpref

Anil,

Do you run iBGP between your routers? If you set the local preference higher on prefixes learned on the session to telco1, there shouldn't be any reason for traffic to exit via telco2 unless your two routers make their own decision (no iBGP).

Regards

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: bgp localpref

Yes , iBGP is running between the routers.

New Member

Re: bgp localpref

Yes , iBGP is running between the routers.

New Member

Re: bgp localpref

also have 2 l3 switches (with hsrp) connected to 2 routers at AS1. and bgp routes are redistribited with equal metric in EIGRP running b/n all 4 devices.

Cisco Employee

Re: bgp localpref

Anil,

Are you taking full, partial or only default route from telco1 and telco2?

It is possible that telco2 advertises additional (or more specific) routes that telco1 is not advertising, which would explain why you see some traffic exiting via telco2 even if you run iBGP between your two routers.

Regards

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: bgp localpref

hi all,

have configured route-map at AS1 routers.

telco1 out and telco1 in on one router with prepending AS-path and set local pref respectively and the bgp routes are redistributed in to IGP . and same conf on another router for another telco2.

Regards

New Member

Re: bgp localpref

Run the 'sh ip bgp' command on the telco2 router and verify that you are seeing prefixes from the telco1 router with a higher LP.

New Member

Re: bgp localpref

hi miki,

no. not getting any prefixes from other routers on both.

Getting routes from same telco as best path with assigned LOCAL PREF.

Cisco Employee

Re: bgp localpref

Anil,

Are you certain that the iBGP session is up and running between your two routers?

Can you post the output from a "show ip bgp summary" and your BGP configuration.

Regards

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
136
Views
0
Helpful
9
Replies