Last active
February 12, 2021 22:39
-
-
Save cloudnull/f4d2dc796fa72871134ab88b2aeac0ae to your computer and use it in GitHub Desktop.
Compute node systemd-networkd setup with bonding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name = enp2s0 | |
[Network] | |
Address = 172.16.25.52/22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name = enp4s2 | |
[Network] | |
Bond = bond0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name = enp4s3 | |
[Network] | |
Bond = bond0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NetDev] | |
Kind=macvlan | |
Name=mv-nspawn0 | |
[MACVLAN] | |
Mode=bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Link] | |
ARP = yes | |
MTUBytes = 1500 | |
[Match] | |
Name = mv-storage | |
[Network] | |
IPForward = yes | |
IPMasquerade = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NetDev] | |
Kind=macvlan | |
Name=mv-storage | |
[MACVLAN] | |
Mode=bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NetDev] | |
Kind=bond | |
Name=bond0 | |
[Bond] | |
MIIMonitorSec=1s | |
MinLinks=1 | |
Mode=802.3ad | |
AdSelect=bandwidth | |
LACPTransmitRate=fast | |
TransmitHashPolicy=layer3+4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name = bond0 | |
[Network] | |
DHCP = both | |
VLAN = bond0.13 | |
VLAN = bond0.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Virtualization=no | |
[NetDev] | |
Name=bond0.13 | |
Kind=vlan | |
[VLAN] | |
Id=13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name=bond0.13 | |
[Network] | |
ConfigureWithoutCarrier=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Virtualization=no | |
[NetDev] | |
Name=bond0.14 | |
Kind=vlan | |
[VLAN] | |
Id=14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name=bond0.14 | |
[Network] | |
ConfigureWithoutCarrier=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Link] | |
NamePolicy=kernel database onboard slot path | |
MACAddressPolicy=persistent | |
MTUBytes=9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment