{"id":19317848,"url":"https://github.com/queeniecplusplus/ccna2020_staticrouting","last_synced_at":"2026-02-27T20:34:16.325Z","repository":{"id":104588137,"uuid":"296185043","full_name":"QueenieCplusplus/CCNA2020_StaticRouting","owner":"QueenieCplusplus","description":"靜態路由","archived":false,"fork":false,"pushed_at":"2020-09-17T02:14:31.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T04:45:03.061Z","etag":null,"topics":["routing","routing-protocols","routing-tables"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru#ccna-revsersion-in-2020","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QueenieCplusplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-17T01:16:17.000Z","updated_at":"2020-09-17T02:14:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"4493d59e-04da-4a62-9170-0bc71f416179","html_url":"https://github.com/QueenieCplusplus/CCNA2020_StaticRouting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QueenieCplusplus/CCNA2020_StaticRouting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_StaticRouting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_StaticRouting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_StaticRouting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_StaticRouting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/CCNA2020_StaticRouting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_StaticRouting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29912269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["routing","routing-protocols","routing-tables"],"created_at":"2024-11-10T01:16:26.529Z","updated_at":"2026-02-27T20:34:16.293Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CCNA2020_StaticRouting\n靜態路由\n\n是一種路由方式，由網路管理員手動操作路由表，將路由項 routing entry 輸入至路由表中。\n\n# 架構圖範例\n\nIP 的位址與子遮罩都攸關流量控制（分流）。\n\n\n\n                         Internet （WAN）\n                         \n                             |\n                             |\n                             |\n                           \n                           (LAN)\n                           \n                             |\n                             |\n                             |\n                           \n                             \n                           Router 1   -----------      SW   ----------   workstations\n                       192.168.1.254 (private ip)\n                        NAT (public ip)\n                            \n                              \n                             |\n                             |\n                             |\n                             \n                             \n                         (Protected LAN)\n                           \n                             \n                             |\n                             |\n                             |\n                             \n                           Router 2\n                       192.168.1.100 (public ip)\n                       192.168.1.254 (default gW)\n                       192.168.100.1 (private ip)\n                       \n                       \n                             |\n                             |\n                             |\n                             \n                             \n                            SW\n                       \n                            \n                             |\n                             |\n                             |\n                             \n                    Group of Workstations\n                    \n                  |              |              |\n               My PC(admin)   Mail Server    Web Server\n              \n        192.168.100.24    192.168.100.3   192.168.100.4             \n                             \n                     192.168.100.1 (default GW)\n\n# 發送回應和接收請求\n\n\nreceive request\n\n           Web Server   \u003c-----------   Router 2    \u003c-----------   Router 1  \u003c-----------  Internet\n          192.168.100.4               192.168.100.1              192.168.1.254\n          192.168.100.1               192.168.1.254                  NAT\n\n\nsend response\n\n            Web Server  -----------\u003e   Router 2    -----------\u003e   Router 1  -----------\u003e  Internet\n          192.168.100.4               192.168.100.1              192.168.1.254\n          192.168.100.1               192.168.1.254                  NAT\n           \n\n# 靜態路由的設定\n\n\nMy PC (admin)\n\n    IP: 192.168.100.24\n    netmask: 255.255.255.0\n    gateway: 192.168.100.1\n    hostname: clientlinux.centos.PkateQ\n    DNS: 168.95.1.1 (等待確認)\n    \n    \nRouter 2 (受保護內網的路由器)\n   \u003e\n兩張 NIC\n\n    eth0: 192.168.1.100/24 (public ip)\n    eth1: 192.168.100.1/24 (private ip)\n\n\nRouter 1 (連接外網與內網的路由器)\n   \u003e\n兩張 NIC\n\n    對外的網卡 \u003e 設定在 eth1 介面\n    而對內部的 \u003e 設定在 eth0 介面 \u003e 192.168.1.254 \n\n\n# 實際 CMD\n\n再次感謝造福系統與網路後輩芸芸眾生的鳥哥！\n![bird](https://raw.githubusercontent.com/QueenieCplusplus/CCNA2020_StaticRouting/master/鳥哥.png)\n\nhttp://linux.vbird.org/linux_server/0230router.php#route_static\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fccna2020_staticrouting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fccna2020_staticrouting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fccna2020_staticrouting/lists"}