Static routes, preferences and ordering
Ondrej Zajicek
santiago at crfreenet.org
Fri Jul 24 13:52:30 CEST 2020
On Fri, Jul 24, 2020 at 12:09:57PM +1000, William wrote:
> Hi All,
> Discovered something interesting in bird2 2.0.7 (via bird2 package on
> Centos7, 2.0.7-1.el7) when retrying to use statics to override a default
> route coming via BGP.
>
> The following block would not see the higher preference route added (not
> even listed in 'show route protocol WANSTATICS'), but when commented out and
> config reloaded the gw via 172.16.4.250 would vanish, then come back when I
> restarted WANSTATICS.
>
> protocol static WANSTATICS {
> ipv4 { table WAN; };
> route 0.0.0.0/0 via 172.16.1.254 {
> preference = 110; # override upstream
> };
> route 0.0.0.0/0 via 172.16.4.250 {
> preference = 90; # prefer one to come from upstream via BGP
> };
> check link on;
> }
Hi
Current static protocol does not support multiple routes with the same network.
You can workaround that by having two separate static protocols, each with one
default route.
--
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
More information about the Bird-users
mailing list