2024-04-06 23:11:39 +02:00
|
|
|
let
|
2024-04-30 20:08:07 +02:00
|
|
|
vlansPlan = {
|
|
|
|
"uplink-cri".id = 223;
|
2024-04-06 23:11:39 +02:00
|
|
|
|
|
|
|
"admin-core" = {
|
2024-04-30 20:08:07 +02:00
|
|
|
id = 3000;
|
|
|
|
l3-interface = "irb.0";
|
2024-04-06 23:11:39 +02:00
|
|
|
};
|
2024-04-30 20:08:07 +02:00
|
|
|
"admin-ap".id = 3001;
|
|
|
|
"users".id-list = [
|
2024-04-28 11:47:10 +02:00
|
|
|
{
|
|
|
|
begin = 3045;
|
|
|
|
end = 4094;
|
|
|
|
}
|
|
|
|
];
|
2024-04-20 01:54:15 +02:00
|
|
|
|
2024-04-30 20:08:07 +02:00
|
|
|
"ap-staging".id = 2000;
|
2024-12-16 22:54:52 +01:00
|
|
|
"hypervisor".id = 2001;
|
2024-04-06 23:11:39 +02:00
|
|
|
};
|
|
|
|
AP = {
|
2024-09-03 23:38:29 +02:00
|
|
|
poe = true;
|
2024-08-31 22:37:30 +02:00
|
|
|
ethernet-switching = {
|
2024-04-30 20:08:07 +02:00
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [
|
|
|
|
"users"
|
|
|
|
"admin-ap"
|
|
|
|
];
|
|
|
|
};
|
2024-04-06 23:11:39 +02:00
|
|
|
};
|
2024-04-20 01:54:15 +02:00
|
|
|
AP-staging = {
|
2024-08-31 22:37:30 +02:00
|
|
|
poe = true;
|
|
|
|
ethernet-switching = {
|
2024-04-30 20:08:07 +02:00
|
|
|
interface-mode = "access";
|
|
|
|
vlans = [ "ap-staging" ];
|
|
|
|
};
|
2024-04-20 01:54:15 +02:00
|
|
|
};
|
2024-12-08 09:39:51 +01:00
|
|
|
default =
|
|
|
|
{ name, ... }:
|
|
|
|
{
|
|
|
|
vlans = vlansPlan;
|
|
|
|
system = {
|
|
|
|
host-name = name;
|
|
|
|
services.ssh.root-login = "deny-password";
|
|
|
|
root-authentication = {
|
|
|
|
hashedPasswd = "$6$BKetIIfT$JVyE0B7F4O.fJwQFu5jVrVExAZROrEMLW5HkDkhjMShJ9cRIgxSm2VM9OThDowsnLmAewqDN7eAY.EQt4UR4U0";
|
|
|
|
ssh-keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-28 11:47:10 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-18 10:11:36 +02:00
|
|
|
netcore02 = {
|
2024-05-22 13:33:28 +02:00
|
|
|
deployment.targetHost = "netcore02.dgn";
|
2024-12-08 09:39:51 +01:00
|
|
|
imports = [
|
|
|
|
./ex2300.nix
|
|
|
|
default
|
|
|
|
];
|
2024-08-31 22:37:30 +02:00
|
|
|
dgn-interfaces = {
|
2024-12-02 15:45:26 +01:00
|
|
|
# "ge-0/0/0" = AP-staging;
|
|
|
|
# "ge-0/0/1" = AP-staging;
|
|
|
|
# "ge-0/0/2" = AP-staging;
|
|
|
|
# "ge-0/0/3" = AP-staging;
|
2024-09-07 21:38:00 +02:00
|
|
|
"ge-0/0/4" = AP-staging;
|
2024-12-02 15:45:26 +01:00
|
|
|
# "ge-0/0/5" = AP-staging;
|
|
|
|
# "ge-0/0/6" = AP-staging;
|
|
|
|
# "ge-0/0/7" = AP-staging;
|
|
|
|
# "ge-0/0/8" = AP-staging;
|
|
|
|
# "ge-0/0/9" = AP-staging;
|
|
|
|
# "ge-0/0/10" = AP-staging;
|
|
|
|
# "ge-0/0/11" = AP-staging;
|
|
|
|
# "ge-0/0/12" = AP-staging;
|
|
|
|
# "ge-0/0/13" = AP-staging;
|
|
|
|
# "ge-0/0/14" = AP-staging;
|
|
|
|
# "ge-0/0/15" = AP-staging;
|
|
|
|
# "ge-0/0/16" = AP-staging;
|
|
|
|
# "ge-0/0/17" = AP-staging;
|
2024-04-06 23:11:39 +02:00
|
|
|
|
2024-09-03 23:38:29 +02:00
|
|
|
# oob
|
|
|
|
"ge-0/0/42".ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [ "all" ];
|
2024-04-20 01:54:15 +02:00
|
|
|
};
|
2024-09-03 23:38:29 +02:00
|
|
|
# AP de test
|
2024-12-02 15:45:26 +01:00
|
|
|
"ge-0/0/43" = {
|
|
|
|
poe = true;
|
|
|
|
ethernet-switching = {
|
|
|
|
interface-mode = "access";
|
|
|
|
vlans = [ 4000 ];
|
|
|
|
};
|
|
|
|
};
|
2024-09-03 23:38:29 +02:00
|
|
|
# uplink oob
|
|
|
|
"ge-0/0/46".ethernet-switching = {
|
|
|
|
interface-mode = "access";
|
2024-12-02 15:45:56 +01:00
|
|
|
vlans = [ 222 ];
|
|
|
|
rstp = false;
|
2024-08-31 18:23:00 +02:00
|
|
|
};
|
2024-09-03 23:38:29 +02:00
|
|
|
# ilo
|
|
|
|
"ge-0/0/47".ethernet-switching = {
|
|
|
|
interface-mode = "access";
|
|
|
|
vlans = [ "admin-core" ];
|
2024-04-20 01:54:15 +02:00
|
|
|
};
|
|
|
|
|
2024-09-03 23:38:29 +02:00
|
|
|
# router
|
|
|
|
"xe-0/1/0".ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [ "all" ];
|
2024-04-06 23:11:39 +02:00
|
|
|
};
|
2024-09-03 23:38:29 +02:00
|
|
|
# netaccess01
|
|
|
|
"xe-0/1/1".ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [
|
|
|
|
"users"
|
|
|
|
"ap-staging"
|
|
|
|
"admin-ap"
|
|
|
|
"admin-core"
|
|
|
|
];
|
2024-04-06 23:11:39 +02:00
|
|
|
};
|
2024-11-23 16:18:53 +01:00
|
|
|
# netcore01 (Potos)
|
|
|
|
"xe-0/1/2".ethernet-switching = {
|
2024-12-08 19:03:01 +01:00
|
|
|
interface-mode = "access";
|
2024-11-23 16:18:53 +01:00
|
|
|
vlans = [
|
2024-12-16 22:54:52 +01:00
|
|
|
"hypervisor"
|
2024-11-23 16:18:53 +01:00
|
|
|
];
|
|
|
|
};
|
2024-09-03 23:38:29 +02:00
|
|
|
# uplink
|
|
|
|
"ge-0/1/3".ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [ "uplink-cri" ];
|
2024-04-06 23:11:39 +02:00
|
|
|
};
|
|
|
|
|
2024-09-03 23:38:29 +02:00
|
|
|
# management
|
|
|
|
"me0".inet.addresses = [ "192.168.42.6/24" ];
|
|
|
|
"irb".inet6.addresses = [ "fd26:baf9:d250:8000::1001/64" ];
|
2024-04-06 23:11:39 +02:00
|
|
|
};
|
|
|
|
};
|
2024-05-22 13:33:28 +02:00
|
|
|
netaccess01 = {
|
|
|
|
deployment.targetHost = "netaccess01.dgn";
|
2024-04-30 20:08:07 +02:00
|
|
|
|
2024-12-08 09:39:51 +01:00
|
|
|
imports = [
|
|
|
|
./ex2300.nix
|
|
|
|
default
|
|
|
|
];
|
2024-05-22 13:33:28 +02:00
|
|
|
|
2024-08-31 22:37:30 +02:00
|
|
|
dgn-interfaces = {
|
2024-12-02 15:45:26 +01:00
|
|
|
# "ge-0/0/0" = AP-staging;
|
|
|
|
# "ge-0/0/1" = AP-staging;
|
|
|
|
# "ge-0/0/2" = AP-staging;
|
|
|
|
# "ge-0/0/3" = AP-staging;
|
|
|
|
# "ge-0/0/4" = AP-staging;
|
|
|
|
# "ge-0/0/5" = AP-staging;
|
2024-05-22 13:33:28 +02:00
|
|
|
|
2024-09-03 23:38:29 +02:00
|
|
|
# netcore02
|
|
|
|
"xe-0/1/0".ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [ "all" ];
|
2024-05-22 13:33:28 +02:00
|
|
|
};
|
2024-04-30 20:08:07 +02:00
|
|
|
|
2024-09-03 23:38:29 +02:00
|
|
|
# management
|
|
|
|
"me0".inet.addresses = [ "192.168.42.6/24" ];
|
|
|
|
"irb".inet6.addresses = [ "fd26:baf9:d250:8000::2001/64" ];
|
2024-05-22 13:33:28 +02:00
|
|
|
};
|
|
|
|
};
|
2024-12-07 19:48:28 +01:00
|
|
|
|
|
|
|
netaccess00 = {
|
|
|
|
deployment.targetHost = "netaccess00.dgn";
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./ex4100-f-48P.nix
|
|
|
|
default
|
|
|
|
];
|
|
|
|
|
|
|
|
dgn-interfaces =
|
|
|
|
let
|
|
|
|
admin-intf.ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [ "all" ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
"xe-0/1/0" = admin-intf;
|
|
|
|
"ge-0/1/0" = admin-intf;
|
|
|
|
"et-0/1/0" = admin-intf;
|
|
|
|
"xe-0/1/1" = admin-intf;
|
|
|
|
"ge-0/1/1" = admin-intf;
|
|
|
|
"et-0/1/1" = admin-intf;
|
|
|
|
"xe-0/1/2" = admin-intf;
|
|
|
|
"ge-0/1/2" = admin-intf;
|
|
|
|
"et-0/1/2" = admin-intf;
|
|
|
|
"xe-0/1/3" = admin-intf;
|
|
|
|
"ge-0/1/3" = admin-intf;
|
|
|
|
"et-0/1/3" = admin-intf;
|
|
|
|
|
|
|
|
"xe-0/2/0" = admin-intf;
|
|
|
|
"ge-0/2/0" = admin-intf;
|
|
|
|
"xe-0/2/1" = admin-intf;
|
|
|
|
"ge-0/2/1" = admin-intf;
|
|
|
|
"xe-0/2/2" = admin-intf;
|
|
|
|
"ge-0/2/2" = admin-intf;
|
|
|
|
"xe-0/2/3" = admin-intf;
|
|
|
|
"ge-0/2/3" = admin-intf;
|
|
|
|
|
|
|
|
"ge-0/0/47".ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [ "all" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# management
|
|
|
|
"me0".inet.addresses = [ "192.168.2.2/24" ];
|
|
|
|
"irb".inet6.addresses = [ "fd26:baf9:d250:8000::200f/64" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
netcore00 = {
|
|
|
|
deployment.targetHost = "netcore00.dgn";
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./ex4400-24X.nix
|
|
|
|
./ex4400-em-4Y.nix
|
|
|
|
default
|
|
|
|
];
|
|
|
|
|
|
|
|
dgn-interfaces =
|
|
|
|
let
|
|
|
|
admin-intf.ethernet-switching = {
|
|
|
|
interface-mode = "trunk";
|
|
|
|
vlans = [ "all" ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
"xe-0/2/0" = admin-intf;
|
|
|
|
"ge-0/2/0" = admin-intf;
|
|
|
|
"et-0/2/0" = admin-intf;
|
|
|
|
|
|
|
|
"ge-0/0/22" = admin-intf;
|
|
|
|
"xe-0/0/22" = admin-intf;
|
|
|
|
|
|
|
|
"me0".inet.addresses = [ "192.168.2.3/24" ];
|
|
|
|
"irb".inet6.addresses = [ "fd26:baf9:d250:8000::100f/64" ];
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 23:11:39 +02:00
|
|
|
}
|