]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(test): assign fixed address to bridge
authorBeniamino Galvani <bgalvani@redhat.com>
Thu, 2 Feb 2023 09:42:00 +0000 (10:42 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 7 Feb 2023 13:40:11 +0000 (14:40 +0100)
commit9fb64d96ab7a7e19a7940e56e9bc0da863b46386
tree533efef62ccf631fe17480f8f0ab59e6b9e49b62
parent462d9b9254d4386e9eac267547ee4e8cd2487c3d
fix(test): assign fixed address to bridge

Kernel uses the lowest MAC of all attached ports as MAC address of the
bridge. However, after the first port gets attached, DHCP can be started on the
bridge and it will use the MAC (and client-id) of the first port; so, the MAC
used for DHCP depends on the order of attachment of ports, which is not
guaranteed to be stable in general.

To make sure that the DHCP server always sees the request from the MAC of
enp0s1, assign that MAC to the bridge from the kernel command line.
test/TEST-50-MULTINIC/test.sh