added more network card configuration
This commit is contained in:
parent
aaaf751435
commit
561766c676
|
@ -35,6 +35,12 @@
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "defiant"; # Define your hostname.
|
hostName = "defiant"; # Define your hostname.
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
|
interfaces = {
|
||||||
|
bond0.useDHCP = lib.mkDefault true;
|
||||||
|
bonding_masters.useDHCP = lib.mkDefault true;
|
||||||
|
enol.useDHCP = lib.mkDefault true;
|
||||||
|
eno2.useDHCP = lib.mkDefault true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
|
@ -57,12 +63,20 @@
|
||||||
"30-enp4s0" = {
|
"30-enp4s0" = {
|
||||||
matchConfig.Name = "enp4s0";
|
matchConfig.Name = "enp4s0";
|
||||||
networkConfig.Bond = "bond0";
|
networkConfig.Bond = "bond0";
|
||||||
DHCP = "no";
|
|
||||||
|
address = [
|
||||||
|
# configure addresses including subnet mask
|
||||||
|
"192.168.2.1/24"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
"30-enp5s0" = {
|
"30-enp5s0" = {
|
||||||
matchConfig.Name = "enp5s0";
|
matchConfig.Name = "enp5s0";
|
||||||
networkConfig.Bond = "bond0";
|
networkConfig.Bond = "bond0";
|
||||||
DHCP = "no";
|
|
||||||
|
address = [
|
||||||
|
# configure addresses including subnet mask
|
||||||
|
"192.168.2.2/24"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"40-bond0" = {
|
"40-bond0" = {
|
||||||
|
@ -74,7 +88,6 @@
|
||||||
address = [
|
address = [
|
||||||
# configure addresses including subnet mask
|
# configure addresses including subnet mask
|
||||||
"192.168.1.10/24"
|
"192.168.1.10/24"
|
||||||
# TODO: ipv6 address configuration
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue