Skip to content

Instantly share code, notes, and snippets.

@cloudnull
Last active February 12, 2021 22:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cloudnull/f4d2dc796fa72871134ab88b2aeac0ae to your computer and use it in GitHub Desktop.
Save cloudnull/f4d2dc796fa72871134ab88b2aeac0ae to your computer and use it in GitHub Desktop.
Compute node systemd-networkd setup with bonding
[Match]
Name = enp2s0
[Network]
Address = 172.16.25.52/22
[Match]
Name = enp4s2
[Network]
Bond = bond0
[Match]
Name = enp4s3
[Network]
Bond = bond0
[NetDev]
Kind=macvlan
Name=mv-nspawn0
[MACVLAN]
Mode=bridge
[Link]
ARP = yes
MTUBytes = 1500
[Match]
Name = mv-storage
[Network]
IPForward = yes
IPMasquerade = yes
[NetDev]
Kind=macvlan
Name=mv-storage
[MACVLAN]
Mode=bridge
[NetDev]
Kind=bond
Name=bond0
[Bond]
MIIMonitorSec=1s
MinLinks=1
Mode=802.3ad
AdSelect=bandwidth
LACPTransmitRate=fast
TransmitHashPolicy=layer3+4
[Match]
Name = bond0
[Network]
DHCP = both
VLAN = bond0.13
VLAN = bond0.14
[Match]
Virtualization=no
[NetDev]
Name=bond0.13
Kind=vlan
[VLAN]
Id=13
[Match]
Name=bond0.13
[Network]
ConfigureWithoutCarrier=yes
[Match]
Virtualization=no
[NetDev]
Name=bond0.14
Kind=vlan
[VLAN]
Id=14
[Match]
Name=bond0.14
[Network]
ConfigureWithoutCarrier=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment