【正文】
/2297856] via , 00:08:14, Serial1/1R2我們注意到在R2路由器上有一條指向s1/,這是EIGRP路由協(xié)議自動匯總的特性體現(xiàn)??梢允褂胣o autosummary命令關(guān)閉。如下:R1(config)R1(config)router eigrp 50R1(configrouter)no autosummary關(guān)于EIGRP的自動匯總特性。 R1(configrouter)exitR1(config)隨后在R2上觀察路由表的變化,如下顯示:R2show ip route eigrp , 3 subnets, 2 masksD , 00:07:26, Null0D [90/2297856] via , 00:05:09, Serial1/1 , 4 subnetsD [90/2297856] via , 00:02:31, Serial1/0D [90/2297856] via , 00:02:31, Serial1/0D [90/2297856] via , 00:02:31, Serial1/0D [90/2297856] via , 00:02:31, Serial1/0當(dāng)關(guān)閉了自動匯總后,R2可以看到明細路由。D [90/2297856] via , 00:05:09, Serial1/1D [90/2297856] via , 00:05:09, Serial1/1D [90/2297856] via , 00:05:09, Serial1/1D [90/2297856] via , 00:05:09, Serial1/1R2EIGRP也可以進行手工地址總結(jié)。手工地址總結(jié),可以有效的減少路由表的大小。.*.*的網(wǎng)絡(luò)顯示為四條具體路由,可以在R3上進行如下配置,減少路由通告條目。R3(config)interface serail 1/0R3(configif)ip summary eigrp 50 R3(configif)exit觀察R2路由器的路由表:R2show ip route eigrp ………D [90/2297856] via , 00:02:31, Serial1/0D [90/2297856] via , 00:02:31, Serial1/0D [90/2297856] via , 00:05:09, Serial1/1顯示為一條匯總路由。有效的減少路由表的大小。 ………在R2上使用通配符掩碼進行配置EIGRP:R2(config)no router eigrp 50R2(config)router eigrp 50R2(configrouter)network ,可以很好的控制,哪些接口加入到EIGRP的進程中工作。否則可能需要使用passiveinterface命令進行了設(shè)置。此處僅將s1/0接口加入到eigrp中,所以R2的s1/1接口,和R3的路由不會被轉(zhuǎn)發(fā)給R1.R2(configrouter)network R2(configrouter)exit在R2確認鄰居,此處僅發(fā)現(xiàn)與R1建立了鄰居關(guān)系。R2show ip eigrp neighbors IPEIGRP neighbors for process 50H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num0 Se1/0 12 00:04:57 1510 5000 0 51查看R1的路由表,進行確認所學(xué)習(xí)到的路由。R1show ip route eigrp , 2 subnets, 2 masksD , 00:02:55, Null0 , 5 subnets, 2 masksD , 00:02:55, Null0D [90/2297856] via , 00:00:06, Serial1/1由于采用通配符掩碼,進行選擇性的配置。無法學(xué)習(xí)到R3的直接路由。R11實驗完成。工大瑞普Cisco課程開發(fā)小組CCNP Lab ManualLab 2. Configuring Defaultnetwork for EIGRP實驗?zāi)康模赫莆胀ㄟ^ip defaultnetwork命令配置EIGRP默認網(wǎng)絡(luò)。實驗拓撲圖:實驗步驟及要求:配置各臺路由器的IP地址,并且使用Ping命令確認各路由器的直連口的互通性。配置R3路由器用于模擬外部網(wǎng)絡(luò),也可以把其假想為Internet網(wǎng)絡(luò),并且在R3上配置一條默認用于,以便路由來自于EIGRP內(nèi)部網(wǎng)絡(luò)的數(shù)據(jù)包。R3(config)R3(config)ip route 。R3(config)配置RR2和R5路由器的EIGRP路由協(xié)議,配置如下所示:R1(config)router eigrp 50R1(configrouter)network R1(configrouter)exitR5(config)router eigrp 50R5(configrouter)network R5(configrouter)exitR2(config)router eigrp 50R2(configrouter)network R2(configrouter)exit在R2上查看EIGRP的鄰居,確認EIGRP正常運行:R2show ip eigrp neighbors IPEIGRP neighbors for process 50H Address Interface Hold Uptime SRTT RTO Q Seq Type (sec) (ms) Cnt Num1 Et1/2 11 00:00:54 1 3000 0 2 0 Et1/0 12 00:00:54 1 3000 0 2 在R2上配置靜態(tài)默認路由,用于到達外部網(wǎng)絡(luò),配置如下:R2(config)ip route 。R2(config)R2ping 。Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), roundtrip min/avg/max = 4/43/92 msR2路由器R2作為企業(yè)的出口路由器,由于其配置了靜態(tài)路由,因此其可以直接訪問外部,但是內(nèi)部的R1和R5路由器由于缺少路由,因此無法訪問外網(wǎng)。下面顯示了R1路由器的路由表和其向外部發(fā)起ping的訪問結(jié)果:R1show ip route Gateway of last resort is not set , 2 subnetsD [90/284160] via , 00:06:40, FastEthernet0/1C is directly connected, FastEthernet0/1路由表中顯示出R1沒有外部網(wǎng)絡(luò)路由。R1R1ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:.....由于R1缺少到達外部網(wǎng)絡(luò)路由,因此R1無法訪問外部網(wǎng)絡(luò)。Success rate is 0 percent (0/5)R1R5show ip route Gateway of last resort is not set , 2 subnetsC is directly connected, Ethernet1/1D [90/307200] via , 00:12:15, Ethernet1/1R5R5ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:.....內(nèi)部路由器R5也遇到了相同的問題。Success rate is 0 percent (0/5)R5為了解決問題,只需要在R1和R5路由器上配置一條指向R2路由器的靜態(tài)默認路由即可,如下所示:R1(config)ip route R1(config)exitR1show ip route Gateway of last resort is to network , 2 subnetsD [90/284160] via , 00:09:19, FastEthernet0/1C is directly connected, FastEthernet0/1S* [1/0] via 。R1R1ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:!!!!!由于已經(jīng)此時配置了默認路由,所以此時R1可以訪問到外部網(wǎng)絡(luò)。Success rate is 100 percent (5/5), roundtrip min/avg/max = 48/71/92 msR1R5(config)ip route R5(config)exitR5R5show ip route Gateway of last resort is to network , 2 subnetsC is directly connected, Ethernet1/1D [90/307200] via , 00:13:57, Ethernet1/1S* [1/0] via R5R5ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), roundtrip min/avg/max = 32/53/64 msR5根據(jù)上面配置,其實只需要給內(nèi)部路由器配置默認路由指向出口路由器R2即可解決外部網(wǎng)絡(luò)無法訪問的問題。但是如果內(nèi)部網(wǎng)絡(luò)路由器數(shù)量較多時,采用手工配置靜態(tài)默認路由,則會顯得非常繁鎖。因此,建議采用默認網(wǎng)絡(luò)命令,讓R2路由器自動的向內(nèi)部通告默認路由。將R1和R5的靜態(tài)默認路由刪除后,查看R1和R5的路由表。如下所示:R1(config)no ip route R1(config)exitR1R1show ip route Gateway of last resort is not set , 2 subnetsD [90/284160] via , 00:19:02, FastEthernet0/1C is directly connected, FastEthernet0/1R1R1ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:.....Success rate is 0 percent (0/5)R1R5(config)no ip route R5(config)exitR5R5show ip route Gateway of last resort is not set , 2 subnetsC is directly connected, Ethernet1/1D [90/307200] via , 00:19:42, Ethernet1/1R5R5ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:.....Success rate is 0 percent (0/5)R5在R2上配置默認網(wǎng)絡(luò),配