Match any ethernet interface with systemd.networkd

Match any ethernet interface with systemd.networkd

How can I match any local ethernet interface within a systemd.networkd configuration? I want it to match all ethernet interfaces, but not wifi interfaces or tunnel interfaces etc. on the local host regardless of their name, driver or MAC address.

答案1

I now got it to work with

[Match]
Name=en*

as described in the Arch Wiki.

相关内容