[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#953149: udhcp needs "dev" option for setting up "onlink" default route



Package: debian-installer
Version: 20190702+deb10u3


What I did:

Booting from a Debian 10 Install-CD in a virtual environment (IaaS). I
hope the package version above is correct.

The installer proceeds fine until network setup phase. The
auto-configuration via DHCP seems to be successful. Next, the installer
complains that no default route is setup. I answer yes to continue
anyway and have to enter a name server now. After this, spawning a shell
shows me that a IP was retrieved but the network is not working (network
unreachable) and also no DNS resolution.


Investigations:

DHCP configuration is done via udhcpc. It calls a script
/etc/udhcpc/default.script
The script terminates with "ip: RTNETLINK answers: No such device" in
line 73


How to Fix:

The netmask given to the script is 32. Thus, the "onlink" variable is
set. It seems that udhcpc needs a "dev" option for this case.

Thus, I extended line 73 in /etc/udhcpc/default.script to:

ip -4 route add default via "$r" $online dev "$interface"


If I modify the script in the very beginning of the installation, the
network setup phase runs smooth with no interaction and I get to "enter
hostname" directly.


regards,
  Knut


Reply to: