{"id":19317873,"url":"https://github.com/queeniecplusplus/ccna2020_dynamicrouting","last_synced_at":"2026-01-26T20:51:59.425Z","repository":{"id":104588110,"uuid":"296208049","full_name":"QueenieCplusplus/CCNA2020_DynamicRouting","owner":"QueenieCplusplus","description":"動態路由，由軟體輸入 route entry","archived":false,"fork":false,"pushed_at":"2020-09-17T04:07:53.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T04:13:35.634Z","etag":null,"topics":["routes","routing","routing-algorithm"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru/blob/master/README.md#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-17T03:23:04.000Z","updated_at":"2020-09-17T04:07:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"495785c2-7757-4e13-bd75-99ae5ecf15db","html_url":"https://github.com/QueenieCplusplus/CCNA2020_DynamicRouting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QueenieCplusplus/CCNA2020_DynamicRouting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_DynamicRouting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_DynamicRouting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_DynamicRouting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_DynamicRouting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/CCNA2020_DynamicRouting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FCCNA2020_DynamicRouting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28787523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"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":["routes","routing","routing-algorithm"],"created_at":"2024-11-10T01:16:29.472Z","updated_at":"2026-01-26T20:51:59.411Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CCNA2020_DynamicRouting\n動態路由，由軟體輸入 route entry，倘若整個網域內有主機 ip 位址異動，網管人員不必手動更新，動態路由規則功能會幫助我們自動更新。\n\n\n# 架構圖範例\n\n\n                                 Internet (WAN)\n                                 \n                                       |\n                                       |\n                                       |\n                                       \n                                     (LAN)\n                                     \n                                       |\n                                       |\n                                       |\n                                     \n                                    Router 1\n                                    \n                                    NIC1: NAT (public ip)\n                                    NIC2: 192.168.0.254 (private ip)\n                                    \n                                      /                    \\\n                                     /                      \\\n                                    /                        \\\n                                    \n                               (Protecte LAN)                (Protecte LAN)\n                        \n                             Router 2                          Router 3\n                       NIC1:192.168.0.2/24    --- SW 3 ---   NIC1:192.168.0.3/24\n                       NIC2:192.168.5.254/24                 NIC2:192.168.10.254/24 \n                       GW:192.168.0.254                      GW:192.168.0.254\n                        \n                               /                                  \\\n                              /                                    \\\n                             /                                      \\\n                        Swithcher 1                             Swithcher 2\n                            |                                        |\n                            |                                        |\n                            |                                        |\n\n                          PC...                                     PC...\n                        192.168.5.24                              192.168.10.24\n                     GW:192.168.5.254                           GW:192.168.10.254 \n                     \n# 設定路由服務的軟體套件\n\n下載完套件，在環境中安裝套件後，\n軟體中德 daemon 功能會更新核心的路由規則，RIP daemon 則是在向附近的其他 Router 溝通協調路由規則的傳送與否。\n\n當得到回應，會自動在路由表建構出新的 Route Entry!\n\n# 動態路由的設定\n\nRouter 3\n\n    1.在此路由器上啟動軟體。\n    2.給予路由器主機名稱。（DNS）\n    3.配置密碼。\n    4.使密碼生效。\n    5.將軟體得到的資訊儲存到log檔中。\n    6.下指令 netsate 檢視本機介面狀態。\n    7.下軟體內建指令 sh ip route 檢視路由規則。\n    \nterminal in R3\n\n    linux.R3\u003e show ip route\n    Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,\n           I - ISIS, B - BGP, \u003e - selected route, * - FIB route\n           \nGW\n\n           K\u003e* 0.0.0.0/0 via 192.168.0.254, eth0  \n           \nLAN\n\n           C\u003e* 192.168.0.0/24 is directly connected, eth0\n    \n    \nProtected LAN\n\n           C\u003e* 192.168.10.0/24 is directly connected, eth1\n   \n\n\n# 手動增加額外的靜態路由\n\nterminal in R3\n\n    linux.R3\u003e show ip route\n    Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,\n           I - ISIS, B - BGP, \u003e - selected route, * - FIB route\n\n    S\u003e* 10.0.0.0/24 [1/0] is directly connected, eth0\n    C\u003e* 192.168.0.0/24 is directly connected, eth0\n\n# 手動設定動態路由的前置作業\n\nterminal in R3\n\n    1.在此路由器上啟動軟體 ripd。\n    2.給予路由器主機名稱。（DNS）\n    3.配置密碼。\n    4.使密碼生效。\n    5.下指令 route rip 藉此啟動此路由功能。\n    6.下指令 network [ip/prefix] 藉此對區域網域進行監聽工作。\n    7.下指令 network [if] 針對此介面進行監聽。\n    8.重複 6-7 對個別區域網路進行 rip 路由規則的設定。\n    9. logstdout 直接輸出。\n\n# R2 的設定\n\n與 R3 相同，除了 DN 和 IP/prefix 不同以外。\n\n\n# 對此架構中的 R2 、R3 下展示結果的指令\n\n     #telnet localhost [port]\n     #sh ip route\n     \n     \u003e\u003e\u003e\n     \n     Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,\n       B - BGP, \u003e - selected route, * - FIB route\n\n      K\u003e* 0.0.0.0/0 via 192.168.0.254, eth0\n      C\u003e* 127.0.0.0/8 is directly connected, lo\n      C\u003e* 192.168.0.0/24 is directly connected, eth0\n      C\u003e* 192.168.10.0/24 is directly connected, eth1\n  \nRIP \n\n      R\u003e* 192.168.5.0/24 [120/2] via 192.168.0.200, eth0, 00:06:48 \u003c--- 出現 RIP 規則的更新結果。\n     \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fccna2020_dynamicrouting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fccna2020_dynamicrouting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fccna2020_dynamicrouting/lists"}