At some point on my 1.4 rolling, static routes operations are not longer taken into account.
Current routing table :
vyos@rc-kube-01:~$ sh ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
S>* 0.0.0.0/0 [1/0] via 185.46.228.254, eth2, weight 1, 00:25:13
C * 10.10.50.0/24 is directly connected, eth1, 00:25:07
C>* 10.10.50.0/24 is directly connected, eth1, 00:25:16
S>* 10.20.5.0/24 [1/0] via 185.46.228.250, eth2, weight 1, 00:25:13
S>* 10.20.251.0/24 [1/0] via 185.46.228.251, eth2, weight 1, 00:25:13
S>* 91.132.252.0/24 [1/0] via 185.46.228.251, eth2, weight 1, 00:25:13
C>* 185.46.228.0/24 is directly connected, eth2, 00:25:16
S>* 192.168.2.0/24 [1/0] via 185.46.228.251, eth2, weight 1, 00:25:13
S>* 195.13.51.0/24 [1/0] unreachable (blackhole), weight 1, 00:25:13
B>* 195.13.51.1/32 [20/0] via 10.10.50.14, eth1, weight 1, 00:24:57
Current kernel routing table :
vyos@rc-kube-01:~$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 185.46.228.254 0.0.0.0 UG 0 0 0 eth2
10.10.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.20.5.0 185.46.228.250 255.255.255.0 UG 0 0 0 eth2
10.20.251.0 185.46.228.251 255.255.255.0 UG 0 0 0 eth2
91.132.252.0 185.46.228.251 255.255.255.0 UG 0 0 0 eth2
185.46.228.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.2.0 185.46.228.251 255.255.255.0 UG 0 0 0 eth2
195.13.51.0 0.0.0.0 255.255.255.0 U 0 0 0 *
195.13.51.1 10.10.50.14 255.255.255.255 UGH 0 0 0 eth1
Removing the route :
vyos@rc-kube-01# delete protocols static route 192.168.2.0/24 next-hop 185.46.228.251
[edit]
vyos@rc-kube-01# commit
[edit]
Route still present :
vyos@rc-kube-01:~$ sh ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
S>* 0.0.0.0/0 [1/0] via 185.46.228.254, eth2, weight 1, 00:25:25
C * 10.10.50.0/24 is directly connected, eth1, 00:25:19
C>* 10.10.50.0/24 is directly connected, eth1, 00:25:28
S>* 10.20.5.0/24 [1/0] via 185.46.228.250, eth2, weight 1, 00:25:25
S>* 10.20.251.0/24 [1/0] via 185.46.228.251, eth2, weight 1, 00:25:25
S>* 91.132.252.0/24 [1/0] via 185.46.228.251, eth2, weight 1, 00:25:25
C>* 185.46.228.0/24 is directly connected, eth2, 00:25:28
S>* 192.168.2.0/24 [1/0] via 185.46.228.251, eth2, weight 1, 00:25:25
S>* 195.13.51.0/24 [1/0] unreachable (blackhole), weight 1, 00:25:25
B>* 195.13.51.1/32 [20/0] via 10.10.50.14, eth1, weight 1, 00:25:09
If I reboot, route is gone.
On this box, I get : BGP, a few static routes, VRRP and NAT.e
Exact version : 1.4-rolling-202105091233
Thanks