BGP route preferences

Hi,

Is there a way to set a preference on BGP routes?

I have 2 remote on island routers connected to a 3rd remote off island router. Using EOIP tunnels I am able to BGP routes to the remote off island routers. However the BGP session routes that are establish first take precedence and become active. Is there a clean way of selecting the preferred peer?

Currently I’m using the netwatch tool to monitor the remote EOIP tunnel interfaces, to disable the specific EOIP interface to the router in question and enable the other.

It’s crude but it works. But is there a cleaner way? I’m using 2.9.29 with routing test.

You can use /routing filter to give learned routes a different preference. Are you getting this problem because you have multiple bgp instances - maybe one for each peer? I ran into this - bg as path length is not considered across multiple peers. Consolidating the peers into a single instance (for the ones you can) will allow them to take the shortest path.

Sam