Skip to content

Commit

Permalink
networkd: avoid managing veth dev MAC addresses
Browse files Browse the repository at this point in the history
When a veth device is created, the CNI in charge of bringing the device
up will set a MAC address, if `MACAddressPolicy=permanent` is set,
systemd will change it to a different one, causing dropped packets due
to mismatches.

With this change, the address set when the device is created will remain
untouched by systemd.

See flatcar/Flatcar#278 for more information.
  • Loading branch information
Margarita Manterola committed Jan 4, 2021
1 parent c65fe54 commit 5109cdf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions systemd/network/50-veth.link
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Prevent systemd-networkd from handling the MACAddresses of veth devices
[Match]
Driver=veth

[Link]
MACAddressPolicy=none

0 comments on commit 5109cdf

Please sign in to comment.