network/config/switch.nix

398 lines
9.7 KiB
Nix
Raw Normal View History

2021-11-13 01:44:14 +01:00
{
site.hosts = {
switch-a1 = {
2021-11-18 17:32:55 +01:00
role = "switch";
model = "TL-SG3210";
location = "Saal A";
2021-11-13 01:44:14 +01:00
interfaces = { mgmt.type = "phys"; };
2021-11-18 17:32:55 +01:00
2021-11-13 01:44:14 +01:00
links = {
2022-02-05 00:51:02 +01:00
switch-a2.ports = [ "7" ];
2022-09-16 18:39:06 +02:00
# Panel A2: Foyer
switch-ds1.ports = [ "3" ];
# Panel A6: kl Saal hinten
switch-ds2.ports = [ "8" ];
priv25.ports = [
"2"
"4"
"5"
];
2021-11-15 03:33:22 +01:00
priv31.ports = [ "6" ];
2021-11-18 17:32:55 +01:00
iso4.ports = [ "1" ];
2021-11-13 01:44:14 +01:00
};
};
2022-02-05 00:51:02 +01:00
switch-a2 = {
role = "switch";
model = "dumb";
location = "Saal A";
links = {
switch-c1.ports = [ "1" ];
switch-a1.ports = [ "2" ];
ap44.ports = [ "10" ];
ap45.ports = [ "11" ];
ap46.ports = [ "12" ];
ap47.ports = [ "13" ];
ap48.ports = [ "14" ];
ap49.ports = [ "15" ];
ap50.ports = [ "16" ];
ap52.ports = [ "17" ];
};
};
2022-06-27 01:04:44 +02:00
switch-b3 = {
2021-11-18 17:32:55 +01:00
role = "switch";
2022-06-27 01:04:44 +02:00
model = "junos";
2021-11-18 17:32:55 +01:00
location = "Haus B Souterrain";
2021-11-13 01:44:14 +01:00
interfaces = { mgmt.type = "phys"; };
2021-11-18 17:32:55 +01:00
# Ports 1-19 ungerade oben
# Ports 2-20 gerade unten
# (15, 16 gehen aktuell nach Haus A)
# Ports 21-24 unten seitlich (optional optisch)
# Port 7 geht aktuell nach Turm C Erdgeschoss und dadurch zur Ecce
2021-11-13 01:44:14 +01:00
links = {
2022-06-27 01:04:44 +02:00
ap23.ports = [ "ge-0/0/10" ];
ap8.ports = [ "ge-0/0/16" ];
iso1.ports = [ "ge-0/0/2" ];
iso2.ports = [ "ge-0/0/3" ];
iso3.ports = [ "ge-0/0/4" ];
2022-05-05 18:49:00 +02:00
serv.ports = [
2022-06-27 01:04:44 +02:00
"ge-0/0/22"
2022-05-05 18:49:00 +02:00
];
2022-11-01 02:13:05 +01:00
c3d2.ports = [
"ge-0/0/5"
"ge-0/0/8"
# riscbert
"ge-0/0/13"
];
2022-07-12 00:23:42 +02:00
server1 = {
group = "3";
ports = [
"ge-0/0/24"
"ge-0/0/25"
"ge-1/0/24"
"ge-1/0/25"
];
};
2021-11-13 01:44:14 +01:00
server2 = {
group = "1";
ports = [
"ge-0/0/38" "ge-0/0/39"
"ge-1/0/32" "ge-1/0/33"
];
2021-11-13 01:44:14 +01:00
};
2022-06-23 19:07:31 +02:00
hydra = {
2021-11-13 01:44:14 +01:00
group = "7";
2022-06-23 19:07:31 +02:00
trunk = false;
ports = [
"ge-0/0/14" "ge-0/0/15"
"ge-1/0/14" "ge-1/0/15"
];
2021-11-13 01:44:14 +01:00
};
2022-06-23 19:07:31 +02:00
server10 = {
2021-11-13 01:44:14 +01:00
group = "5";
ports = [
"ge-0/0/36" "ge-0/0/37"
"ge-1/0/36" "ge-1/0/37"
];
2021-11-13 01:44:14 +01:00
};
switch-c1 = {
group = "2";
ports = [ "ge-0/0/30" "ge-0/0/31" "ge-1/0/30" "ge-1/0/31" ];
2021-11-13 01:44:14 +01:00
};
switch-c3d2-main = {
group = "4";
ports = [
"ge-0/0/26"
"ge-0/0/27"
"ge-1/0/26"
"ge-1/0/27"
];
2021-11-13 01:44:14 +01:00
};
2022-06-27 01:04:44 +02:00
switch-d1.ports = [ "ge-0/0/34" ];
2021-11-18 17:32:55 +01:00
2022-06-27 01:04:44 +02:00
ap1.ports = [ "ge-1/0/8" ];
ap11.ports = [ "ge-1/0/10" ];
2022-07-19 19:24:09 +02:00
ap34.ports = [ "ge-1/0/12" ];
2022-06-27 01:04:44 +02:00
ap18.ports = [ "ge-1/0/18" ];
ap24.ports = [ "ge-1/0/34" ];
ap25.ports = [ "ge-1/0/35" ];
ap29.ports = [ "ge-0/0/46" ];
2022-06-27 01:04:44 +02:00
ap30.ports = [ "ge-1/0/22" ];
ap35.ports = [ "ge-1/0/23" ];
ap37.ports = [ "ge-1/0/39" ];
2023-01-04 20:26:02 +01:00
ap63.ports = [ "ge-1/0/17" ];
2022-06-27 01:04:44 +02:00
ap40.ports = [ "ge-1/0/21" ];
ap41.ports = [ "ge-0/0/47" ];
2022-06-27 01:04:44 +02:00
ap42.ports = [ "ge-1/0/6" ];
ap5.ports = [ "ge-1/0/7" ];
ap51.ports = [ "ge-1/0/13" ];
ap53.ports = [ "ge-0/0/7" ];
2022-06-27 01:04:44 +02:00
ap54.ports = [ "ge-1/0/38" ];
ap55.ports = [ "ge-1/0/19" ];
ap56.ports = [ "ge-1/0/9" ];
ap60.ports = [ "ge-1/0/20" ];
2022-12-14 18:32:45 +01:00
ap62.ports = [ "ge-0/0/11" ];
2021-11-15 03:33:22 +01:00
mgmt.ports = [
2022-06-27 01:04:44 +02:00
"ge-0/0/0"
"ge-1/0/0"
"ge-0/0/1"
"ge-1/0/44"
2021-11-18 17:32:55 +01:00
# server7
2023-03-06 23:00:56 +01:00
"ge-1/0/45"
2022-06-27 01:04:44 +02:00
"ge-1/0/46"
2021-11-18 17:32:55 +01:00
# server8
2022-06-27 01:04:44 +02:00
"ge-1/0/47"
2021-11-18 17:32:55 +01:00
# server9
2022-06-27 01:04:44 +02:00
"ge-1/0/48"
2021-11-15 03:33:22 +01:00
];
2022-06-27 01:04:44 +02:00
priv1.ports = [ "ge-1/0/3" ];
priv19.ports = [ "ge-1/0/40" ];
priv2.ports = [ "ge-1/0/4" ];
priv24.ports = [ "ge-0/0/6" "ge-1/0/16" ];
2022-06-27 01:04:44 +02:00
priv3.ports = [ "ge-1/0/5" ];
2023-04-19 22:06:28 +02:00
priv30.ports = [ "ge-0/0/12" ];
2023-02-20 23:30:57 +01:00
ap64.ports = [ "ge-0/0/45" ];
2021-11-15 03:33:22 +01:00
pub.ports = [
2022-06-27 01:04:44 +02:00
"ge-1/0/11"
2021-11-15 03:33:22 +01:00
];
2023-03-06 23:00:56 +01:00
server7 = {
group = "8";
ports = [
"ge-0/0/40"
"ge-0/0/44"
"ge-1/0/1"
"ge-1/0/43"
];
};
2021-11-13 01:44:14 +01:00
server9 = {
2022-06-27 01:04:44 +02:00
group = "10";
2021-11-13 01:44:14 +01:00
ports = [
"ge-0/0/28"
"ge-0/0/29"
"ge-1/0/28"
2022-06-27 01:04:44 +02:00
"ge-1/0/29"
2021-11-13 01:44:14 +01:00
];
};
2022-11-24 19:27:55 +01:00
server8 = {
group = "6";
ports = [
"ge-0/0/41"
"ge-0/0/42"
"ge-1/0/41"
"ge-1/0/42"
];
};
2021-11-13 01:44:14 +01:00
};
};
2021-11-18 17:32:55 +01:00
2021-11-13 01:44:14 +01:00
switch-c1 = {
2021-11-18 17:32:55 +01:00
role = "switch";
model = "HP-procurve-2824";
location = "Turm C Keller, bei Kabelanschluessen";
2021-11-13 01:44:14 +01:00
interfaces = { mgmt.type = "phys"; };
2021-11-18 17:32:55 +01:00
2022-02-05 00:51:02 +01:00
links = {
# Saal A: durch dummen PoE-Switch mit Aggregation an ap44-50,52 + switch-a1
switch-a2 = {
2021-11-13 01:44:14 +01:00
group = "1";
ports = [ "15-16" ];
};
2022-06-27 01:07:28 +02:00
switch-b3 = {
2021-11-13 01:44:14 +01:00
group = "2";
ports = [ "21-24" ];
};
2021-11-15 03:33:22 +01:00
switch-dach.ports = [ "6" ];
2021-11-18 17:32:55 +01:00
# Vodafone Modems
2021-11-15 03:33:22 +01:00
up1.ports = [ "1" ];
up2.ports = [ "2" ];
2021-11-18 17:32:55 +01:00
# DSI
2021-11-15 03:33:22 +01:00
up4.ports = [ "4" ];
2021-11-18 17:32:55 +01:00
# Turm C APs
ap17.ports = [ "19" ];
ap19.ports = [ "17" ];
ap26.ports = [ "18" ];
ap38.ports = [ "7" ];
2022-09-14 21:22:23 +02:00
ap61.ports = [ "13" ];
2021-11-18 17:32:55 +01:00
# Iso nets
iso1.ports = [ "9" ];
iso2.ports = [ "10" ];
iso3.ports = [ "11" ];
iso4.ports = [ "12" ];
iso6.ports = [ "14" ];
2022-03-06 15:17:40 +01:00
# Saal Foyer
2022-03-06 15:18:57 +01:00
priv25.ports = [ "20" ];
2021-11-13 01:44:14 +01:00
};
};
2021-11-18 17:32:55 +01:00
2021-11-13 01:44:14 +01:00
switch-c3d2-main = {
2021-11-18 17:32:55 +01:00
role = "switch";
model = "HP-procurve-2824";
location = "C3D2";
2021-11-13 01:44:14 +01:00
interfaces = { mgmt.type = "phys"; };
2021-11-18 17:32:55 +01:00
2021-11-13 01:44:14 +01:00
links = {
2021-11-15 03:33:22 +01:00
mgmt.ports = [ "1" ];
2022-06-27 01:07:28 +02:00
switch-b3 = {
2021-11-13 01:44:14 +01:00
group = "1";
ports = [ "21-24" ];
};
2021-11-18 17:32:55 +01:00
# Kammer
ap2.ports = [ "3" ];
# Decke
ap31.ports = [ "2" ];
# Fenster
ap33.ports = [ "5" ];
c3d2.ports = [ "8-20" ];
# Testing
ap-test1.ports = [ "4" ];
bmx.ports = [ "7" ];
# tmp Datenspuren: VOC
iso4.ports = [ "6" ];
2021-11-13 01:44:14 +01:00
};
};
2021-11-18 17:32:55 +01:00
2021-11-13 01:44:14 +01:00
switch-d1 = {
2021-11-18 17:32:55 +01:00
role = "switch";
model = "TL-SG3210";
location = "Turm D Elektroraum";
2021-11-13 01:44:14 +01:00
interfaces = { mgmt.type = "phys"; };
2021-11-18 17:32:55 +01:00
2021-11-13 01:44:14 +01:00
links = {
2022-06-27 01:07:28 +02:00
switch-b3 = {
2021-11-13 01:44:14 +01:00
group = "1";
ports = [ "1" ];
};
2022-02-05 00:33:09 +01:00
switch-d2.ports = [ "3" ];
2021-11-18 17:32:55 +01:00
# Turm D APs
ap7.ports = [ "8" ];
ap9.ports = [ "5" ];
ap10.ports = [ "4" ];
ap12.ports = [ "7" ];
ap22.ports = [ "2" ];
2021-11-13 01:44:14 +01:00
};
};
2021-11-18 17:32:55 +01:00
2022-02-05 00:33:09 +01:00
switch-d2 = {
role = "switch";
model = "dumb";
location = "Turm D Durchgang 1. Etage";
links = {
switch-d1 = {
group = "1";
ports = [ "12" ];
2022-02-05 00:33:09 +01:00
};
ap3.ports = [ "1" ];
ap59.ports = [ "2" ];
};
};
2021-11-13 01:44:14 +01:00
switch-dach = {
2021-11-18 17:32:55 +01:00
role = "switch";
model = "HP-procurve-2824";
location = "Dach";
2021-11-13 01:44:14 +01:00
interfaces = { mgmt.type = "phys"; };
2021-11-18 17:32:55 +01:00
2021-11-13 01:44:14 +01:00
links = {
2021-11-15 03:33:22 +01:00
mgmt.ports = [ "1" ];
switch-c1.ports = [ "24" ];
2021-11-18 17:32:55 +01:00
# Freifunk nodes
bmx.ports = [ "12,14,16" ];
2021-11-18 17:32:55 +01:00
# radiobert
serv.ports = [ "7" ];
2021-11-18 17:32:55 +01:00
# Starlink
2021-11-15 03:33:22 +01:00
up3.ports = [ "3" ];
2022-01-18 01:05:16 +01:00
# unifiac-mesh
ap57.ports = [ "10" ];
2022-05-10 21:26:29 +02:00
# dump-dvb traffic-stop-box
c3d2.ports = [ "20" ];
2021-11-13 01:44:14 +01:00
};
};
2022-09-16 18:39:06 +02:00
switch-ds1 = {
role = "switch";
model = "3com-5500G";
location = "Foyer";
interfaces = { mgmt.type = "phys"; };
links = {
# Public
pub.ports = [
"GigabitEthernet1/0/1"
"GigabitEthernet1/0/2"
"GigabitEthernet1/0/3"
"GigabitEthernet1/0/4"
"GigabitEthernet1/0/5"
"GigabitEthernet1/0/6"
"GigabitEthernet1/0/7"
"GigabitEthernet1/0/8"
"GigabitEthernet1/0/9"
"GigabitEthernet1/0/10"
"GigabitEthernet1/0/11"
"GigabitEthernet1/0/12"
"GigabitEthernet1/0/13"
"GigabitEthernet1/0/14"
"GigabitEthernet1/0/15"
"GigabitEthernet1/0/16"
"GigabitEthernet1/0/17"
"GigabitEthernet1/0/18"
"GigabitEthernet1/0/19"
"GigabitEthernet1/0/20"
];
# Uplink
switch-a1.ports = [ "GigabitEthernet1/0/24" ];
# Freifunk
bmx.ports = [
"GigabitEthernet1/0/21"
"GigabitEthernet1/0/22"
"GigabitEthernet1/0/23"
];
};
};
switch-ds2 = {
role = "switch";
model = "3com-5500G";
location = "Vor dem Kl Saal";
interfaces = { mgmt.type = "phys"; };
links = {
# Public
pub.ports = [
"GigabitEthernet1/0/1"
"GigabitEthernet1/0/2"
"GigabitEthernet1/0/3"
"GigabitEthernet1/0/4"
"GigabitEthernet1/0/5"
"GigabitEthernet1/0/6"
"GigabitEthernet1/0/7"
"GigabitEthernet1/0/8"
"GigabitEthernet1/0/9"
"GigabitEthernet1/0/10"
"GigabitEthernet1/0/11"
"GigabitEthernet1/0/12"
"GigabitEthernet1/0/13"
"GigabitEthernet1/0/14"
"GigabitEthernet1/0/15"
"GigabitEthernet1/0/16"
"GigabitEthernet1/0/17"
"GigabitEthernet1/0/18"
"GigabitEthernet1/0/19"
"GigabitEthernet1/0/20"
];
# Uplink
switch-a1.ports = [ "GigabitEthernet1/0/24" ];
# Freifunk
bmx.ports = [
"GigabitEthernet1/0/21"
"GigabitEthernet1/0/22"
"GigabitEthernet1/0/23"
];
};
};
2021-11-13 01:44:14 +01:00
};
}