Skip to content

Commit

Permalink
Merge pull request #11 from iArcanic/Staff-switch
Browse files Browse the repository at this point in the history
Staff-switch
  • Loading branch information
iArcanic authored Jul 14, 2023
2 parents 784a1b0 + 99a9a75 commit 8eeb239
Show file tree
Hide file tree
Showing 4 changed files with 16 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 @@ -12,3 +12,7 @@ ip link set up dev eth1
# Gateway IP for External-switch
ip addr add 10.0.2.1/24 dev eth2
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
6 changes: 6 additions & 0 deletions Staff-switch.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# IP of Staff-switch
ip addr add 10.0.3.2/24 dev eth0
ip link set up dev eth0

# Gateway IP to Central-router
ip route add default via 10.0.3.1 dev eth0
2 changes: 2 additions & 0 deletions Staff-switch/etc/resolvconf/resolv.conf.d/base
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# hosts external to fido
nameserver 8.8.8.8
4 changes: 4 additions & 0 deletions lab.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Internet[1]=Central-router
Central-router[0]=Central-router
Central-router[1]=DMZ
Central-router[2]=External
Central-router[3]=Staff

# DMZ subnet
DMZ-switch[0]=DMZ
Expand All @@ -16,3 +17,6 @@ External-switch[0]=External
Ext-Office[0]=External
Ext-DNS[0]=External
Ext-WWW[0]=External

# Staff subnet
Staff-switch[0]=Staff

0 comments on commit 8eeb239

Please sign in to comment.