Skip to content

Commit

Permalink
Added connection between DMZ-switch and Central-router via gateway IP
Browse files Browse the repository at this point in the history
  • Loading branch information
iArcanic committed Jul 13, 2023
1 parent ed00afb commit ea4bfba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Central-router.startup
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
ip addr add 192.168.0.2/24 dev eth0
ip link set up dev eth0

# Gateway IP
# Gateway IP to Internet
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
3 changes: 3 additions & 0 deletions DMZ-switch.startup
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# IP of DMZ-switch
ip addr add 10.0.1.2/24 dev eth0
ip link set up dev eth0

# Gateway IP to Central-router
ip route add default via 10.0.1.1 dev eth0
1 change: 1 addition & 0 deletions lab.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ Internet[0]=Internet
Internet[1]=Central-router

Central-router[0]=Central-router
Central-router[1]=DMZ

DMZ-switch[0]=DMZ

0 comments on commit ea4bfba

Please sign in to comment.