I was able to reproduce this locally with an LXD vm and an extra network
with dhcp-option=3 and dhcp-option=6 (no default gateway + no dns).

I'm pretty sure the relevant code is
https://github.com/canonical/netplan/blob/44f2803ee3be5389f3f86828f83cc2499fb0534e/netplan_cli/cli/state.py#L193-L199.
Since there's no default gateway nor dns server on the dhcp offer,
netword installs no dhcp protocol routes.

Funnily enough, ipv6 is ok since there it queries networkd directly and
does not concern itself with the routing table. We can probably extend
this to ipv4 as well.

** Also affects: netplan
   Importance: Undecided
       Status: New

** Changed in: netplan.io (Ubuntu)
       Status: New => Confirmed

** Tags added: server-todo

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

Title:
  Netplan status describes DHCP-configured interface with a static
  address if no default gateway is provided

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2147446/+subscriptions


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

Reply via email to