Hi all. I have 2 routers running BGP(they are in the same AS) but each one has a different ISP connected on him.
I'm trying to force the traffic going to some specific networks that are now going over one link to go out the other link.
I was thinking of putting static routes to these networks on the router I want the traffic go out.
But I was wondering should I distribute these static routes through iBGP to the other router or should I put static routes on the other router that will point to the router I want the traffic to go out?
Thanks for any advice.
For outgoing traffic from your router u can use the Local Preference BGP attribute. It is the easiest to implement.
Local preference for outgoing traffic
AS Prepend for incoming traffic
router bgp xyz
neighbor route-map 321 in
neighbor prefix-list 123 out
ip as-path access-list 1 permit ^pri-AS number$
route-map 321 permit 10
match as-path 1
set local-preference 200
no bgp log-neighbor-changes
neighbor remote-as AS
neighbor route-map sec_link-Backup out
route-map sec_link-Backup permit 10
match ip address prefix-list yourcompany
set as-path prepend
ip prefix-list yourcompany seq 5 permit