Skip to content

Instantly share code, notes, and snippets.

@cloudnull
Last active October 3, 2018 02:02
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/5e97eca762f210721cedd99adab46a2f to your computer and use it in GitHub Desktop.
Save cloudnull/5e97eca762f210721cedd99adab46a2f to your computer and use it in GitHub Desktop.
networkd on compute host
# Ansible managed
[NetDev]
Kind=macvlan
Name=mv-eth0
[MACVLAN]
Mode=bridge
# Ansible managed
[NetDev]
Kind=macvlan
Name=mv-nspawn0
[MACVLAN]
Mode=bridge
# Ansible managed
[Match]
Name = eth0
[Network]
Address = 172.16.25.52/22
Gateway = 172.16.24.2
# Ansible managed
[Match]
Name = eth2
[Network]
Bond = bond0
# Ansible managed
[Match]
Name = eth3
[Network]
Bond = bond0
# Ansible managed
[NetDev]
Kind=bond
Name=bond0
[Bond]
MIIMonitorSec=1s
MinLinks=1
Mode=802.3ad
AdSelect=bandwidth
LACPTransmitRate=fast
TransmitHashPolicy=layer3+4
[Match]
Name = bond0
[Network]
Address = 172.16.27.50/22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment