From 170df86934f34f32a251b7e36617010af3c35e89 Mon Sep 17 00:00:00 2001 From: Preetham Ananthkumar Date: Fri, 14 Jul 2023 17:35:33 +0100 Subject: [PATCH] Added connection between Services-switch and Central-router via gateway IP --- Central-router.startup | 4 ++++ Services-switch.startup | 3 +++ lab.conf | 1 + 3 files changed, 8 insertions(+) diff --git a/Central-router.startup b/Central-router.startup index 72730eb..9a0d3e9 100755 --- a/Central-router.startup +++ b/Central-router.startup @@ -16,3 +16,7 @@ ip link set up dev eth2 # Gateway IP for Staff-switch ip addr add 10.0.3.1/24 dev eth3 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 diff --git a/Services-switch.startup b/Services-switch.startup index 1b45335..be06d3e 100755 --- a/Services-switch.startup +++ b/Services-switch.startup @@ -1,3 +1,6 @@ # IP of Services-switch ip addr add 10.0.4.2/24 dev eth0 ip link set up dev eth0 + +# Gateway IP to Central-router +ip route add default via 10.0.4.1 dev eth0 diff --git a/lab.conf b/lab.conf index 435b293..16e676e 100755 --- a/lab.conf +++ b/lab.conf @@ -7,6 +7,7 @@ Central-router[0]=Central-router Central-router[1]=DMZ Central-router[2]=External Central-router[3]=Staff +Central-router[4]=Services # DMZ subnet DMZ-switch[0]=DMZ