-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added connection between Central-router and Internet via gateway IP
- Loading branch information
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |