Re: dhcpcd is running but no ip allocated
Roy Marples
Fri Sep 18 07:10:11 2020
Hi Daggs
On 18/09/2020 05:46, daggs wrote:
Greeting,
I'm running gentoo with openrc using dhcpcd, I have an tap interface connected to a vm which provides dhcp services.
I've encountering an issue were dhcpcd is running but I get no ip. restarting the service results with the ip allocation.
assuming there is no bug in openrc, I assume that either dhcpcd doesn't handles well the change of the tap from off to on or dhcpcd doesn't wait enough time for the dhcp server on guest to start.
is there any config option in dhcpcd that can assists me in solving this issue?
I am unaware how to toggle tap on or off.
How are you starting dhcpcd? init.d/net.tap0 or init.d/dhcpcd?
If the former, try the latter.
If still failing add this to the top of /etc/dhcpcd.conf and email the log file
debug
logfile /var/log/dhcpcd.log
Roy
Archive administrator: postmaster@marples.name