Hi Chris, As Hyun writes, you could use an inbound route map setting a higher local preference for the routes from the preferred ISP. Something like:
! *** Router *** route-map FROM-ISP-1 permit set local-preference 100 exit ! router bgp 64512 neighbor 123.x.y.z route-map FROM-ISP-1 in exit ! If you only have this one router connecting to the outside world, and will forever only have this one router connecting to the outside world, you can adjust the weight with "neighbor 123.x.y.z weight 10000" or so. Weight is local to the router, so if you have more than one the local preference is the way to go. Locally sourced routes have a default weight of 32768 by the way, so unless you know why don't exceed that value for externally sourced routes. :-) Regards, Peter On Wed, 2008-01-30 at 18:18 +0800, Dracul wrote: > Hi all, I am using two links for BGP. is there a way I can do preference to > use the other line first? Let's say I prefer neighbor yyyy > what config should I add below? Thanks! > > router bgp xxxx > no synchronization > bgp log-neighbor-changes > network 203.xxx.xxx.0 > aggregate-address 203.xxx.xxx.0 255.255.255.0 > neighbor 123.xxx.xxx.xxx remote-as zzzz > neighbor 123.xxx.xxx.xxx description *** BGP transit to PROVIDER 1 *** > neighbor 123.xxx.xxx.xxx password 7 011A08105E191200344F464D4B5C404A58 > neighbor 123.xxx.xxx.xxx ebgp-multihop 2 > neighbor 123.xxx.xxx.xxx version 4 > neighbor 123.xxx.xxx.xxx soft-reconfiguration inbound > neighbor 123.xxx.xxx.xxx prefix-list MARTIAN in > neighbor 123.xxx.xxx.xxx route-map itt_out-ISP1 out > > neighbor 124.xxx.xxx.xxx remote-as yyyy > neighbor 124.xxx.xxx.xxx description *** BGP transit to PROVIDER 2 *** > neighbor 124.xxx.xxx.xxx ebgp-multihop 2 > neighbor 124.xxx.xxx.xxx version 4 > neighbor 124.xxx.xxx.xxx soft-reconfiguration inbound > neighbor 124.xxx.xxx.xxx prefix-list MARTIAN in > neighbor 124.xxx.xxx.xxx route-map itt_out-ISP2 out > no auto-summary > > Regards, > Chris > _______________________________________________ > cisco-nsp mailing list [email protected] > https://puck.nether.net/mailman/listinfo/cisco-nsp > archive at http://puck.nether.net/pipermail/cisco-nsp/ _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
