https://github.com/queeniecplusplus/ccna2020_staticrouting
靜態路由
https://github.com/queeniecplusplus/ccna2020_staticrouting
routing routing-protocols routing-tables
Last synced: 4 months ago
JSON representation
靜態路由
- Host: GitHub
- URL: https://github.com/queeniecplusplus/ccna2020_staticrouting
- Owner: QueenieCplusplus
- Created: 2020-09-17T01:16:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T02:14:31.000Z (almost 5 years ago)
- Last Synced: 2025-01-06T04:26:10.390Z (6 months ago)
- Topics: routing, routing-protocols, routing-tables
- Homepage: https://github.com/QueenieCplusplus/QuickGoThru#ccna-revsersion-in-2020
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CCNA2020_StaticRouting
靜態路由是一種路由方式,由網路管理員手動操作路由表,將路由項 routing entry 輸入至路由表中。
# 架構圖範例
IP 的位址與子遮罩都攸關流量控制(分流)。
Internet (WAN)
|
|
|
(LAN)
|
|
|
Router 1 ----------- SW ---------- workstations
192.168.1.254 (private ip)
NAT (public ip)
|
|
|
(Protected LAN)
|
|
|
Router 2
192.168.1.100 (public ip)
192.168.1.254 (default gW)
192.168.100.1 (private ip)
|
|
|
SW
|
|
|
Group of Workstations
| | |
My PC(admin) Mail Server Web Server
192.168.100.24 192.168.100.3 192.168.100.4
192.168.100.1 (default GW)# 發送回應和接收請求
receive request
Web Server <----------- Router 2 <----------- Router 1 <----------- Internet
192.168.100.4 192.168.100.1 192.168.1.254
192.168.100.1 192.168.1.254 NATsend response
Web Server -----------> Router 2 -----------> Router 1 -----------> Internet
192.168.100.4 192.168.100.1 192.168.1.254
192.168.100.1 192.168.1.254 NAT
# 靜態路由的設定
My PC (admin)
IP: 192.168.100.24
netmask: 255.255.255.0
gateway: 192.168.100.1
hostname: clientlinux.centos.PkateQ
DNS: 168.95.1.1 (等待確認)
Router 2 (受保護內網的路由器)
>
兩張 NICeth0: 192.168.1.100/24 (public ip)
eth1: 192.168.100.1/24 (private ip)Router 1 (連接外網與內網的路由器)
>
兩張 NIC對外的網卡 > 設定在 eth1 介面
而對內部的 > 設定在 eth0 介面 > 192.168.1.254# 實際 CMD
再次感謝造福系統與網路後輩芸芸眾生的鳥哥!
http://linux.vbird.org/linux_server/0230router.php#route_static