Considering we're using the same Netplan configuration, generating the
same networkd config on Jammy and Noble, this smells like an
incompatibility between systemd-networkd v249 (Jammy) and systemd-
networkd v255 (Noble).
The interesting bit of Netplan configuration is:
```yaml
dhcp4-overrides:
use-domains: false
```
Which translates to run/systemd/network/10-netplan-ens5.network (on
Jammy & Noble alike):
```
$ cat run/systemd/network/10-netplan-ens5.network
[Match]
Name=ens5
[Link]
MTUBytes=1460
[Network]
DHCP=ipv4
LinkLocalAddressing=ipv6
[DHCP]
RouteMetric=100
UseMTU=true
UseDomains=false
```
Interestingly, the latest networkd manpage tells us that DHCP.UseDomains would
only be supported as of v256:
https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#UseDomains=
And I remember that there has been some refactoring going on for breaking stuff
out from the global [DHCP] settings (IPv4+6 combined) to individual [DHCPv4],
[DHCPv6] and [IPv6AcceptRA] settings.
Netplan is only able to modify the old global [DHCP] settings. Can you
try how the behavior is on Focal 20.04? Also can you please check the
journalctl log for networkd complaining about unsupported settings? And
provide the full "netplan status" / "ip addr" output, to see if there's
any IPv6 connection allowing this lookup? (As the settings provided
above mostly block it for IPv4.)
Another thing you could try is adding an override for
[DHCPv4].UseDomains=false (and potentially [DHCPv6].UseDomains=false &
[IPv6AcceptRA].UseDomains=false), to see if having it specified for the
explicit section makes it work.
I'm also adding a systemd bug task for DebCrafters to investigate.
** Tags added: rls-jj-incoming
** Also affects: systemd (Ubuntu)
Importance: Undecided
Status: New
** Also affects: systemd (Ubuntu Jammy)
Importance: Undecided
Status: New
** Also affects: netplan.io (Ubuntu Jammy)
Importance: Undecided
Status: New
** Changed in: netplan.io (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2131966
Title:
Netplan on Jammy doesn't prevent metadata/DNS routing on a secondary
NIC despite any DHCP overrides given
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2131966/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs