Skip to content

Commit

Permalink
Merge pull request #6 from iArcanic/External-switch
Browse files Browse the repository at this point in the history
External-switch
  • Loading branch information
iArcanic authored Jul 14, 2023
2 parents 1e642ec + ece89d4 commit 95baf9b
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 @@ -8,3 +8,7 @@ ip route add default via 192.168.0.1 dev eth0
# Gateway IP for DMZ-switch
ip addr add 10.0.1.1/24 dev eth1
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
6 changes: 6 additions & 0 deletions External-switch.startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# IP of External-switch
ip addr add 10.0.2.2/24 dev eth0
ip link set up dev eth0

# Gateway IP to Central-router
ip route add default via 10.0.2.1 dev eth0
2 changes: 2 additions & 0 deletions External-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 @@ -5,7 +5,11 @@ Internet[1]=Central-router
# Central-router
Central-router[0]=Central-router
Central-router[1]=DMZ
Central-router[2]=External

# DMZ subnet
DMZ-switch[0]=DMZ
Squid[0]=DMZ

# External subnet
External-switch[0]=External

0 comments on commit 95baf9b

Please sign in to comment.