mirror of https://gitlab.crans.org/nounous/nixos
81 lines
1.4 KiB
Nix
81 lines
1.4 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
networking = {
|
|
|
|
dhcpcd.enable = false;
|
|
|
|
vlans = {
|
|
srv-nat = {
|
|
id = 3;
|
|
interface = "bond0";
|
|
};
|
|
san = {
|
|
id = 4;
|
|
interface = "bond0";
|
|
};
|
|
ceph = {
|
|
id = 6;
|
|
interface = "bond0";
|
|
};
|
|
adm = {
|
|
id = 10;
|
|
interface = "bond0";
|
|
};
|
|
};
|
|
|
|
bonds.bond0 = {
|
|
interfaces = [ "ens2f0" "ens2f1" ];
|
|
driverOptions.mode = "802.3ad";
|
|
};
|
|
|
|
interfaces = {
|
|
ens2f0.mtu = 9000;
|
|
ens2f1.mtu = 9000;
|
|
|
|
srv-nat = {
|
|
ipv4 = {
|
|
addresses = [
|
|
{
|
|
address = "172.16.3.3";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
ceph = {
|
|
ipv4 = {
|
|
addresses = [
|
|
{
|
|
address = "172.16.6.3";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
adm = {
|
|
ipv4 = {
|
|
addresses = [
|
|
{
|
|
address = "172.16.10.3";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
san = {
|
|
ipv4 = {
|
|
addresses = [
|
|
{
|
|
address = "172.16.4.3";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
defaultGateway = "172.16.3.99";
|
|
nameservers = [ "172.16.10.128" ];
|
|
};
|
|
}
|