FS#11761 - [patch] dhcpcd times out when using bridge
Attached to Project:
Arch Linux
Opened by Jonathan Liu (net147) - Thursday, 16 October 2008, 06:12 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 10 May 2009, 05:55 GMT
Opened by Jonathan Liu (net147) - Thursday, 16 October 2008, 06:12 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 10 May 2009, 05:55 GMT
|
Details
Description:
When /etc/rc.d/network is started during bootup, the DHCP client times out because it takes too for the bridge to switch from learning state to forwarding state. The forwarding delay is usually around 15 seconds by default. Additional info: * kernel26 2.6.27-2 * initscripts 2008.09-2 Steps to reproduce: 1. Add following to /etc/rc.conf: eth0="eth0 0.0.0.0 promisc" INTERFACES=(eth0 br0) br0="dhcp" bridge_br0=(eth0) BRIDGE_INTERFACES=(br0) 2. Restart network /etc/rc.d/network restart This can be fixed by reducing the forwarding delay for the bridge in the network script. |
This task depends upon
Besides that, as I don't use a bridged network, you are saying this is just a configuration issue and can be closed?
DHCP used to work fine in combination with a bridge with the default settings but after the upgrade the DHCP takes a long while and times out.
It seems the bridge takes longer to switch to forwarding state after the upgrade.
Would it be a good idea to make the forwarding delay a config option that can be set in rc.conf?
echo "timeout 60" >> /etc/dhcpcd.conf
solved the issue.
FS#10616should similar if not the same.As well as
FS#9239Please someone test it and report.
1) default dhcpcd timeout is shorter than default bridge learning time
dhcpcd-5 is now a full daemon that handles DHCP for all interfaces instead of one instance per interface.
This effectively removes any timeout. There's still a timeout -> IPv4LL, but 60 seconds later DHCP is attempted again. Eventually it will come up on slow bridges.
--
1st reboot before upgrade
--
br0: dhcpcd 4.0.12 starting
br0: broadcasting for a lease
br0: offered 10.10.10.60 from 10.10.10.1
br0: acknowledged 10.10.10.60 from 10.10.10.1
br0: checking 10.10.10.60 is available on attached networks
br0: timed out
--
2nd reboot before upgrade
--
br0: dhcpcd 4.0.12 starting
br0: broadcasting for a lease
br0: offered 10.10.10.60 from 10.10.10.1
br0: acknowledged 10.10.10.60 from 10.10.10.1
br0: checking 10.10.10.60 is available on attached networks
br0: timed out
--
1st reboot after upgrade (old conf file)
--
dhcpcd: version 5.0.1 starting
dhcpcd: br0: rebinding lease of 10.10.10.60
dhcpcd: br0: broadcasting for a lease
dhcpcd: br0: offered 10.10.10.60 from 10.10.10.1
dhcpcd: br0: acknowledged 10.10.10.60 from 10.10.10.1
dhcpcd: br0: checking for 10.10.10.60
dhcpcd: br0: leased 10.10.10.60 for 86400 seconds
dhcpcd: forking to background
--
2nd reboot after upgrade (with clean dhcpcd5 config file; mv /etc/dhcpcd.conf{.pacnew,})
--
dhcpcd: version 5.0.1 starting
dhcpcd: br0: rebinding lease of 10.10.10.60
dhcpcd: br0: broadcasting for a lease
dhcpcd: br0: offered 10.10.10.60 from 10.10.10.1
dhcpcd: br0: acknowledged 10.10.10.60 from 10.10.10.1
dhcpcd: br0: checking for 10.10.10.60
dhcpcd: br0: leased 10.10.10.60 for 86400 seconds
dhcpcd: forking to background