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)
thanks in advance.
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).
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.
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.
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.
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.