【正文】
, 1 subnetsS [1/0] via , 1 subnetsC is directly connected, Loopback0 , 1 subnetsC is directly connected, FastEthernet0/ , 1 subnetsS [1/0] via R1ping source Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:Packet sent with a source address of !!!!!Success rate is 100 percent (5/5), roundtrip min/avg/max = 44/51/60 ms I和RIP II的區(qū)別R1(config)interface ethernet 0/0 R1(configif)no shutdown R1(configif)exit R1(config)interface ethernet 0/R1(configsubif)encapsulation dot1Q 12 R1(configsubif)ip address R1(configsubif)exit R1(config)interface loopback 0 R1(configif)ip address R1(configif)exit R2(config)interface ethernet 0/0 R2(configif)no shutdown R2(configif)exit R2(config)interface ethernet 0/R2(configsubif)encapsulation dot1Q 12 R2(configsubif)ip address R2(configsubif)no shutdown R2(configsubif)exit R2(config)interface loopback 0 R2(configif)ip address R2(configif)exit 檢查鏈路: R2 show protocols Global values: Internet Protocol routing is enabled Ethernet0/0 is up, line protocol is up Ethernet0/ is up, line protocol is up Internet address is Ethernet0/1 is administratively down, line protocol is down Loopback0 is up, line protocol is up Internet address is R2ping 檢查R2和R1 直連接口之間能否ping通 Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: .!!!! ,觀(guān)察兩臺(tái)路由器的路由表,體會(huì)RIPv1(有類(lèi)路由協(xié)議)的缺陷 R1(config)router rip R1(configrouter)network R1(configrouter)network R2(config)router rip R2(configrouter)network R2(configrouter)network 檢查和R1 和R2 的路由表: R1show ip route Gateway of last resort is not set C , Ethernet0/ R [120/1] via , 00:00:04, Ethernet0/ , 1 subnets C is directly connected, Loopback0 R2show ip route Gateway of last resort is not set C , Ethernet0/ , 1 subnets C is directly connected, Loopback0 R [120/1] via , 00:00:21, Ethernet0/檢查路由器的路由表,發(fā)現(xiàn)R2 和R1 樣的主類(lèi)網(wǎng)絡(luò)地址,而不能從對(duì)方獲取子網(wǎng)路由。這個(gè)是RIPv1的缺陷 ,檢查兩臺(tái)路由器的路由表 R1(config)router rip R1(configrouter)version 2 R1(configrouter)no autosummary R2(config)router rip R2(configrouter)version 2 R2(configrouter)no autosummary 刷新路由器的路由表并查看路由表: R2clear ip route * R2show ip route Gateway of last resort is not set C , Ethernet0/ , 1 subnets C is directly connected, Loopback0 , 1 subnets R [120/1] via , 00:00:00, Ethernet0/ R1clear ip route * R1show ip route Gateway of last resort is not set C , Ethernet0/ , 1 subnets R [120/1] via , 00:00:01, Ethernet0/ , 1 subnets C is directly connected, Loopback0 查看兩臺(tái)路由器的路由表,發(fā)現(xiàn)它們可以從對(duì)方獲取到子網(wǎng)信息。 R1(config)no router rip R1(config)router eigrp 100 R1(configrouter)network R1(configrouter)network R1(configrouter)no autosummary R2(config)no router rip R2(config)router eigrp 100 R2(configrouter)network R2(configrouter)network R2(configrouter)no autosummary 查看R1的EIGRP鄰居表,檢查R1和 R2是否正確建立EIGRP鄰居關(guān)系 R1show ip eigrp neighbors IPEIGRP neighbors for process 100 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 Et0/ 14 00:01:28 4 200 0 查看R1的EIGRP拓?fù)浔?R1show ip eigrp topology IPEIGRP Topology Table for AS(100)/ID() Codes: P Passive, A Active, U Update, Q Query, R Reply, r reply Status, s sia Status P , 1 successors, FD is 281600 via Connected, Ethernet0/ P , 1 successors, FD is 409600 via (409600/128256), Ethernet P , 1 successors, FD is 128256 via Connected, Loopback0 查看R1的路由表 R1show ip route Gateway of last resort is not set C , Ethernet0/ , 1 subnets D [90/409600] via , 00:01:34, Ethernet0/ , 1 subnets C is directly connected, Loopback0 檢查R1的loopback0 和R2 的loopback0口能否正常通信 R1ping source loopback 0 Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: Packet sent with a source address of !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 1/2/4 ms 配置OSPF 路由協(xié)議,實(shí)現(xiàn)網(wǎng)絡(luò)互聯(lián),區(qū)域號(hào)是0 R1(config)router ospf 1 R1(configrouter)network area 0 R1(configrouter)network area 0 R2(config)router ospf 1 R2(configrouter)network area 0 R2(configrouter)network area 0 查看R1的OSPF鄰居表,檢查R1和 R2是否正確建立OSPF鄰居關(guān)系 R1show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 1 FULL/BDR 00:00:38 Ethernet0/ R1show ip route Gateway of last resort is not set C , Ethernet0/ , 1 subnets O [110/11] via , 00:01:46, Ethernet0/ , 1 subnets C is directly connected, Loopback0 5 致謝本次畢業(yè)課題設(shè)計(jì)過(guò)程中,盧川英老師作為我的畢業(yè)設(shè)計(jì)指導(dǎo)老師,給了我許多幫助和指導(dǎo),在此我表示衷心感謝。同時(shí)我還要感謝在我學(xué)習(xí)期間給我極大關(guān)心和支持的各位老師以及關(guān)心我的同學(xué)和朋友。非常感謝你們這三年對(duì)我的教育和關(guān)懷。最后,我要深深感謝父母親屬多年來(lái)對(duì)我的關(guān)心、理解、教導(dǎo)及支持。他們教育我要踏踏實(shí)實(shí)地做人,勤奮努力地學(xué)習(xí)工作,這種樸實(shí)的思想一直促使我在人生道路上不斷追求進(jìn)步,奮發(fā)向上。他們是我能信心百倍地去克服前進(jìn)道路上的重重困難,不斷迎接新的挑戰(zhàn)。畢業(yè)論文的完成,同樣也意味著新的學(xué)習(xí)生活的開(kāi)始。6 參考文獻(xiàn)Microsoft 著 網(wǎng)絡(luò)安全基礎(chǔ)和網(wǎng)絡(luò)安全配置 高等教育出版社 Microsoft 著 網(wǎng)絡(luò)服務(wù)操作系統(tǒng)安裝配置和管理 高等教育出版社 (美)弗魯姆,(美)西瓦薩布拉瑪尼安,(美)弗拉姆. 組建Cisco 多層交換網(wǎng)絡(luò)[M]. 人民郵電出版社,2007陸魁軍. 基于Cisco路由器和交換機(jī)[M].清華大學(xué)出版社,200738 / 38