CCNP-1 EIGRP基本配置(BSCI)
生活随笔
收集整理的這篇文章主要介紹了
CCNP-1 EIGRP基本配置(BSCI)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
CCNP1-EIGRP基本配置
實驗拓撲:實驗要求:1-R1與R2起EIGRP; 2-在R1上起Loopback,配置連續(xù)IP,觀察EIGRP自動匯總,然后取消自動匯總,配置手動匯總,觀察與自動匯總的區(qū)別; 3-在R2上配置到R3上的靜態(tài)路由,并使用缺省路由通告給R1,觀察R1與R2的路由表變化; 試驗?zāi)康?#xff1a;掌握EIGRP的基本配置。
試驗配置: R1: R1(config)#int s1/0 R1(config-if)#ip add?10.1.1.1 255.255.255.0 R1(config-if)#no shu R1(config-if)#exit R1(config)#int loop0 R1(config-if)#ip add 199.99.1.1 255.255.255.0 R1(config-if)#exit R1(config)#router eigrp 100 R1(config-router)#net?10.0.0.0 R1(config-router)#net 199.99.1.0 R2: R2(config)#int s1/0 R2(config-if)#ip add?10.1.1.2 255.255.255.0 R2(config-if)#clock rate 64000 R2(config-if)#no shu R2(config-if)#exit R2(config)#int s1/1 R2(config-if)#ip add 172.16.0.2 255.255.255.0 R2(config-if)#clock rate 64000 R2(config-if)#no shu R2(config-if)#exit R2(config)#router eigrp 100 R2(config-router)#net?10.0.0.0 R2(config-router)#net 172.16.0.0 在R1與R2上show ip route察看路由表: R1#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set D????172.16.0.0/16 [90/2681856] via 10.1.1.2, 00:00:07, Serial1/0 C????199.99.1.0/24 is directly connected, Loopback0 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C???????10.1.1.0/24 is directly connected, Serial1/0 D???????10.0.0.0/8 is a summary, 00:00:12, Null0 R2#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C???????172.16.0.0/24 is directly connected, Serial1/1 D???????172.16.0.0/16 is a summary, 00:00:03, Null0 D????199.99.1.0/24 [90/2297856] via 10.1.1.1, 00:00:05, Serial1/0 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C???????10.1.1.0/24 is directly connected, Serial1/0 D???????10.0.0.0/8 is a summary, 00:00:03, Null0 ? 可以看到收到了EIGRP的路由,OK,下面我們來比較自動匯總和手動匯總的區(qū)別:在R1上起Loopback接口測試: R1(config)#int loop1 R1(config-if)#ip add 144.44.0.1 255.255.255.0 R1(config-if)#int loop2 R1(config-if)#ip add 144.44.1.1 255.255.255.0 R1(config-if)#int loop3 R1(config-if)#ip add 144.44.2.1 255.255.255.0 R1(config-if)#int loop4 R1(config-if)#ip add 144.44.3.1 255.255.255.0 R1(config-if)#exit R1(config)#router eigrp 100 R1(config-router)#network 144.44.0.0?0.0.0.255 R1(config-router)#network 144.44.1.0?0.0.0.255 R1(config-router)#network 144.44.2.0?0.0.0.255 R1(config-router)#network 144.44.3.0?0.0.0.255 好,然后我們在R2上show ip route查看路由表: R2#show ip route Codes: C - connected, S - static, 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 ???????i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ???????ia - IS-IS inter area, * - candidate default, U - per-user static route ???????o - ODR, P - periodic downloaded static route ? Gateway of last resort is not set ? ?????172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C???????172.16.0.0/24 is directly connected, Serial1/1 D???????172.16.0.0/16 is a summary, 00:00:40, Null0 D????144.44.0.0/16 [90/2297856] via 10.1.1.1, 00:00:04, Serial1/0 D????199.99.1.0/24 [90/2297856] via 10.1.1.1, 00:00:42, Serial1/0 ?????10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C???????10.1.1.0/24 is directly connected, Serial1/0 D???????10.0.0.0/8 is a summary, 00:00:40, Null0 EIGRP自動匯總功能把144的路由自動匯總成一個B類網(wǎng)絡(luò),下面我們?nèi)∠詣訁R總: R1(config-router)#no auto-summary 到R2上察看路由表,觀察有什么變化? R2#show ip route Codes: C - connected, S - static, 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 ???????i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ???????ia - IS-IS inter area, * - candidate default, U - per-user static route ???????o - ODR, P - periodic downloaded static route ? Gateway of last resort is not set ? ?????172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C???????172.16.0.0/24 is directly connected, Serial1/1 D???????172.16.0.0/16 is a summary, 00:00:43, Null0 ?????144.44.0.0/24 is subnetted, 4 subnets D???????144.44.0.0 [90/2297856] via 10.1.1.1, 00:00:00, Serial1/0 D???????144.44.1.0 [90/2297856] via 10.1.1.1, 00:00:00, Serial1/0 D???????144.44.2.0 [90/2297856] via 10.1.1.1, 00:00:00, Serial1/0 D???????144.44.3.0 [90/2297856] via 10.1.1.1, 00:00:00, Serial1/0 D????199.99.1.0/24 [90/2297856] via 10.1.1.1, 00:00:44, Serial1/0 ?????10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C???????10.1.1.0/24 is directly connected, Serial1/0 D???????10.0.0.0/8 is a summary, 00:00:43, Null0 路由表中列出了4條到144網(wǎng)絡(luò)的路由,下面再配置手動匯總,觀察區(qū)別。 R1(config)#int s1/0 R1(config-if)#ip summary-address eigrp 100 144.44.0.0 255.255.252.0 再到R2上察看路由表,觀察有什么變化? R2#show ip route Codes: C - connected, S - static, 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 ???????i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ???????ia - IS-IS inter area, * - candidate default, U - per-user static route ???????o - ODR, P - periodic downloaded static route ? Gateway of last resort is not set ? ?????172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C???????172.16.0.0/24 is directly connected, Serial1/1 D???????172.16.0.0/16 is a summary, 00:00:50, Null0 ?????144.44.0.0/22 is subnetted, 1 subnets D???????144.44.0.0 [90/2297856] via 10.1.1.1, 00:00:00, Serial1/0 D????199.99.1.0/24 [90/2297856] via 10.1.1.1, 00:00:52, Serial1/0 ?????10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C???????10.1.1.0/24 is directly connected, Serial1/0 D???????10.0.0.0/8 is a summary, 00:00:50, Null0 ? 通告的掩碼由原來自動匯總的16位,到?jīng)]有匯總的24位,現(xiàn)在又到手動配置匯總的22位。這樣可以大大減小路由標(biāo)的大小,又可以配置一些不連續(xù)子網(wǎng)的匯聚(建議設(shè)計網(wǎng)絡(luò)的時候都設(shè)計成連續(xù)的子網(wǎng))。 路由器R3的配置如下: R3(config)#int s1/0 R3(config-if)#ip add 172.16.0.1 255.255.255.0 R3(config-if)#no shu R3(config-if)#exit R3(config)#int loop0 R3(config-if)#ip add 172.16.1.1 255.255.255.0 R3(config-if)#int loop1 R3(config-if)#ip add 172.16.2.1 255.255.255.0 R3(config-if)#int loop2 R3(config-if)#ip add 172.16.3.1 255.255.255.0 R3(config-if)#exit R3(config)#ip route?0.0.0.0 0.0.0.0 172.16.0.2 然后在R2上添加下面的兩條命令: R2(config)#ip default-network 172.16.0.0 R2(config)#ip route 172.16.0.0 255.255.0.0 172.16.0.1 然后在R2上show ip route察看路由表: R2#show ip route Codes: C - connected, S - static, 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 ???????i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ???????ia - IS-IS inter area, * - candidate default, U - per-user static route ???????o - ODR, P - periodic downloaded static route ? Gateway of last resort is 172.16.0.1 to network 172.16.0.0 ? ?*???172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C???????172.16.0.0/24 is directly connected, Serial1/1 S*??????172.16.0.0/16 [1/0] via 172.16.0.1 ?????144.44.0.0/22 is subnetted, 1 subnets D???????144.44.0.0 [90/2297856] via 10.1.1.1, 00:01:08, Serial1/0 D????199.99.1.0/24 [90/2297856] via 10.1.1.1, 00:01:59, Serial1/0 ?????10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C???????10.1.1.0/24 is directly connected, Serial1/0 D???????10.0.0.0/8 is a summary, 00:01:58, Null0 ? 再到R1上察看一下路由表: R1#show ip route Codes: C - connected, S - static, 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 ???????i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ???????ia - IS-IS inter area, * - candidate default, U - per-user static route ???????o - ODR, P - periodic downloaded static route ? Gateway of last resort is?10.1.1.2 to network 172.16.0.0 ? D*???172.16.0.0/16 [90/2681856] via 10.1.1.2, 00:00:04, Serial1/0 ?????144.44.0.0/16 is variably subnetted, 5 subnets, 2 masks C???????144.44.0.0/24 is directly connected, Loopback1 D???????144.44.0.0/22 is a summary, 00:01:07, Null0 C???????144.44.1.0/24 is directly connected, Loopback2 C???????144.44.2.0/24 is directly connected, Loopback3 C???????144.44.3.0/24 is directly connected, Loopback4 C????199.99.1.0/24 is directly connected, Loopback0 ?????10.0.0.0/24 is subnetted, 1 subnets C???????10.1.1.0 is directly connected, Serial1/0 看到了有個D*路由,說明R1通過R2學(xué)到一條到172.16.0.0/16的缺省路由,這樣配置一般都是在EIGRP自治系統(tǒng)邊界路由器上配置,為了向自治系統(tǒng)內(nèi)通告一條缺省到自治系統(tǒng)外的路由。下面進行ping驗證: R1#ping 172.16.0.1 ? Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 168/201/264 ms R1#ping 172.16.1.1 ? Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 168/239/288 ms R1# R1#ping 172.16.2.1 ? Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 144/224/288 ms 都通了。 ? 總結(jié):通過實驗掌握EIGRP基本配置,以及EIGRP自動匯聚與手動匯聚的區(qū)別,默認為自動匯聚,還掌握了ip default-network命令的用法和配置方法。
本文轉(zhuǎn)自loveme2351CTO博客,原文鏈接:?http://blog.51cto.com/loveme23/45310,如需轉(zhuǎn)載請自行聯(lián)系原作者
總結(jié)
以上是生活随笔為你收集整理的CCNP-1 EIGRP基本配置(BSCI)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C#正则表达式编程(三):Match类和
- 下一篇: day-20: 安装软件包及rpm yu