From 2ff1e48a764fc01d31be02841816a21d7bef061e Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Sun, 16 Jul 2023 20:05:30 +0100 Subject: [PATCH 1/3] Initial commit --- Management-switch.startup | 0 Management-switch/etc/resolvconf/resolv.conf.d/base | 2 ++ 2 files changed, 2 insertions(+) create mode 100755 Management-switch.startup create mode 100755 Management-switch/etc/resolvconf/resolv.conf.d/base diff --git a/Management-switch.startup b/Management-switch.startup new file mode 100755 index 0000000..e69de29 diff --git a/Management-switch/etc/resolvconf/resolv.conf.d/base b/Management-switch/etc/resolvconf/resolv.conf.d/base new file mode 100755 index 0000000..caa02b9 --- /dev/null +++ b/Management-switch/etc/resolvconf/resolv.conf.d/base @@ -0,0 +1,2 @@ +# hosts external to fido +nameserver 8.8.8.8 From 927a830901693073266b4b357b1411abd9ca73c0 Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Sun, 16 Jul 2023 20:14:21 +0100 Subject: [PATCH 2/3] Added config for Management-switch machine --- Management-switch.startup | 3 +++ lab.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Management-switch.startup b/Management-switch.startup index e69de29..79e9f76 100755 --- a/Management-switch.startup +++ b/Management-switch.startup @@ -0,0 +1,3 @@ +# IP of Management-switch +ip addr add 10.0.6.2/24 dev eth0 +ip link set up dev eth0 diff --git a/lab.conf b/lab.conf index ac1f0b0..df329e3 100755 --- a/lab.conf +++ b/lab.conf @@ -35,3 +35,6 @@ Int-DNS[0]=Services Server-switch[0]=Server LDAP[0]=Server OpenVPN[0]=Server + +# Management subnet +Management-switch[0]=Management From 59900f29c3bb938dfbac8e2646f20dda5c07de8c Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Sun, 16 Jul 2023 20:31:16 +0100 Subject: [PATCH 3/3] Added connection between Management-switch and Central-router via gateway IP --- Central-router.startup | 4 ++++ Management-switch.startup | 3 +++ lab.conf | 1 + 3 files changed, 8 insertions(+) diff --git a/Central-router.startup b/Central-router.startup index f785610..094ee5f 100755 --- a/Central-router.startup +++ b/Central-router.startup @@ -24,3 +24,7 @@ ip link set up dev eth4 # Gateway IP for Server-switch ip addr add 10.0.5.1/24 dev eth5 ip link set up dev eth5 + +# Gateway IP for Management-switch +ip addr add 10.0.6.1/24 dev eth6 +ip link set up dev eth6 diff --git a/Management-switch.startup b/Management-switch.startup index 79e9f76..82c526e 100755 --- a/Management-switch.startup +++ b/Management-switch.startup @@ -1,3 +1,6 @@ # IP of Management-switch ip addr add 10.0.6.2/24 dev eth0 ip link set up dev eth0 + +# Gateway IP to Central-router +ip route add default via 10.0.6.1 dev eth0 diff --git a/lab.conf b/lab.conf index df329e3..a149fb2 100755 --- a/lab.conf +++ b/lab.conf @@ -9,6 +9,7 @@ Central-router[2]=External Central-router[3]=Staff Central-router[4]=Services Central-router[5]=Server +Central-router[6]=Management # DMZ subnet DMZ-switch[0]=DMZ