Skip to content

Instantly share code, notes, and snippets.

@cloudnull
Created October 3, 2018 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloudnull/f38516639a31ef42b91fa3acbf7e28a0 to your computer and use it in GitHub Desktop.
Save cloudnull/f38516639a31ef42b91fa3acbf7e28a0 to your computer and use it in GitHub Desktop.
networkd on controller
[NetDev]
Name=bond0
Kind=bond
[Bond]
Mode=802.3ad
TransmitHashPolicy=layer2
MIIMonitorSec=1s
LACPTransmitRate=fast
[Match]
Name=bond0
[Network]
MACVLAN=mv-container
BindCarrier=enp2s0 enp5s0
LinkLocalAddressing=no
[NetDev]
Name=mv-container
Kind=macvlan
[MACVLAN]
Mode=bridge
[Match]
Name=mv-container
[Network]
DHCP=both
[Match]
MACAddress=0c:c4:7a:e4:d7:bc
[Network]
Bond=bond0
[Match]
MACAddress=0c:c4:7a:e4:d7:bd
[Network]
Bond=bond0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment