Comment 4 for bug 1927695

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote : Re: Cannot apply netplan config when running autoinstaller

@Michael, yes, that is the situation, there is a default route but no DNS. Here we are doing netboot and the kernel is configuring the interface as we are setting "ip=dhcp" in the kernel comand line, so the initramfs can retrieve the ISO image.

Interestingly, it would be possible to actually have a working DNS as the kernel is storing the value returned by the DHCP server (see [1]) in
/proc/net/pnp
but the system is not using it. I wonder if there is a way networkd could use this. But, even if that is possible, I think that the situation of having a default route but no external connectivity is a situation that can easily happen in some set-ups. I wonder also, what would happen if no default gateway is returned by DHCP?

[1] https://www.kernel.org/doc/html/latest/admin-guide/nfs/nfsroot.html