CCNP1-EIGRP基本配置

实验拓扑:
实验要求:1-R1与R2起EIGRP;
2-在R1上起Loopback,配置连续IP,观察EIGRP自动汇总,然后取消自动汇总,配置手动汇总,观察与自动汇总的区别;
3-在R2上配置到R3上的静态路由,并使用缺省路由通告给R1,观察R1与R2的路由表变化;
试验目的:掌握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,下面我们来比较自动汇总和手动汇总的区别:在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类网络,下面我们取消自动汇总:
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网络的路由,下面再配置手动汇总,观察区别。
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位,到没有汇总的24位,现在又到手动配置汇总的22位。这样可以大大减小路由标的大小,又可以配置一些不连续子网的汇聚(建议设计网络的时候都设计成连续的子网)。
路由器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学到一条到172.16.0.0/16的缺省路由,这样配置一般都是在EIGRP自治系统边界路由器上配置,为了向自治系统内通告一条缺省到自治系统外的路由。下面进行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
都通了。
 
总结:通过实验掌握EIGRP基本配置,以及EIGRP自动汇聚与手动汇聚的区别,默认为自动汇聚,还掌握了ip default-network命令的用法和配置方法。
本文转自loveme2351CTO博客,原文链接: http://blog.51cto.com/loveme23/45310,如需转载请自行联系原作者

CCNP-1 EIGRP基本配置(BSCI)相关推荐

  1. PingingLab传世经典系列《CCNA完全配置宝典》-2.7 EIGRP基本配置

    2.7 EIGRP基本配置 实验目的: 1.掌握EIGRP的基本配置. 2.掌握EIGRP的邻居表.拓扑表.路由表. 3.掌握EIGRP的无类特性. 实验拓扑: 实验步骤: 1.依据图中拓扑配置各设备 ...

  2. CCNp笔记(EIGRP)

    EIGRP <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 特 ...

  3. Cisco学习笔记 CCNP-EIGRP

    Eigrp 思科私有协议(已经公有化) 组播地址 224.0.0.10 特性: 高级距离矢量(拓扑表) 快速收敛(小型网络最快) 100%无环路 配置简单 易于更新 灵活的网络设计 多播更新取代广播更 ...

  4. CCNP-2 EIGRP试验2(BSCI)

    CCNP-2 EIGRP试验2 实验拓扑: 试验要求:1-R1到R4全部起EIGRP路由协议,配置bandwidth,观察EIGRP的等价负载均衡和非等价负载均衡. 试验目的:掌握EIGRP等价负载均 ...

  5. CCNP实验4-2:配置多区域和NBMA OSPF

    [实验目的]: 在本次实验中,你将在单个帧中继网络中配置OSPF. 在完成本次实验之后,你需要完成下列任务: <?xml:namespace prefix = o ns = "urn: ...

  6. cisco路由器EIGRP基础配置命令

    1.IP地址等基本配置自行配置 2.配置EIGRP协议 R1(config)#router eigrp 1 启用EIGRP路由选择协议进程,AS号为1 R1(config-router)#networ ...

  7. CCNP实验---EIGRP自动汇总

    拓扑: R1: interface FastEthernet0/0  ip address 172.16.1.254 255.255.255.0  duplex auto  speed auto in ...

  8. 《CCNP ROUTE 300-101学习指南》——2.2节构建EIGRP拓扑表

    本节书摘来自异步社区<CCNP ROUTE 300-101学习指南>一书中的第2章,第2.2节构建EIGRP拓扑表,作者 [美]戴安娜 蒂尔(Diane Teare) , 鲍勃 瓦尚(Bo ...

  9. 《CCNP ROUTE 300-101学习指南》——第2章 EIGRP部署

    本节书摘来自异步社区<CCNP ROUTE 300-101学习指南>一书中的第2章 EIGRP部署,作者 [美]戴安娜 蒂尔(Diane Teare) , 鲍勃 瓦尚(Bob Vachon ...

最新文章

  1. MySQL面试题 | 附答案解析(三)
  2. sqlite java excel,Android将Excel表数据导入SQLite数据库
  3. 什么营销鬼才!王老吉百家姓版本?
  4. requests(二): json请求中固定键名顺序消除键和值之间的空格
  5. NIO详解(三):IO多路复用模型之select、poll、epoll
  6. 【SpringBoot】服务器端主动推送SSE技术讲解
  7. 如何启用SAP CRM text的html编辑器
  8. XCoreRedux框架:Android UI组件化与Redux实践
  9. Flowable 数据库表结构 ACT_RU_IDENTITYLINK
  10. 一个批量转换文件编码的python脚本
  11. Appium框架中Android下EditText内容清除
  12. java项目开发团队协作重要性_Java 项目开发团队有必要统一 IDE 吗?
  13. Excel如何将英语大写快速转变为小写
  14. 树莓派4B+Intel神经计算棒(Stick2)+YoloV5可行性考察报告
  15. ESP8266——入门:点亮TFT液晶屏(五)
  16. 从零开始的WTL入门教程(1) WTL的简介,环境搭建
  17. 数据中台(七) 数据中台架构
  18. 开关稳压器详解(七)-Buck降压型开关稳压器RC Snubber设计
  19. 跳槽就能薪水翻倍?这样的日子一去不复返:互联网人才“高薪”泡沫刺破
  20. RCNN原文理解与代码分析

热门文章

  1. zend studio报错
  2. ThinkPHP分页实例
  3. struts2文件下载出现Can not find a java.io.InputStream with the name的错误
  4. 8.腾讯微博Android客户端开发——自动获取验证码(2)
  5. UVA11389巴士司机问题
  6. Irvine64链接库过程的使用说明 Microsoft x64 调用规范 添加Irvine64.obj 64位链接库错误及解决方法
  7. 【Android 组件化】路由组件 ( 页面跳转参数依赖注入 )
  8. 【Flutter】Hero 动画 ( Hero 实现径向动画 | Hero 组件 createRectTween 设置 )
  9. 【IntelliJ IDEA】创建 导入 Java 项目
  10. php 二维数组排序详解: array_multisort