* Bringing up interface br0 * Creating bridge br0... * Adding ports to br0 * eth0... [ ok ] * dhcp... * Running dhcpcd... br0: dhcpcd 4.0.11 starting br0: broadcasting for a lease br0: timed out modules_force=( "iproute2" "dhcpcd" ) config_eth0=( "null" ) dhcp_eth0=( "release nodns nonis nontp nosendhost" ) dns_servers=( "127.0.0.1 192.168.1.1 208.67.222.222 208.67.220.220 35.8.2.41 35.8.98.43" ) fallback_eth0=( "dhcp" ) tuntap_tap0="tap" tunctl_tun0="-u xenoterracide" config_tap0=( "null") bridge_br0="eth0" config_br0=( "dhcp" ) dhcp_br0=( "release nodns nonis nontp nosendhost" ) If I use the bridge_add* syntax and I attempt to start the bridge then start eth0 and then start the bridge again... (might take 2 tries) dhcp will eventually get an address for br0. This is not optimal, it probably needs some kind of timeout... Reproducible: Always
so..openrc issue? need some help here with more description. emerge --info would be nice. thx
Created attachment 183116 [details] emerge --info
it could be an openrc issue... I haven't tried with baselayout-1
simplest test case scenario create the br0 eth0 interfaces configure /etc/conf.d/net as follows config_eth0=( "null" ) bridge_br0="eth0" config_br0=( "dhcp" ) /etc/init.d/net.br0 start it should work (I think) but instead it times out
Does it work if you just forget about the bridge and let dhcp run on eth0? Just to be sure it is no problem with wiring or dhcp server.
yeah. and eventually setting up the bridge another way, starting br0, eth0, wait, br0 dhcp works on br0 too. but yes dhcp on eth0 works just fine 100% of the time.
Does it work if you increase the dhcpcd timeout to say 180 seconds?
yeah. if I add dhcpcd_br0="-t 180" it works after a bit.
Is this still an issue with the most current openrc and dhcpcd?
nfc I stopped using gentoo/funtoo/regen2 9+ months ago. given my test case seemed simple enough... unless you couldn't reproduce then... maybe you could try reproducing now? if you don't want to bother feel free to close because I'm not going to (no offense, like I said I stopped using the system)
For me, it takes longer than usual to get a DHCP address via a bridge. However it has never failed for me for as long as I've had a bridge configuration. Now granted I started using a bridge about 4 months ago. So basically, I've only used openrc-0.5.x and newer. So this is a works for me.
I actually looked into this a little more just now. There's some artificial delay for 15 seconds by the Linux kernel on my machine that causes dhcpcd to have to re-broadcast for a lease.