配置OSPF鄰居認(rèn)證_第1頁
配置OSPF鄰居認(rèn)證_第2頁
配置OSPF鄰居認(rèn)證_第3頁
配置OSPF鄰居認(rèn)證_第4頁
配置OSPF鄰居認(rèn)證_第5頁
已閱讀5頁,還剩78頁未讀, 繼續(xù)免費(fèi)閱讀

付費(fèi)下載

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1 6.9 配置 OSPF鄰居認(rèn)證 6.9.1操作內(nèi)容和環(huán)境 操作內(nèi)容:本節(jié)主要介紹在思科路由器上配置 OSPF鄰居認(rèn)證的命令和方法,通過學(xué)習(xí),了解并掌握多區(qū)域中 OSPF路由器之間鄰居認(rèn)證方式:明文認(rèn)證和 MD5算法密文認(rèn)證。 組網(wǎng)環(huán)境: Router3是思科 CISCO 3725路由器, IOS為 c3725-jk9s-mz.123-12a(版本為 12.3), Router1和 Router2是思科 CISCO 2621XM路由器, IOS為 c2600-adventerprisek9-mz.123-11.T3(版本為 12.3)。 PC機(jī) 3臺, DTE-DCE交叉電纜( V35電纜) 1對,交叉網(wǎng)線1根 (或一臺交換機(jī)和 2根直通網(wǎng)線 ), console配置電纜 3根。 Router1以太網(wǎng)口與 Router3的以太網(wǎng)口通過交叉網(wǎng)線相連或通過交換機(jī)相連,Router1串口與 Router3的串口通過 V35電纜相連。 (圖中的 Fa0/0代表快速以太網(wǎng) FastEtherent0/0端口 )。 2 圖 6-11 OSPF鄰居認(rèn)證配置拓?fù)浣Y(jié)構(gòu)圖 R o u t e r 1R o u t e r 2R o u t e r 3F a 0 / 0F a 0 / 0S 0 / 0 : 1 9 2 . 1 6 8 . 1 . 1 / 2 4S 0 / 0 : 1 9 2 . 1 6 8 . 1 . 2 / 2 4F a 0 / 0 : 1 0 . 1 0 . 1 . 1 / 2 4F a 0 / 0 : 1 0 . 1 0 . 1 . 2 / 2 4簡單口令驗(yàn)證M D 5 驗(yàn) 證區(qū) 域 0區(qū) 域 13 6.9.2 相關(guān)知識介紹 (基礎(chǔ)知識 ) OSPF協(xié)議支持基于接口的 OSPF報(bào)文認(rèn)證,認(rèn)證 OSPF相鄰路由器的身份,以保證 OSPF報(bào)文來自經(jīng)認(rèn)證的鄰居路由器,防止未授權(quán)的鄰居向自己傳遞包含虛假路由信息的的 OSPF報(bào)文 OSPF協(xié)議支持兩種認(rèn)證方式:在相鄰路由器之間明文認(rèn)證( Simple),或 MD5算法密文認(rèn)證。 采用明文認(rèn)證時,認(rèn)證密碼在鏈路上以明文方式傳送,用數(shù)據(jù)包嗅探器就可以輕易地捕獲 OSPF的分組,并解碼出沒有加密的密碼。 如果使用密文認(rèn)證,則路由器只在鏈路上傳送密碼的消息摘要或哈希值,而不傳送密碼本身,只有接收的路由器配置了正確的認(rèn)證密鑰,認(rèn)證才能通過 4 6.9.2 相關(guān)知識介紹 (注意要點(diǎn) ) 當(dāng)接口采用 MD5密文認(rèn)證時,除了設(shè)定認(rèn)證字(即認(rèn)證密碼),還要指定認(rèn)證字鍵值 key-id,每個 key-id是一個 1 255之間的整數(shù), 與 MD5認(rèn)證字配合使用。在一個接口上,后配置的認(rèn)證字與 key-id將覆蓋原有的認(rèn)證字與 key-id。 需要缺省情況下,接口不對報(bào)文進(jìn)行認(rèn)證。在配置對報(bào)文進(jìn)行認(rèn)證時,其明文認(rèn)證密碼的最大長度為 8個字符; MD5認(rèn)證密碼的最大長度為 16個字符; key-id為 MD5認(rèn)證方式時的認(rèn)證字鍵值,取值范圍為 1 255。 同一網(wǎng)段上的相鄰路由器的接口配置的報(bào)文認(rèn)證方式、認(rèn)證密碼以及 key-id都必須一致,否則認(rèn)證會失敗。 5 6.9.2 相關(guān)知識介紹 (認(rèn)證格式 ) (1 )相鄰路由器明文認(rèn)證的設(shè)置 第一步:在區(qū)域中進(jìn)入認(rèn)證的路由器上啟動區(qū)域明文認(rèn)證 。 啟動區(qū)域明文認(rèn)證的命令格式如下: area area_id authentication 第二步,在接口上輸入明文形式的密碼 在接口上配置明文認(rèn)證方式和密碼的命令格式如下: ip ospf authentication-key password 例:配置區(qū)域 0內(nèi)接口 Serial0/0 對 OSPF 報(bào)文采用簡單認(rèn)證,密碼為 abc123,命令如下: Router(config)#router ospf 1 Router(config-router)# area 0 authentication Router(config-router)#exit Router(config)#interface s0/0 Router(config-if)# ip ospf authentication-key abc123 6 6.9.2 相關(guān)知識介紹 (認(rèn)證格式 ) (2)相鄰路由器 MD5密文認(rèn)證的設(shè)置 第一步:在區(qū)域中進(jìn)入認(rèn)證的路由器上啟動 MD5區(qū)域認(rèn)證 。 啟動區(qū)域 MD5密文認(rèn)證的命令格式如下: area area_id authentication message-digest 在接口上輸入 MD5認(rèn)證字(或稱為認(rèn)證密鑰)及認(rèn)證字鍵值 在接口上配置 MD5認(rèn)證字及認(rèn)證字鍵值的命令格式如下: ip ospf message-digest-key keyid md5 key 例:配置區(qū)域 0內(nèi)接口 Serial0/0 采用 MD5密文認(rèn)證, MD5認(rèn)證密鑰為 bbbb, key-id 為 178,命令如下: Router(config)#router ospf 1 Router(config-router)# area 0 authentication message-digest Router(config-router)#exit Router(config)#interface s0/0 Router(config-if)# ip ospf message-digest-key 178 md5 bbbb 7 6.9.3 操作步驟 1. 按拓?fù)鋱D配置各個端口及認(rèn)證方式 (1) 配置 Router3的 FA0/0接口及接口認(rèn)證方式 Router3路由器型號為:思科 CISCO 3725,其命令如下 Routerenable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router3 Router3(config)#interface fa0/0 Router3(config-if)#ip address Router3(config-if)#no shutdown Router3(config-if)#ip ospf authentication-key aaaa Router3(config-if)#exit Router3(config)#router ospf 1 #進(jìn)入 ospf設(shè)置狀態(tài) Router3(config-router)#network 55 area 0 Router3(config-router)#area 0 authentication #在區(qū)域 0路由器 上啟動區(qū)域認(rèn)證 Router3(config-router)#end 8 6.9.3 操作步驟 1. 按拓?fù)鋱D配置各個端口及認(rèn)證方式 (2) Router1的 FA0/0、 S0/0接口配置及接口認(rèn)證方式: Router1路由器型號為:思科 CISCO2621XM,其命令如下 Routerenable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router1 Router1(config)#interface fa0/0 Router1(config-if)#ip address Router1(config-if)#no shutdown Router1(config-if)#ip ospf authentication-key aaaa Router1(config-if)#interface s0/0 Router1(config-if)#ip address Router1(config-if)#no shutdown Router1(config-if)#clockrate 64000 #連接該端口的電纜若是 DTE電纜,則不用配置 Router1(config-if)#ip ospf message-digest-key 178 md5 bbbb 9 Router1(config-if)#exit Router1(config)#router ospf 1 #進(jìn)入 ospf設(shè)置狀態(tài) Router1(config-router)#network 55 area 1 Router1(config-router)#network 55 area 0 Router1(config-router)#area 0 authentication #在區(qū)域 0路由器上啟動區(qū)域明文認(rèn)證 Router1(config-router)#area 1 authentication message-digest #在區(qū)域 1路由器上啟動 MD5區(qū)域認(rèn)證 Router1(config-router)#end Router1# 10 6.9.3 操作步驟 1. 按拓?fù)鋱D配置各個端口及認(rèn)證方式 (3) Router2的 S0/0接口的配置及認(rèn)證方式 Router2的型號為:思科 CISCO 2621XM路由器,配置命令如下: Routerenable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router2 Router2(config)#interface s0/0 Router2(config-if)#ip address Router2(config-if)#no shut Router2(config-if)#clockrate 64000 #連接該端口的電纜若是 DTE電纜,則不用設(shè)置 Router2(config-if)#ip ospf message-digest-key 178 md5 bbbb Router2(config-if)#exit Router2(config)#router ospf 1 Router2(config-router)#network 55 area 1 Router2(config-router)#area 1 authentication message-digest 11 6.9.3 操作步驟 2. 測試認(rèn)證方式的正確性 Router2#ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/32 ms 從結(jié)果看, Router2能 ping通 Router1,線路是連通的, MD5密文認(rèn)證通過。再測試其它網(wǎng)段。 Router2#ping #測試結(jié)果是連通的 Router2#ping #測試結(jié)果是連通的 通過 ping命令測試, Router2能 ping通 Router3,線路是連通的,明文認(rèn)證也通過,并且 OSPF協(xié)議工作正常。 12 6.9.3 操作步驟 3. 查看路由信息 , 確定其認(rèn)證方式 (1)查看 Router2和 Router3的路由表 , 測試認(rèn)證方式的正確性 Router2#show ip route Gateway of last resort is not set /24 is subnetted, 1 subnets O IA 110/65 via , 00:11:36, Serial0/0 C /24 is directly connected, Serial0/0 Router3#show ip route Gateway of last resort is not set /24 is subnetted, 1 subnets C is directly connected, FastEthernet0/0 O IA /24 110/65 via , 00:13:08, FastEthernet0/0 通過顯示的路由表內(nèi)容可知, Router2和 Router3通過 OSPF協(xié)議,獲得了非直連網(wǎng)段路由信息,這說明鏈路是連通的 ,鄰居認(rèn)證通過。 13 6.9.3 操作步驟 3. 查看路由信息 , 確定其認(rèn)證方式 (1)查看在 Router1上查看端口信息 , 測試認(rèn)證方式的正確性 Router1#show ip ospf interface FastEthernet0/0 is up, line protocol is up Internet Address /24, Area 0 Process ID 1, Router ID , Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) , Interface address Backup Designated router (ID) , Interface address Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:02 Supports Link-local Signaling (LLS) Index 1/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 Last flood scan time is 0 msec, maximum is 0 msec 14 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor (Backup Designated Router) Suppress hello for 0 neighbor(s) Simple password authentication enabled Serial0/0 is up, line protocol is up Internet Address /24, Area 1 Process ID 1, Router ID , Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:07 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 15 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor Suppress hello for 0 neighbor(s) Message digest authentication enabled Youngest key id is 178 由 Router1上的端口信息可知:在 FastEthernet0/0上明文認(rèn)證方式已啟動,在 Serial0/0上 MD5密文認(rèn)證方式已啟動,其最新設(shè)置的認(rèn)證字 key-id號為 178,這與我們配置相符。 在路由器之間進(jìn)行鄰居認(rèn)證時,認(rèn)證雙方的認(rèn)證方式與密碼必須一致,否則,不能通過認(rèn)證。下面我們修改認(rèn)證一方的認(rèn)證密碼,使其與對方不一致,再測試鄰居認(rèn)證情況。 16 6.9.3 操作步驟 4. 修改 S2端口的 OSPF認(rèn)證密碼: (1)修改 S0/0端口的 OSPF認(rèn)證密碼,使其與對端不一致 Router2#config terminal Router2(config)#interface s0/0 Router2(config-if)#no ip ospf message-digest-key 178 md5 bbbb Router2(config-if)#ip ospf message-digest-key 123 md5 abcd (2)用 ping命令測試連通性 Router2#ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds: . Success rate is 0 percent (0/5)(不通) 在 Router2上執(zhí)行 ping ,則后發(fā)現(xiàn)此時鏈路不通,說明Router2與 Router1之間的 MD5密文認(rèn)證方式?jīng)]有通過。 17 6.9.3 操作步驟 4. 修改 S2端口的 OSPF認(rèn)證密碼: (3)查看路由表信息 Router2#show ip route Gateway of last resort is not set C /24 is directly connected, Serial0/0 從路由表信息可知,由于鄰居之間認(rèn)證失敗,所以鏈路不通, OSPF協(xié)議無法正確執(zhí)行,路由表中不含通過 OSPF獲得的到遠(yuǎn)端網(wǎng)絡(luò)的路由信息。 由此說明在鄰居之間進(jìn)行身份認(rèn)證時,必須設(shè)置統(tǒng)一的認(rèn)證密碼。 18 6.9.3 操作步驟 4. 修改 S2端口的 OSPF認(rèn)證密碼: (4)測試 Router1與 Router2 Router2#ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/28 ms 這時 Router2與 Router1之間的鏈路還是激活的, Router2能 ping通Router1。但是 Router2與 Router1之間不構(gòu)成鄰居關(guān)系,因?yàn)椴荒芑ハ嗤ㄟ^認(rèn)證,下面的命令能證實(shí)這一點(diǎn)。 Router2#show ip ospf neighbor (空白行) 顯示空白,說明 Router2沒有鄰居。 19 6.9.3 操作步驟 5. 密碼改回: Router2#config terminal Router2(config)#interface s0/0 Router2(config-if)#no ip ospf message-digest-key 123 md5 abcd Router2(config-if)#ip ospf message-digest-key 178 md5 bbbb 6.小結(jié) OSPF 支持在相鄰路由器之間進(jìn)行明文認(rèn)證( Simple)或 MD5密文認(rèn)證,同一網(wǎng)段上的路由器接口配置的報(bào)文認(rèn)證方式、認(rèn)證密碼、 key-id(如果有的話)必須一致。 并非不同的區(qū)域才可配置不同的認(rèn)證方式,同一區(qū)域的不同網(wǎng)段可用不同的認(rèn)證方式,因此,把前面配置中 Router1和 Router2之間的鏈路由區(qū)域 1改成區(qū)域 0也是可以的。 20 附:各路由器最終配置信息 : Router1#show run Building configuration. Current configuration : 1092 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router1 ! boot-start-marker boot-end-marker ! no network-clock-participate slot 1 no network-clock-participate wic 0 ip subnet-zero ! 21 ip cef ip ips po max-events 100 no aaa new-model no ftp-server write-enable voice-card 1 ! interface FastEthernet0/0 ip address ip ospf authentication-key aaaa duplex auto speed auto ! interface Serial0/0 ip address ip ospf message-digest-key 178 md5 bbbb clockrate 64000 ! 22 interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown ! router ospf 1 log-adjacency-changes area 0 authentication area 1 authentication message-digest network 55 area 0 network 55 area 1 ! 23 ip classless ! no ip http server no ip http secure-server ! control-plane ! line con 0 line aux 0 line vty 0 4 ! end 24 Router2#show run hostname Router2 interface Serial0/0 ip address ip ospf message-digest-key 178 md5 bbbb ! router ospf 1 log-adjacency-changes area 1 authentication message-digest network 55 area 1 25 Router3#show run hostname Router3 interface FastEthernet0/0 ip address ip ospf authentication-key aaaa ! router ospf 1 log-adjacency-changes area 0 authentication network 55 area 0 26 6.10 配置 OSPF路由聚合 6.10.1操作內(nèi)容和環(huán)境 操作內(nèi)容:本節(jié)主要介紹在思科路由器上配置 OSPF網(wǎng)段聚合的方法,通過學(xué)習(xí),了解多區(qū)域中 OSPF路由聚合的意義,掌握把多條 AS外部路由聚合成一條匯總路由的方法,通過路由聚合,可以減少路由器上路由信息的數(shù)量,改善網(wǎng)絡(luò)性能 。 組網(wǎng)環(huán)境: Router1是思科 CISCO 3725路由器, IOS為 c3725-jk9s-mz.123-12a(版本為 12.3), Router2和 Router3是思科 CISCO 2621XM路由器, IOS為 c2600-adventerprisek9-mz.123-11.T3(版本為 12.3)。 PC機(jī) 3臺,交叉網(wǎng)線 3根, DTE-DCE交叉電纜( V35電纜)2對, console配置電纜 3根。路由器以太網(wǎng)端口與 PC機(jī)相連。圖中的Fa0/0代表快速以太網(wǎng) FastEtherent0/0端口。 27 圖 6-12 OSPF網(wǎng)段聚合配置拓?fù)浣Y(jié)構(gòu)圖 L o o p 04 0 . 1 . 3 . 1 / 2 43 0 . 1 . 1 . 2 / 2 42 0 . 1 . 1 . 2 / 2 42 0 . 1 . 1 . 1 / 2 4P C - AP C - B P C - CR o u t e r 1 R o u t e r 2F a 0 / 0 : 1 0 . 1 . 1 . 1 / 2 43 0 . 1 . 1 . 1 / 2 4F a 0 / 1S 1 / 0S 0 / 0S 0 / 1S 0 / 0區(qū) 域 0區(qū) 域 1R o u t e r 3F a 0 / 0 : 4 0 . 1 . 1 . 1 / 2 44 0 . 1 . 2 . 1 / 2 428 6.10.2 相關(guān)知識介紹 (基礎(chǔ)知識 ) 當(dāng)路由信息在 ABR(或 ASBR)中進(jìn)行處理時,如果在 ABR(或ASBR)上配置了路由聚合, ABR(或 ASBR)只發(fā)送一條聚合路由,該聚合路由包含了屬于該網(wǎng)段的多個子網(wǎng)段。一個區(qū)域可多次配置路由聚合。 “ area range”命令的用法。該命令只在 ABR上使用, ABR檢查自身路由表,對每個目的網(wǎng)絡(luò)地址的類型是網(wǎng)絡(luò)(而不是路由器)的路由項(xiàng),以網(wǎng)段為單位生成網(wǎng)絡(luò)匯總 LSA( 3類 LSA),再向該LSA的目的網(wǎng)絡(luò)所在區(qū)域外的其它區(qū)域發(fā)送該 3類 LSA 。 缺省情況下, OSPF不進(jìn)行區(qū)域內(nèi)路由聚合。分配非骨干區(qū)域的網(wǎng)段時請盡量連續(xù)可聚合,否則以后網(wǎng)絡(luò)擴(kuò)容時,維護(hù)難度會加大很多。 29 6.10.2 相關(guān)知識介紹 (認(rèn)證格式 ) 配置 OSPF路由聚合命令如下 ; summary-address ip_address mask_address no summary-address ip_address mask_address 其中: ip-address 和 mask_address 為網(wǎng)絡(luò) IP 地址和掩碼,點(diǎn)分十進(jìn)制格式。 例: ASBR用匯總路由 /16代替被覆蓋的 AS外部網(wǎng)段/24、 /24、 /24,并以 5類 LSA的形式把 總路由 /16傳播到整個 AS內(nèi)。 Router(config-router)#summary-address 區(qū)域內(nèi)路由匯總,即把多條路由合并成一條。 area area-id range summary-address mask no area area-id range summary-address mask 30 6.10.3 操作步驟 1. 按拓?fù)鋱D配置各個端口及認(rèn)證方式 (1) 配置 Router1的 Fa0/0、 S1/0口: Router1路由器型號為:思科 CISCO 3725路由器,其命令如下 Routerenable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router1 Router1(config)#interface fa0/0 Router1(config-if)#ip address Router1(config-if)#no shutdown Router1(config-if)#interface s1/0 Router1(config-if)#ip address Router1(config-if)#no shutdown Router1(config-if)#clockrate 64000 #連接該端口的電纜若是 DTE電纜,則不用配置 Router1(config-if)#exit Router1(config)#router ospf 1 Router1(config-router)#network 55 area 0 Router1(config-router)#network 55 area 0 31 6.10.3 操作步驟 1. 按拓?fù)鋱D配置各個端口及認(rèn)證方式 (2) Router2的 S0/0、 S0/1口配置 路由器 Router2的型號為:思科 CISCO 2621X路由器,該路由器是邊 界路由器,注意其所屬 OSPF區(qū)域的設(shè)置。其命令如下: Routerenable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router2 Router2(config)#interface s0/0 Router2(config-if)#ip address Router2(config-if)#no shutdown Router2(config-if)#clockrate 64000 Router2(config-if)#interface s0/1 Router2(config-if)#ip address Router2(config-if)#no shutdown Router2(config-if)#clockrate 64000 Router2(config-if)#exit Router2(config)#router ospf 1 Router2(config-router)#network 55 area 1 Router2(config-router)#network 55 area 0 32 6.10.3 操作步驟 1. 按拓?fù)鋱D配置各個端口及認(rèn)證方式 (3) Router3的接口配置 路由器 Router3型號為:思科 CISCO2621X型路由器,其命令如下: Routerenable Router#config terminal Router(config)#hostname Router3 Router3(config)#interface fa0/0 Router3(config-if)#ip address Router3(config-if)#no shutdown Router3(config-if)#interface fa0/1 Router3(config-if)#ip address Router3(config-if)#no shutdown Router3(config-if)#interface s0/0 Router3(config-if)#ip address Router3(config-if)#no shutdown Router3(config-if)#clockrate 64000 Router3(config-if)#interface Loopback0 Router3(config-if)#ip address Router3(config-if)#exit Router3(config)#router ospf 1 Router3(config-router)#network 55 area 1 33 6.10.3 操作步驟 2. 測試端口連通性 Router1#ping #測試結(jié)果是連通的 Router1#ping #測試結(jié)果是連通的 Router1#ping #測試結(jié)果是連通的 Router1#ping #測試結(jié)果不通,因?yàn)?Router3在 /24上沒有啟用 OSPF協(xié)議,到網(wǎng)段 /24的路由信息 沒有在 AS內(nèi)傳播 Router1#ping #測試結(jié)果不通,原因同上 34 6.10.3 操作步驟 3. 查看路由信息 , 確定其認(rèn)證方式 (1)查看 Router1的路由表信息 Router1#show ip route Gateway of last resort is not set /24 is subnetted, 1 subnets C is directly connected, Serial1/0 /24 is subnetted, 1 subnets C is directly connected, FastEthernet0/0 /24 is subnetted, 1 subnets O IA 110/128 via , 00:06:18, Serial1/0 從上面顯示的信息可知,對于 Router1來說,通過 OSPF協(xié)議學(xué)習(xí)獲得了 1條區(qū)域外部路由: ,但不包括到 /24、/24、 /24的路由。 35 6.10.3 操作步驟 3. 查看路由信息 , 確定其認(rèn)證方式 (1)查看 Router1的路由表信息 Router1# show ip ospf database OSPF Router with ID () (Process ID 1) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link count 1394 0x80000003 0x0021E7 3 659 0x80000003 0x00D841 2 Summary Net Link States (Area 0) Link ID ADV Router Age Seq# Checksum 655 0x80000001 0x004972 Router1的 OSPF數(shù)據(jù)庫顯示, Router1收到了 1條區(qū)域外部的網(wǎng)絡(luò)匯總 LSA( 3類 LSA),它們是由 ABR( Router2)傳入的。因?yàn)镽outer3在 /24、 /24、 /24上沒有啟用 OSPF協(xié)議,這些區(qū)域 1中的網(wǎng)絡(luò)地址沒有傳入?yún)^(qū)域 0。 36 6.10.3 操作步驟 3. 查看路由信息 , 確定其認(rèn)證方式 (2) 查看 Router2的 OSPF路由信息 Router2#show ip route Gateway of last resort is not set /24 is subnetted, 1 subnets C is directly connected, Serial0/1 /24 is subnetted, 1 subnets O 110/65 via , 02:19:46, Serial0/1 /24 is subnetted, 1 subnets C is directly connected, Serial0/0 從上面顯示的信息可知, Router2通過 OSPF協(xié)議獲得了 1條路由:。 37 6.10.3 操作步驟 3. 查看路由信息 , 確定其認(rèn)證方式 (2) 查看 Router2的 OSPF路由信息 Router2#show ip ospf database OSPF Router with ID () (Process ID 1) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link count 1414 0x80000007 0x0019EB 3 437 0x80000007 0x00D045 2 Summary Net Link States (Area 0) Link ID ADV Router Age Seq# Checksum 437 0x80000005 0x004176 Router Link States (Area 1) Link ID ADV Router Age Seq# Checksum Link count 437 0x80000007 0x008E5E 2 355 0x80000006 0x00429F 2 38 Summary Net Link States (Area 1) Link ID ADV Router Age Seq# Ch

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論