Skip to content

Commit

Permalink
Added connection between Central-router and Internet via gateway IP
Browse files Browse the repository at this point in the history
  • Loading branch information
iArcanic committed Jul 13, 2023
1 parent 5def45f commit 689e3a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Central-router.startup
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# IP of Central-router
ip addr add 192.168.0.2/24 dev eth0
ip link set up dev eth0

# Gateway IP
ip route add default via 192.168.0.1 dev eth0
4 changes: 4 additions & 0 deletions Internet.startup
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# IP of Internet
ip addr add 80.64.157.254/16 dev eth0
ip link set up dev eth0

# Gateway IP for Central-router
ip addr add 192.168.0.1/24 dev eth1
ip link set up dev eth1
1 change: 1 addition & 0 deletions lab.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Internet[0]=Internet
Internet[1]=Central-router

Central-router[0]=Central-router

0 comments on commit 689e3a6

Please sign in to comment.