Skip to content

Commit

Permalink
Added connection between Server-switch and Central-router via gateway IP
Browse files Browse the repository at this point in the history
  • Loading branch information
iArcanic committed Jul 16, 2023
1 parent 70fbba8 commit 38008c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Central-router.startup
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions Server-switch.startup
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lab.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38008c7

Please sign in to comment.