[systemd-devel] systemd-networkd bridge with DHCP not working
poma
pomidorabelisima at gmail.com
Mon Mar 17 19:05:51 PDT 2014
On 17.03.2014 22:32, Tom Gundersen wrote:
> On Mon, Mar 17, 2014 at 10:21 PM, Henrik /KaarPoSoft
> <henrik at kaarposoft.dk> wrote:
>> Hi Tom,
>>
>> Thanks for your feedback...
>>
>> I was briefly looking through git commits after 211 without finding anything
>> related. But then again I did not look into too much detail.
>>
>> Do you know which commit would solve this?
>
> Ah, this was not obvious at all. This was almost certainly fixed as a
> side-effect of refactoring the rtnl_message_read_*() code, so if you
> pull in 9842de0d93d and the commits it relies on that should do it (I
> haven't verified that that's the culprit, but it seems likely from
> looking at it).
>
> Cheers,
>
> Tom
With a "Static Leases" - reserved IPs & MACs, mixed results have been
achieved. Sometimes works, sometimes doesn't.
- networkd-DHCP-ACK:
...
: bridge0: creating netdev
: enp3s0: found matching network '/etc/systemd/network/base0.network'
: enp3s0: requesting link status
: enp3s0: enslaving by 'bridge0'
: enp3s0: link (with ifindex 4) added
: bridge0: netdev ready
: bridge0: enslaving link 'enp3s0'
: received RTM_NEWLINK message for untracked ifindex 5
: bridge0: found matching network '/etc/systemd/network/bridge0dhcp.network'
: bridge0: requesting link status
: bridge0: bringing link up
: bridge0: link (with ifindex 5) added
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: link status updated: 00000000 -> 0x00001002
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: bridge0: MAC address: 6e:c6:ba:32:2a:19
: bridge0: link status updated: 00000000 -> 0x00001002
: enp3s0: MAC address: 00:12:34:56:78:30
: bridge0: MAC address: 00:12:34:56:78:30
: enp3s0: enslaved
: enp3s0: bringing link up
: enp3s0: link configured
: bridge0: MAC address: 00:12:34:56:78:30
: bridge0: MAC address: 00:12:34:56:78:30
: bridge0: link is up
: bridge0: link status updated: 0x00001002 -> 0x00001003
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: link is up
: enp3s0: link status updated: 0x00001002 -> 0x00001003
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: carrier on
: enp3s0: link status updated: 0x00001003 -> 0x00011043
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: bridge0: MAC address: 00:12:34:56:78:30
: bridge0: carrier on
: DHCP CLIENT: set MAC address to 00:12:34:56:78:30
: bridge0: acquiring DHCPv4 lease
: DHCP CLIENT: STARTED
: bridge0: link status updated: 0x00001003 -> 0x00011043
: DHCP CLIENT: DISCOVER
: DHCP CLIENT: OFFER
: DHCP CLIENT: REQUEST
: DHCP CLIENT: ACK
: bridge0: DHCPv4 address 192.168.2.35/24 via 192.168.2.1
: bridge0: setting addresses
: bridge0: addresses set
: bridge0: setting routes
: bridge0: routes set
: bridge0: link configured
: enp3s0: MAC address: 00:12:34:56:78:30
- networkd-DHCP-NAK:
...
: bridge0: creating netdev
: enp3s0: found matching network '/etc/systemd/network/base0.network'
: enp3s0: requesting link status
: enp3s0: enslaving by 'bridge0'
: enp3s0: link (with ifindex 4) added
: bridge0: found matching network '/etc/systemd/network/bridge0dhcp.network'
: bridge0: requesting link status
: bridge0: bringing link up
: bridge0: link (with ifindex 5) added
: bridge0: link already exists, ignoring
: bridge0: netdev ready
: bridge0: enslaving link 'enp3s0'
: bridge0: MAC address: d2:f6:61:7b:8f:d4
: bridge0: link status updated: 00000000 -> 0x00001002
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: link status updated: 00000000 -> 0x00001002
: bridge0: MAC address: d2:f6:61:7b:8f:d4
: bridge0: MAC address: d2:f6:61:7b:8f:d4
: bridge0: link is up
: bridge0: carrier on
: DHCP CLIENT: set MAC address to d2:f6:61:7b:8f:d4
: bridge0: acquiring DHCPv4 lease
: DHCP CLIENT: STARTED
: bridge0: link status updated: 0x00001002 -> 0x00011043
: DHCP CLIENT: DISCOVER
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: bridge0: MAC address: d2:f6:61:7b:8f:d4
: enp3s0: MAC address: 00:12:34:56:78:30
: bridge0: MAC address: 00:12:34:56:78:30
: bridge0: carrier off
: DHCP CLIENT: STOPPED
: bridge0: link status updated: 0x00011043 -> 0x00001043
: enp3s0: enslaved
: enp3s0: bringing link up
: enp3s0: link configured
: bridge0: MAC address: 00:12:34:56:78:30
: bridge0: link status updated: 0x00001043 -> 0x00001003
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: link is up
: enp3s0: link status updated: 0x00001002 -> 0x00001003
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: carrier on
: enp3s0: link status updated: 0x00001003 -> 0x00011043
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: enp3s0: MAC address: 00:12:34:56:78:30
: bridge0: MAC address: 00:12:34:56:78:30
: bridge0: carrier on
: bridge0: acquiring DHCPv4 lease
: DHCP CLIENT: STARTED
: bridge0: link status updated: 0x00001003 -> 0x00011043
: DHCP CLIENT: DISCOVER
: DHCP CLIENT: DISCOVER
: DHCP CLIENT: OFFER
: DHCP CLIENT: REQUEST
: DHCP CLIENT: NAK
: bridge0: IP address in use.
: DHCP CLIENT: STOPPED
: enp3s0: MAC address: 00:12:34:56:78:30
poma
More information about the systemd-devel
mailing list