From 5a4bf7cbd54a83cd7a6628e26c681f115a01a1c3 Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Sun, 16 Jul 2023 13:13:13 +0100 Subject: [PATCH 1/3] Initial commit --- Server-switch.startup | 0 Server-switch/etc/resolvconf/resolv.conf.d/base | 2 ++ 2 files changed, 2 insertions(+) create mode 100755 Server-switch.startup create mode 100755 Server-switch/etc/resolvconf/resolv.conf.d/base diff --git a/Server-switch.startup b/Server-switch.startup new file mode 100755 index 0000000..e69de29 diff --git a/Server-switch/etc/resolvconf/resolv.conf.d/base b/Server-switch/etc/resolvconf/resolv.conf.d/base new file mode 100755 index 0000000..caa02b9 --- /dev/null +++ b/Server-switch/etc/resolvconf/resolv.conf.d/base @@ -0,0 +1,2 @@ +# hosts external to fido +nameserver 8.8.8.8 From 70fbba81ddd451f35c710aea9190c871607cfc6f Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Sun, 16 Jul 2023 13:23:04 +0100 Subject: [PATCH 2/3] Added config for Server-switch machine --- Server-switch.startup | 3 +++ lab.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Server-switch.startup b/Server-switch.startup index e69de29..602df77 100755 --- a/Server-switch.startup +++ b/Server-switch.startup @@ -0,0 +1,3 @@ +# IP of Server-switch +ip addr add 10.0.5.2/24 dev eth0 +ip link set up dev eth0 diff --git a/lab.conf b/lab.conf index 3a501a2..3661d76 100755 --- a/lab.conf +++ b/lab.conf @@ -29,3 +29,6 @@ Staff-3[0]=Staff Services-switch[0]=Services Int-WWW[0]=Services Int-DNS[0]=Services + +# Server subnet +Server-switch[0]=Server From 38008c757386f618752639df8ecea2eea4fcaf0a Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Sun, 16 Jul 2023 13:38:53 +0100 Subject: [PATCH 3/3] Added connection between Server-switch and Central-router via gateway IP --- Central-router.startup | 4 ++++ Server-switch.startup | 3 +++ lab.conf | 1 + 3 files changed, 8 insertions(+) diff --git a/Central-router.startup b/Central-router.startup index 9a0d3e9..f785610 100755 --- a/Central-router.startup +++ b/Central-router.startup @@ -20,3 +20,7 @@ ip link set up dev eth3 # Gateway IP for Services-switch ip addr add 10.0.4.1/24 dev eth4 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 diff --git a/Server-switch.startup b/Server-switch.startup index 602df77..ae4eb8d 100755 --- a/Server-switch.startup +++ b/Server-switch.startup @@ -1,3 +1,6 @@ # IP of Server-switch ip addr add 10.0.5.2/24 dev eth0 ip link set up dev eth0 + +# Gateway IP to Central-router +ip route add default via 10.0.5.1 dev eth0 diff --git a/lab.conf b/lab.conf index 3661d76..aa80db0 100755 --- a/lab.conf +++ b/lab.conf @@ -8,6 +8,7 @@ Central-router[1]=DMZ Central-router[2]=External Central-router[3]=Staff Central-router[4]=Services +Central-router[5]=Server # DMZ subnet DMZ-switch[0]=DMZ