【正文】
k worknumber ? 選擇直接連接的網(wǎng)絡(luò) ? 必須是有效的網(wǎng)絡(luò) RIP 配 置 router rip work work RIP 配置舉例 router rip work router rip work work S2 E0 S3 S2 S3 A B C E0 查看 RIP信息 RouterAsh ip protocols Routing Protocol is rip Sending updates every 30 seconds, next due in 0 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is Ining update filter list for all interfaces is Redistributing: rip Default version control: send version 1, receive any version Interface Send Recv Keychain Ether0 1 1 2 Serial2 1 1 2 Routing for Networks: Routing Information Sources: Gateway Distance Last Update 120 00:00:10 Distance: (default is 120) S2 E0 S3 S2 S3 A B C E0 查看路由表 RouterAsh ip route Codes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area N1 OSPF NSSA external type 1, N2 OSPF NSSA external type 2 E1 OSPF external type 1, E2 OSPF external type 2, E EGP i ISIS, L1 ISIS level1, L2 ISIS level2, * candidate default U peruser static route, o ODR T traffic engineered route Gateway of last resort is not set , 1 subs C is directly connected, Ether0 , 2 subs R [120/1] via , 00:00:07, Serial2 C is directly connected, Serial2 R [120/2] via , 00:00:07, Serial2 S2 E0 S3 S2 S3 A B C E0 RIP的配置: ? 啟用 RIP: ? 通告網(wǎng)絡(luò),將 RIP路由進(jìn)程中,并標(biāo)識(shí)該網(wǎng)絡(luò)為直接相連的網(wǎng)絡(luò)。( 100大型網(wǎng)絡(luò)) ? RIP與 IGRP的工作機(jī)制,均是從所有配置接口上定期發(fā)出路由更新。 什么是區(qū)域 ? ? 區(qū)域拓樸從區(qū)域外是看不見的 ? 結(jié)果是路由業(yè)務(wù)的大量減少 Backbone Area 0 Area 3 Area 2 Area 1 IGRP的配置: ? 2501(config)router igrp 100 ? 2501(configrouter)work ? 2501(configrouter)exit ? 注意: ? 1)編號(hào)的有效范圍為 1- 65535,編號(hào)用確定一組區(qū)域編號(hào)相同的路由器和接口 ? 2)不同的編號(hào)的路由器不參與路由更新 IGRP的驗(yàn)證: ? 2501show run(查看配置文件) ? 2501show ip protocols( IP路由協(xié)議) ? 2501show ip route(IP路由表 ) ? 2501show ip route ? C connected, 直接相連的網(wǎng)絡(luò); ? S static, 靜態(tài)路由 ? I IGRP, ? R RIP, ? B BGP , ? D EIGRP, ? O OSPF, 路由配置修改: ? 1,路由刪除: ? 2501(config)no router igrp 100 ? 2501(config) ? 2, IP地址的刪除 ? 2501(config)int s0 ? 2501(configif)no ip add ? 2501(configif)no ip address ? 2501(configif) router igrp 100 work work IGRP Configuration Example router igrp 100 work router igrp 100 work work Autonomous System = 100 S2 E0 S3 S2 S3 A B C E0 Verifying the Routing Protocol—IGRP RouterAsh ip protocols Routing Protocol is igrp 100 Sending updates every 90 seconds, next due in 21 seconds Invalid after 270 seconds, hold down 280, flushed after 630 Outgoing update filter list for all interfaces is Ining update filter list for all interfaces is Default works flagged in outgoing updates Default works accepted from ining updates IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 IGRP maximum hopcount 100 IGRP maximum metric variance 1 Redistributing: igrp 100 Routing for Networks: Routing Information Sources: Gateway Distance Last Update 100 00:01:01 Distance: (default is 100) S2 E0 S3 S2 S3 A B C E0 Displaying the IP Routing Table RouterAsh ip route Codes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area N1 OSPF NSSA external type 1, N2 OSPF NSSA external type 2 E1 OSPF external type 1, E2 OSPF external type 2, E EGP i ISIS, L1 ISIS level1, L2 ISIS level2, * candidate default U peruser static route, o ODR T traffic engineered route Gateway of last resort is not set , 1 subs C is directly connected, Ether0 , 2 subs I [100/90956] via , 00:00:23, Serial2 C is directly connected, Serial2 I [100/91056] via , 00:00:23, Serial2 S2 E0 S3 S2 S3 A B C E0 ? SHOW IP ROUTE I [100/91056] via , 00:00:23, Serial2 ? I:表示由 IGRP所引入的路由, ? 100:表示 IGRP的管理距離; ? 91056:表示組合度量值;組合度量值越低,說明路由越好;組合度量是通過帶寬和線路延遲計(jì)算出來的。 ? 配置是否使用負(fù)載平衡: 2501(configrouter)trafficshare balanced|min ? 配置路徑間的 Metric相差多在時(shí),可以啟用負(fù)載平衡: variance metric metric OSPF/EIGRP配置 第十講 03級(jí)網(wǎng)絡(luò)班 04/16/05 OSPF協(xié)議概述 1 ? OSPF是一種鏈路狀態(tài)路由選擇協(xié)議。 ? 鏈路狀態(tài)信息通過鏈路狀態(tài)公告 (LSA)發(fā)布到網(wǎng)上的每臺(tái)路由器。 OSPF協(xié)議概述 2 ? 區(qū)域 (Area) ? 在 OSPF中使用區(qū)域來為自治系統(tǒng)分段,OSPF是一種層次化的路由選擇協(xié)議,區(qū)域 0是一個(gè) OSPF網(wǎng)絡(luò)中必須具有的區(qū)域,也稱為主干區(qū)域,其他所有區(qū)域要求通過區(qū)域 0互連到一起。 ? 支持 VLSM; ? 使用觸發(fā)的路由更新,快速反應(yīng)網(wǎng)絡(luò)變化,減小協(xié)議本身對(duì)網(wǎng)絡(luò)流量的占用。 河南濟(jì)源農(nóng)聯(lián)社改造建設(shè) 青島市地稅局應(yīng)用案例 市局骨干網(wǎng)A T M縣級(jí)地稅局縣級(jí)地稅局DC R 2 5 0 1 DC R 2 5 0 1DC R 2 5 0 1DC R 2 5 0 1 DC R 2 5 0 1網(wǎng)點(diǎn)網(wǎng)點(diǎn)網(wǎng)點(diǎn) 網(wǎng)點(diǎn)OSPF 域 1OSPF 域 15OSPF Area 0青島市地稅網(wǎng)絡(luò)拓?fù)鋱DFRFRConfiguring OSPF on Internal Routers Can Assign Network or Interface Address. Broadcast Network PointtoPoint Network E0 E0 S0 10. S1 A B C Output Omitted interface Ether0 ip address ! Output Omitted router ospf 1 work area 0 Output Omitted interface Ether0 ip address ! interface Serial0 ip address Output Omitted router ospf 50 work area 0 work area 0 Router show ip ospf interface Verifying OSPF Operation ? Displays area ID and adjacency information Router show ip protocols ? Verifies that OSPF is configured Router show ip route ? Displays all the routes learned by the router show ip ospf interface R2sh ip ospf int e0 Ether0 is up, line protocol is up Inter Address , Area 0 Process ID 1, Ro