Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
bridge slave never gets DHCP response #4674
Comments
martinpitt
added
the
network
label
Nov 15, 2016
|
At first I thought this was an artifact of QEMU's builtin DHCP server, but I can also reproduce it with dnsmasq as server inside the VM. Its log shows that ens3's DHCP requests come in and get answered, but somehow networkd seems to ignore it:
|
|
Reproducer:
output:
|
|
I'm trying to understand the code and what happens. In
but |
|
According to https://wiki.linuxfoundation.org/networking/bridge#does-dhcp-work-overthrough-a-bridge DHCP should work through a bridge, and it does work fine with NetworkManager as well as calling |
|
I'm out of my knowledge here, I'm afraid. As soon as I comment out the I went through all usages of the |
martinpitt
changed the title from
bridge slave never gets DHCP address
to
bridge slave never gets DHCP response
Nov 15, 2016
poettering
added
the
dhcp
label
Nov 17, 2016
|
I can reproduce the same scenario. |
|
Oh, do we set up a BPF filter for events somewhere? That sounds plausible, as I don't even see a wakeup in strace when the DHCP response comes in. Do you have a pointer where that happens by any chance? |
|
|
|
For testing I commented out all "ignore" filters and even commented out the |
|
I tested with
Running
|
martinpitt
referenced this issue
Jan 21, 2017
Closed
networkd: Incase of bride port drop IPv6 check at link_check_ready #5078
|
See also 764febc. |
|
Configuring a L3 address on the bridge slave seems odd to me. Wouldn't you only do this on the bridge itself? The whole bridge is a L2 device and should therefor only forward traffic based on mac addresses. Does it really make sense to have an L3 address on a bridge slave? |
martinpitt commentedNov 15, 2016
Submission type
systemd version the issue has been seen with
Used distribution
I'm trying to set up an ethernet iface with DHCP that is part of a bridge:
With that, br0 comes up fine, and ens3 gets put into the bridge:
However, ens3 never gets a DHCP response:
ens3 works fine if I comment out
Bridge=br0, i. e. detach it from the bridge. But bridged interfaces are still fully valid interfaces so DHCP should continue to work; so this looks like a bug to me.Setting addresses manually does work, even though status still remains at "configuring":
(not sure what it's waiting for).
A debug-enabled networkd log for a run with
DHCP=ipv4is in https://gist.github.com/martinpitt/e70ca94d5c03977fcb8a36f98bf41feb . That shows that networkd is attempting DHCP on it, but never gets a response.