I may be wrong, but it seem to me that it's related to the following DHCP options :
DHCP option 1 : [SubnetMask]
DHCP option 121 : classless static route [DestCIDR] [Gateway]
When DestCIDR is within the subnet, the gateway is dropped by systemd-networkd : the route is added, without gateway.
@Pedro Lopes : does this match your occurrence of the issue.
Note that dhclient does not have this bug : running dhclient adds the correct routes.
Unfortunately for me, the concerned machines are in production. So further testing is not easy.
I have the same issue.
I may be wrong, but it seem to me that it's related to the following DHCP options :
DHCP option 1 : [SubnetMask]
DHCP option 121 : classless static route [DestCIDR] [Gateway]
When DestCIDR is within the subnet, the gateway is dropped by systemd-networkd : the route is added, without gateway.
@Pedro Lopes : does this match your occurrence of the issue.
Note that dhclient does not have this bug : running dhclient adds the correct routes.
Unfortunately for me, the concerned machines are in production. So further testing is not easy.