[pve-devel] applied: [PATCH pve-manager] disable systemd link macpolicy

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 15 11:36:16 CET 2023


Am 17/09/2023 um 15:44 schrieb Alexandre Derumier:
> since debian11, systemd is changing behaviour of macadress
> of bridge, but also bond, where the mac is generated randomly
> instead inherit from the first slave.
> 
> We already fix that with ifupdown2, but they are still another problem:
> 
> If a bridge don't have any slaves, systemd is keeping bridge offline.
> 
> https://www.justinsteven.com/posts/2023/03/26/virtualbox-bridge-ports-none-no-carrier-debian-11/
> 
> That mean that a dhcp daemon like kea can't bind on a standalone bridge (used for s-nat for example), until a
> tap interface is started.
> 
> This patch disable systemd mac policy (this don't break already fixed ifupdown2 mac),
> 
> funny but centos && fedora also disable it
> 
> https://fedoraproject.org/wiki/Changes/MAC_Address_Policy_none
> 
> https://gitlab.com/redhat/centos-stream/rpms/systemd/-/blob/c8953519504bf2e694bfbc2b02a456c1056f252e/0028-udev-net-setup-link-change-the-default-MACAddressPol.patch#L43
> 
> before this patch
> ------------------
> ~ ip a sh dev vmbr1
> vmbr1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 10
> 
> after this patch
> ----------------
> ~ ip a sh dev vmbr1
> vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
> ---
>  configs/Makefile            | 2 +-
>  configs/link-macpolicy.conf | 6 ++++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
>  create mode 100644 configs/link-macpolicy.conf
> 
>

applied, thanks!
But i now install the config as `/usr/lib/systemd/network/98-proxmox-ve-default.link`,
because the ones from /etc/ belong to the user, not the distro, and the having a .d
file can have some slightly odd/unexpected effects if the user overrides parts of
the (systemd) defaults.





More information about the pve-devel mailing list