infrastructure/meta/network.nix

211 lines
3.8 KiB
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
# SPDX-FileContributor: Julien Malka <julien.malka@dgnum.eu>
# SPDX-FileContributor: Maurice Debray <maurice.debray@dgnum.eu>
# SPDX-FileContributor: Ryan Lahfa <ryan.lahfa@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
2024-02-23 10:50:50 +01:00
{
bridge01 = {
hostId = "f57f3ba0";
interfaces = { };
netbirdIp = null;
};
compute01 = {
interfaces = {
eno1 = {
ipv4 = [
{
address = "129.199.146.147";
prefixLength = 24;
}
{
address = "192.168.1.147";
prefixLength = 24;
}
];
gateways = [ "129.199.146.254" ];
2024-02-23 10:50:50 +01:00
enableDefaultDNS = true;
};
};
hostId = "8df60941";
2024-04-23 13:46:33 +02:00
netbirdIp = "100.80.75.197";
};
2024-02-20 17:47:50 +01:00
geo01 = {
interfaces = {
eno1 = {
ipv4 = [
{
address = "129.199.210.194";
prefixLength = 24;
}
];
gateways = [ "129.199.210.254" ];
2024-02-23 10:50:50 +01:00
dns = [
"129.199.96.11"
"129.199.72.99"
];
2024-02-20 17:47:50 +01:00
};
};
hostId = "b88fee0c";
2024-04-23 13:46:33 +02:00
netbirdIp = "100.80.8.66";
2024-02-20 17:47:50 +01:00
};
2024-02-20 17:57:38 +01:00
geo02 = {
interfaces = {
eno1 = {
ipv4 = [
{
address = "129.199.210.69";
prefixLength = 24;
}
];
gateways = [ "129.199.210.254" ];
2024-02-23 10:50:50 +01:00
dns = [
"129.199.96.11"
"129.199.72.99"
];
2024-02-20 17:57:38 +01:00
};
};
hostId = "45d65237";
2024-04-23 13:46:33 +02:00
netbirdIp = "100.80.233.249";
2024-02-20 17:57:38 +01:00
};
2024-12-08 10:48:53 +01:00
rescue01 = {
interfaces = {
ens18 = {
ipv6 = [
{
address = "2a01:e0a:de4:a0e1:2d73:2a7e:18db:5728";
prefixLength = 64;
}
];
ipv4 = [
{
address = "192.168.0.232";
prefixLength = 21;
}
];
gateways = [ "192.168.0.1" ];
enableDefaultDNS = true;
};
};
addresses.ipv4 = [ "82.67.34.230" ];
hostId = "007f0200";
netbirdIp = "100.80.97.140";
};
storage01 = {
interfaces = {
eno1 = {
ipv4 = [
{
address = "129.199.146.148";
prefixLength = 24;
}
{
address = "192.168.1.148";
prefixLength = 24;
}
];
gateways = [ "129.199.146.254" ];
2024-02-23 10:50:50 +01:00
enableDefaultDNS = true;
};
};
hostId = "d4e7c369";
2024-04-23 13:46:33 +02:00
netbirdIp = "100.80.156.154";
};
2024-01-10 15:00:18 +01:00
vault01 = {
interfaces = {
vlan-uplink-cri = {
ipv4 = [
{
# see also machines/vault01/networking.nix
address = "129.199.195.129";
2024-05-31 20:29:53 +02:00
prefixLength = 32;
}
];
gateways = [ ];
enableDefaultDNS = true;
2024-01-10 15:00:18 +01:00
};
};
hostId = "e83b600d";
2024-04-23 13:46:33 +02:00
netbirdIp = "100.80.255.180";
2024-01-10 15:00:18 +01:00
};
web01 = {
interfaces = {
ens3 = {
ipv4 = [
{
address = "129.199.129.53";
prefixLength = 24;
}
];
gateways = [ "129.199.129.1" ];
2024-02-23 10:50:50 +01:00
enableDefaultDNS = true;
};
};
hostId = "050df79e";
2024-04-23 13:46:33 +02:00
netbirdIp = "100.80.77.90";
};
2024-01-11 12:45:01 +01:00
web02 = {
interfaces = {
ens3 = {
ipv4 = [
{
address = "129.199.129.235";
prefixLength = 24;
}
];
2024-01-11 12:45:01 +01:00
gateways = [ "129.199.129.1" ];
2024-02-23 10:50:50 +01:00
enableDefaultDNS = true;
2024-01-11 12:45:01 +01:00
};
};
hostId = "b431ca10";
2024-04-23 13:46:33 +02:00
netbirdIp = null; # web02 is not to be connected on the VPN
2024-01-11 12:45:01 +01:00
};
2024-02-21 01:44:48 +01:00
2024-10-16 11:07:40 +02:00
web03 = {
interfaces = {
enp1s0 = {
ipv4 = [
{
address = "129.199.129.223";
prefixLength = 24;
}
];
gateways = [ "129.199.129.1" ];
enableDefaultDNS = true;
};
};
hostId = "8afc7749";
netbirdIp = "100.80.157.46";
2024-10-16 11:07:40 +02:00
};
}