Skip to content

Commit

Permalink
fix(test): assign fixed address to bridge
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bengal authored and aafeijoo-suse committed Feb 7, 2023
1 parent 462d9b9 commit 9fb64d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/TEST-50-MULTINIC/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ test_client() {
# bridge, where only one interface is actually connected
client_test "MULTINIC bridging" \
00 01 02 \
"root=nfs:192.168.50.1:/nfs/client ip=bridge0:dhcp bridge=bridge0:enp0s1,enp0s5,enp0s6" \
"root=nfs:192.168.50.1:/nfs/client ip=bridge0:dhcp::52:54:00:12:34:00 bridge=bridge0:enp0s1,enp0s5,enp0s6" \
"bridge0" || return 1
return 0
}
Expand Down

0 comments on commit 9fb64d9

Please sign in to comment.