aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/systemd/network/30-ethernet-bond0.network
blob: f58f7bdba4a183e1f92546d273e908a01becca60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Match only real, physical ethernet via Path= (PCI + USB) and udev's
# predictable name pattern. This is more robust than Type=ether + Name= negation:
# negations on Name= matched virtual interfaces in practice, which enslaved
# them into bond0 and broke container/VM networking.
#
# Path=pci-*  covers built-in PCIe NICs (enpXsY, ethN).
# Path=platform-*  covers SoC-attached NICs (none on x86 laptops but harmless).
# Name=enx*  covers USB ethernet dongles, which have no stable PCI path.
[Match]
Path=pci-* platform-*
Name=en* enx*
Type=ether

[Network]
Bond=bond0
PrimarySlave=true