cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
778
Views
0
Helpful
2
Replies

BGP outgoing decision (local preference)

acbennyma
Level 1
Level 1

Dear all,

My requirement is

1) For HGC related AS IP, first will choose HGC path 1G path to go, in case HGC 1G link fail, will use HGC 100M  link to go, once ALL two HGC lnks fail, Final choose is HKIX link

2) Out of HGC related AS IP, first will choose HKIX 1G path to go, in case HKIX 1G link fail, will use HKIX 100M  link to go, once All two HKIX lnks fail, Final choose is  HGC link

From the attach diagram and propose configuration, can I acheive above behaviour?

2 Replies 2

Marwan ALshawi
VIP Alumni
VIP Alumni

Hi,

as you want to make you network to prefer certain liks based on AS number in the outbound direction using local preference

then based on your requriments :

HGC AS 9304

HKIX 4635

in R1 you will have LocalPrefrnece of 100 for IP Prefixes comfing from AS 9304 (HGC 100M) using inbound route-map from the HGC BGP peer

in R2

in R1 you will have LocalPrefrnece of 110 for IP Prefixes comfing from AS 9304 (HGC 1G) using inbound route-map from the HGC BGP peer

based on the above as long as there is iBGP between R1 and R2 route os Prefixes comfing from AS 9304 will use the 1G link with LP 110 and backup link in R1 of 100M

you can use same idea exactly but for AS 4635

config example in R2:

ip as-path acces-list 8 permit ^9304_

route-map LPin permit 10

match as-path 8

set localprefernce 110

route-map LPin permit 20

HTH

if helpful rate

In addition to this, AS path prepend to the neighbors on the 100M links to make these links less preferred for traffic going into AS 1234 from 9304

Please remember to rate useful posts, by clicking on the stars below.

Review Cisco Networking for a $25 gift card