Skip to content

Commit

Permalink
Added connection between External-switch and Central-router via gatew…
Browse files Browse the repository at this point in the history
…ay IP
  • Loading branch information
iArcanic committed Jul 14, 2023
1 parent 373209d commit ece89d4
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 @@ -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
3 changes: 3 additions & 0 deletions External-switch.startup
Original file line number Diff line number Diff line change
@@ -1,3 +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
1 change: 1 addition & 0 deletions lab.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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
Expand Down

0 comments on commit ece89d4

Please sign in to comment.