Skip to content

Commit

Permalink
no need to set the mac address of the tap devices since bullseye
Browse files Browse the repository at this point in the history
See #981076 for more infos
  • Loading branch information
Mrfai committed May 26, 2022
1 parent 7a1862a commit 2afcff6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dev-utils/fai-mk-network
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ mk_tap_devices() {
for i in $(eval echo {1..$tapnum}); do
[ -f /sys/class/net/tap$i/address ] && continue
ip tuntap add dev tap$i mode tap user $user
# when mixing tap devices and a real eth0 into a bridge, the
# ethernet device should alsways have the lowest MAC address.
# A bridge always uses the smallest/lowest MAC address when
# doing dhcp requests. Make sure the tap devices have a high MAC address
# change MAC address, so it begins with fX:
mac=$(sed -e 's/^./f/' /sys/class/net/tap$i/address)
ip link set tap$i address $mac
done
}

Expand Down

0 comments on commit 2afcff6

Please sign in to comment.