Hi,
I’m using VyOS 1.1.7 (helium)
In one place I get Internet through a plain DHCP client (and not with PPPoE). That DHCP server is deaf and I have to try DHCP for 3 or 4 min. As default timeout is 60 seconds this means that most of the times after a reboot/maintenance task I have manual reconnecting issues, so I do:
sudo su
dhclient ethX
dhclient ethX
dhclient ethX
dhclient ethX
until it connects …
sometimes works on first try because my VyOS config according to show config
command is:
ethernet ethX {
address dhcp
duplex auto
smp_affinity auto
speed auto
}
In my debian stretch laptop there is a file /etc/dhcp/dhclient.conf
with some default parameters. There I can change timeout or retry (retries after timeout/fail). I did a quick test and works (put timeout and retry to 1 and do dhclient eth0 -v -d
).
This file in VyOS is located in /etc/dhcp3/dhclient.conf
but it is empty. My question is: if I can put in /etc/dhcp3/dhclient.conf
a retry of 60 seconds for example. Or where this should go.
extra: Looks like a bug I think I did dhclient
with no arguments and it deadlock the system (don’t try that on a production place)
Thanks for reading,
Tirka