MikroTik 2.9.39, routing-test package
my router receiving default route (0.0.0.0/0) from 2 different bgp peers, and i want to set specific weight attribute on them, (in other words, set different priorities on them)
i’m using the following route filters:
Flags: X - disabled
0 chain=mageal-in prefix=0.0.0.0/0 prefix-length=0 invert-match=no
action=accept set-bgp-weight=200 set-bgp-local-pref=200
1 chain=mageal-in invert-match=no action=discard
2 chain=mageal-out invert-match=no action=reject
3 chain=poisk-in prefix=0.0.0.0/0 prefix-length=0 invert-match=no
action=accept set-nexthop=10.144.0.1 set-disabled=no set-bgp-weight=100
set-bgp-local-pref=100
4 chain=poisk-in prefix=194.146.132.0/22 prefix-length=0-32 invert-match=no
action=accept
5 chain=poisk-in invert-match=no action=discard
6 chain=poisk-out invert-match=no action=reject
accordingly mageal-in/mageal-out filters set for first bgp peer, and poisk-in/poisk-out filters set for second peer.
but it seems that router ignores bgp weight attribute, because peer’s 2 route 0.0.0.0/0 always active, although it weight is less than first peer’s route 0.0.0.0/0 weight