【正文】
動(dòng)態(tài)路由和靜態(tài)路由 SO 靜態(tài)路由( Static Routes) B Network A Configure unidirectional static routes to and from a stub work to allow munications to occur. Stub Network Transit Network Stub Network ip route SO 靜態(tài)路由舉例 B Network A This is a unidirectional route. You must have a route configured in the opposite direction. Stub Network ip route 缺省路由 SO B Network A B This route allows the stub work to reach all known works beyond router A. 什么是路由協(xié)議 路由協(xié)議用于路由器之間交換信息,這些信息用來決定最佳路徑,維護(hù)路由表 Network Protocol Destination Network Connected RIP IGRP Exit Interface E0 S0 S1 Routed Protocol: IP Routing protocol: RIP, IGRP E0 S0 Autonomous System 100 Autonomous System 200 IGPs: RIP, OSPF,IGRP EGPs: BGP 內(nèi)部 /外部網(wǎng)關(guān)路由協(xié)議 ( IGP/EGP) – An autonomous system is a collection of works under a mon administrative domain – IGPs operate within an autonomous system – EGPs connect different autonomous systems 距離向量 /鏈路狀態(tài)路由協(xié)議 Distance Vector Hybrid Routing Link State C B A D C D B A 距離向量路由協(xié)議 ?Pass periodic copies of routing table to neighbor routers and accumulate distance vectors C D B A C B A D Routing Table Routing Table Routing Table Routing Table Distance— How far Vector— In which direction ?Routers discover the best path to destinations from each neighbor A B C E0 S0 S0 S1 S0 E0 Routing Table 0 0 S0 S1 Routing Table S0 0 E0 0 Routing Table E0 S0 0 0 距離向量 — 路由發(fā)現(xiàn)過程 ?Routers discover the best path to destinations from each neighbor A B C E0 S0 S0 S1 S0 E0 Routing Table Routing Table 0 0 1 1 S0 S1 S1 S0 Routing Table S0 0 E0 0 S0 1 E0 S0 S0 1 0 0 距離向量 — 路由發(fā)現(xiàn)過程 距離向量 — 路由發(fā)現(xiàn)過程 ?Routers discover the best path to destinations from each neighbor A B C E0 S0 S0 S1 S0 E0 Routing Table Routing Table 0 0 1 1 S0 S1 S1 S0 Rou