I see you're already using "dhcp4-overrides.use-routes: false" for
ens192, which SHOULD avoid systemd-networkd from adding any routes
provided by DHCP. This also seems to be correctly reflected in the
.network file:

"""
[Match]
Name=ens192

[Network]
DHCP=ipv4
LinkLocalAddressing=ipv6

[DHCP]
RouteMetric=100
UseMTU=true
UseRoutes=false
"""


It's in a legacy "[DHCP]" section, though. Can you please try creating an 
override config in to translate it to a modern "[DHCPv4]" section to see if 
that makes any difference?

/etc/systemd/network/10-netplan-ens192.network.d/override.conf:
"""
[DHCPv4]
RouteMetric=100
UseMTU=true
UseRoutes=false
"""

I'm also adding a "systemd" bug task for further investigation.

** Also affects: systemd (Ubuntu)
   Importance: Undecided
       Status: New

** Summary changed:

- Netplan adds routes for DHCP-Server for multiple interfaces
+ Netplan/systemd-networkd adds routes for DHCP-Server for multiple interfaces

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2119120

Title:
  Netplan/systemd-networkd adds routes for DHCP-Server for multiple
  interfaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2119120/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to