Hi, All
I have several WAN from diferent ISP. the question is how to setup ASN base routing ?
Like Lan users to access Google ASN (AS15169) via WAN 1, Users access Microsoft ASN(ASN8075) via WAN2 ?
You can set local-pref for different prefixes. Or use "as-path-list " list.
Routes from as15169 from ISP1 with local-pref 150
set policy as-path-list GOOGLE rule 10 action 'permit'
set policy as-path-list GOOGLE rule 10 regex '_15169$'
set policy prefix-list MICROS rule 10 action 'permit'
set policy prefix-list MICROS rule 10 prefix '203.0.113.0/24'
set policy route-map ISP1 rule 20 action 'permit'
set policy route-map ISP1 rule 20 match as-path 'GOOGLE'
set policy route-map ISP1 rule 20 set local-preference '150'
set policy route-map ISP1 rule 30 action 'permit'
set policy route-map ISP2 rule 20 action 'permit'
set policy route-map ISP2 rule 20 match ip address prefix-list 'MICROS'
set policy route-map ISP2 rule 20 set local-preference '150'
set policy route-map ISP2 rule 30 action 'permit'
1 Like
I’m trying to got global bgp routing table by build bgp from vultr . Is there any better solution to make it auto-routing and loading blance? What if A Google or Micrsoft like company has a lots of ASN number ?
You need to declare all ASN’s
Or try to get “community” from your ISP’s. If they mark prefixes with different communities.
You need community, “originated” from google and others…