Rocky Linux not able to communicate across VLANs

The Rocky Linux template is not able to communicate across VLANs, even if inter-VLAN traffic is allowed.

It seems like the issue is due to a default routing rule.

[localuser@rocky-server ~]$ ip route
default via 10.2.90.254 dev ens18 proto static metric 100 
10.0.0.0/8 dev ens18 proto kernel scope link src 10.2.90.90 metric 100 
[localuser@rocky-server ~]$ ping 10.2.10.11
PING 10.2.10.11 (10.2.10.11) 56(84) bytes of data.
^C
--- 10.2.10.11 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2049ms

Modifying the route covering 10.0.0.0/8 seems to fix the issue:

[localuser@rocky-server ~]$ sudo ip route del 10.0.0.0/8 dev ens18
[localuser@rocky-server ~]$ sudo ip route add 10.2.90.0/24 dev ens18 proto kernel scope link src 10.2.90.90 metric 100
[localuser@rocky-server ~]$ ip route
default via 10.2.90.254 dev ens18 proto static metric 100 
10.2.90.0/24 dev ens18 proto kernel scope link src 10.2.90.90 metric 100
[localuser@rocky-server ~]$ ping 10.2.10.11
PING 10.2.10.11 (10.2.10.11) 56(84) bytes of data.
64 bytes from 10.2.10.11: icmp_seq=1 ttl=127 time=0.658 ms
64 bytes from 10.2.10.11: icmp_seq=2 ttl=127 time=0.844 ms
^C
--- 10.2.10.11 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms

This matches the default Debian route:

debian@debian-server:~$ ip route 
default via 10.2.90.254 dev ens18 onlink 
10.2.90.0/24 dev ens18 proto kernel scope link src 10.2.90.91