mirror of https://gitlab.crans.org/nounous/nixos
use old networking file
parent
01b78dd455
commit
a034ba2955
|
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./networking.nix
|
||||
];
|
||||
|
||||
networking.hostId = "121cdcb4";
|
||||
|
|
@ -29,25 +30,10 @@
|
|||
|
||||
networking = {
|
||||
id = 3;
|
||||
adm = {
|
||||
enable = true;
|
||||
interface = "bond0";
|
||||
};
|
||||
srvNat = {
|
||||
enable = true;
|
||||
interface = "bond0";
|
||||
};
|
||||
};
|
||||
resticClient.enable = false;
|
||||
};
|
||||
|
||||
|
||||
networking = {
|
||||
bonds.bond0 = {
|
||||
interfaces = [ "enp11s0f0" "enp11s0f1" ];
|
||||
driverOptions.mode = "802.3ad";
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,49 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
|
||||
dhcpcd.enable = false;
|
||||
|
||||
vlans = {
|
||||
srv-nat = {
|
||||
id = 3;
|
||||
interface = "bond0";
|
||||
};
|
||||
adm = {
|
||||
id = 10;
|
||||
interface = "bond0";
|
||||
};
|
||||
};
|
||||
|
||||
bonds.bond0 = {
|
||||
interfaces = [ "enp11s0f0" "enp11s0f1" ];
|
||||
driverOptions.mode = "802.3ad";
|
||||
};
|
||||
|
||||
interfaces = {
|
||||
srv-nat = {
|
||||
ipv4 = {
|
||||
addresses = [
|
||||
{
|
||||
address = "172.16.3.3";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
adm = {
|
||||
ipv4 = {
|
||||
addresses = [
|
||||
{
|
||||
address = "172.16.10.3";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
defaultGateway = "172.16.3.99";
|
||||
nameservers = [ "172.16.10.128" ];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue