aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/systemd/network/30-ethernet-bond0.network
blob: 32d6d40fb6c2007ba2dc09202d33d711abc95f81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# NOTE: Type=ether matches ALL ethernet interfaces. Any future USB/Thunderbolt
# ethernet dongle would be auto-enslaved into bond0. If that becomes a problem,
# narrow the [Match] section to MACAddress= or a persistent Name= (e.g. enp*s0).
#
# Name= negations below exclude virtual interfaces that should NEVER be enslaved:
#   vnet*  — libvirt tap devices (VM NICs)
#   virbr* — libvirt bridges
#   tap*   — generic TAP interfaces
#   veth*  — container/namespace veth pairs
#   docker*, br-*, podman* — container engine bridges
#   waydroid* — waydroid's Android container bridge (waydroid0)
# Without these, e.g. libvirt VM taps get pulled into bond0 and lose their bridge,
# breaking VM networking (DHCP, NAT). Waydroid is especially catastrophic:
# enslaving waydroid0 into bond0 takes down the host's default route.
[Match]
Type=ether
Name=!vnet* !virbr* !tap* !veth* !docker* !br-* !podman* !waydroid*

[Network]
Bond=bond0
PrimarySlave=true