So .. 4 weeks have passed and my "trial' license expired.
Today I've reinstalled everything and reconfigured everything (that's why IPs are different)
set routemap to-bgp id 10 on
set routemap to-bgp id 10 allow
set routemap to-bgp id 10 match community 1 as 1 on
set routemap to-bgp id 10 action metric value 200
set routemap to-bgp id 20 on
set routemap to-bgp id 20 allow
## The following items are listed under their respective command sets
## (e.g. "set bgp") and are displayed here for informational purposes:
# set bgp external remote-as 50 export-routemap to-bgp preference 1 on
My jaw dropped whey I saw this:
Default BGP configuration:
vyos@upstream:~$ sh ip route bgp
Codes: K - kernel route, C - connected, L - local, S - static,
R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric, t - Table-Direct,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
B>* 10.100.42.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 10.100.60.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 10.100.61.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 10.144.82.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 100.112.10.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:00:40
B>* 100.113.10.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:00:40
B>* 100.114.10.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:00:40
B>* 100.120.0.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 100.122.0.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 100.143.0.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 172.19.154.0/30 [20/0] via 192.168.86.1, eth1, weight 1, 00:22:14
B>* 172.20.0.0/30 [20/200] via 192.168.86.1, eth1, weight 1, 00:22:52
vyos@upstream:~$ ^C
Everything is advertised with "default" values. So far so good.
But then I add community 1:1 from the originating router that sends 100.112.10.0, 100.113.10.0 and 100.114.10.10
gw01> show route bgp detailed destination 100.113.10.0
Route: 100.113.10.0/24
Next Hop: 172.20.0.2, via eth4
MED: None
Local Preference: 100
Age: 21
Rank: 170
Weight: N/A
AS Path: (1000),100,Incomplete.(Id-23),comm-1.1
Local AS: 1000
Peer AS: 100
Origin: Incomplete
Originator ID: 172.20.0.2
BGP Next Hop Attribute: 172.20.0.2
Communities: 1:1
vyos@upstream:~$ sh ip route bgp
Codes: K - kernel route, C - connected, L - local, S - static,
R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric, t - Table-Direct,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
B>* 10.100.42.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 10.100.60.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 10.100.61.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 10.144.82.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 100.112.10.0/24 [20/200] via 192.168.86.1, eth1, weight 1, 00:00:47
B>* 100.113.10.0/24 [20/200] via 192.168.86.1, eth1, weight 1, 00:00:47
B>* 100.114.10.0/24 [20/200] via 192.168.86.1, eth1, weight 1, 00:00:47
B>* 100.120.0.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 100.122.0.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 100.143.0.0/24 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 172.19.154.0/30 [20/0] via 192.168.86.1, eth1, weight 1, 00:24:47
B>* 172.20.0.0/30 [20/200] via 192.168.86.1, eth1, weight 1, 00:25:25
The routemap works as expected, even with 1:1 not with the actual aa:nn community format (that was above, as 999 and comm 2000).
So now I'm so pissed off and have no idea what to do next. The only thing that changed was the fact that my initial test was on R82 with Take 39 and now gateway runs R81.20 with Take 119.
I'm slowly dying inside! What in the name of 0 and 1 happened ?!