您的位置:首页 > 其它

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

2013-08-09 17:05 573 查看
2.7 EIGRP基本配置

实验目的:
1、掌握EIGRP的基本配置。
2.掌握EIGRP的邻居表、拓扑表、路由表。
3.掌握EIGRP的无类特性。

实验拓扑:




实验步骤:1、依据图中拓扑配置各设备的IP地址,并保证直连连通性;
在R1上做如下配置:
R1(config)#int f0/0R1(config-if)#no shutdownR1(config-if)#ip address 12.1.1.1 255.255.255.0R1(config-if)#exitR1(config)#int f1/0R1(config-if)#no shutdownR1(config-if)#ip address 13.1.1.1 255.255.255.0R1(config-if)#exitR1(config)#int loopback 1R1(config-if)#ip address 1.1.1.1 255.255.255.255R1(config-if)#exit在R2上做如下配置:
R2(config)#int f0/0R2(config-if)#no shutdownR2(config-if)#ip address 12.1.1.2 255.255.255.0R2(config-if)#exitR2(config)#int f1/0R2(config-if)#no shutdownR2(config-if)#ip address 23.1.1.2 255.255.255.0R2(config-if)#exitR2(config)#int loopback 1R2(config-if)#ip address 2.2.2.2 255.255.255.255R2(config-if)#exit在R3上做如下配置
R3(config)#int f0/0R3(config-if)#no shutdownR3(config-if)#ip address 13.1.1.3 255.255.255.0R3(config-if)#exitR3(config-if)#int f1/0R3(config-if)#no shutdownR3(config-if)#ip address 23.1.1.3 255.255.255.0R3(config-if)#exitR3(config)#int loopback 1R3(config-if)#ip address 3.3.3.3 255.255.255.255R3(config-if)#exit在其中一台路由器上进行连通性测试:
R1#ping 12.1.1.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 20/34/48 msR1#ping 13.1.1.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 13.1.1.3, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 16/31/48 ms此时说明直连连接没有问题。
2.在每台路由器开始进行EIGRP的配置,R1的配置如下:
R1(config)#router eigrp 100[PL1]R1(config-router)#no auto-summary[PL2]R1(config-router)#network 12.1.1.0 0.0.0.255[PL3]R1(config-router)#network 13.1.1.0 0.0.0.255R1(config-router)#network 1.1.1.1 0.0.0.0R1(config-router)#exitR2的配置如下:
R2(config)#router eigrp 100R2(config-router)#no auto-summaryR2(config-router)#network 12.1.1.0 0.0.0.255R2(config-router)#network 23.1.1.0 0.0.0.255R2(config-router)#network 2.2.2.2 0.0.0.0R2(config-router)#exitR3的配置如下:
R3(config)#router eigrp 100R3(config-router)#no auto-summaryR3(config-router)#network 13.1.1.0 0.0.0.255R3(config-router)#network 23.1.1.0 0.0.0.255R3(config-router)#network 3.3.3.3 0.0.0.0R3(config-router)#exit3、查看EIGRP的邻居表、拓扑表和路由表,在R1上查看EIGRP邻居表,
如下:
R1#show ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num1 13.1.1.3 Fa1/0 11 00:03:45 74 444 0 110 12.1.1.2 Fa0/0 14 00:04:10 65 390 0 10其中H表示与其他路由器建立邻居的顺序,Address表示邻居的IP地址,Interface表示本地接口,Hold表示holdtime,默认为15s。从这里可以看到R1与R2和R3依次建立了邻居关系。
在R1上查看EIGRP拓扑表,如下:
R1#show ip eigrp topologyIP-EIGRP Topology Table for AS(100)/ID(1.1.1.1)Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia StatusP 3.3.3.3/32, 1 successors, FD is 156160 via 13.1.1.3 (156160/128256), FastEthernet1/0P 2.2.2.2/32, 1 successors, FD is 156160 via 12.1.1.2 (156160/128256), FastEthernet0/0P 1.1.1.1/32, 1 successors, FD is 128256 via Connected, Loopback1P 12.1.1.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0P 13.1.1.0/24, 1 successors, FD is 28160 via Connected, FastEthernet1/0P 23.1.1.0/24, 2 successors, FD is 30720 via 13.1.1.3 (30720/28160), FastEthernet1/0 via 12.1.1.2 (30720/28160), FastEthernet0/0此命令放置满足FC<可行条件>的路由条目,若想查看所有EIGRP的路由条目,则需要加入all-links参数:
R1#show ip eigrp topology all-linksIP-EIGRP Topology Table for AS(100)/ID(1.1.1.1)Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia StatusP 3.3.3.3/32, 1 successors, FD is 156160, serno 8 via 13.1.1.3 (156160/128256), FastEthernet1/0 via 12.1.1.2 (158720/156160), FastEthernet0/0P 2.2.2.2/32, 1 successors, FD is 156160, serno 5 via 12.1.1.2 (156160/128256), FastEthernet0/0 via 13.1.1.3 (158720/156160), FastEthernet1/0P 1.1.1.1/32, 1 successors, FD is 128256, serno 3 via Connected, Loopback1P 12.1.1.0/24, 1 successors, FD is 28160, serno 1 via Connected, FastEthernet0/0P 13.1.1.0/24, 1 successors, FD is 28160, serno 2 via Connected, FastEthernet1/0P 23.1.1.0/24, 2 successors, FD is 30720, serno 7 via 13.1.1.3 (30720/28160), FastEthernet1/0 via 12.1.1.2 (30720/28160), FastEthernet0/0此时在查看R1上的路由表,如下:
R1#show ip route eigrp 2.0.0.0/32 is subnetted, 1 subnetsD 2.2.2.2 [90/156160] via 12.1.1.2, 00:08:48, FastEthernet0/0[PL4] 3.0.0.0/32 is subnetted, 1 subnetsD 3.3.3.3 [90/156160] via 13.1.1.3, 00:08:47, FastEthernet1/0 23.0.0.0/24 is subnetted, 1 subnetsD 23.1.1.0 [90/30720] via 13.1.1.3, 00:08:50, FastEthernet1/0 [90/30720] via 12.1.1.2, 00:08:50, FastEthernet0/0可以看到,R1已经通过EIGRP协议从其他路由器学习到EIGRP路由,此时可以进行测试,如下:
R1#ping 2.2.2.2 source 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:Packet sent with a source address of 1.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/33/48 msR1#ping 3.3.3.3 source 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:Packet sent with a source address of 1.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 32/37/48 ms此时,R1可以与R2和R3的环回网段进行通信;同样的方法在R2和R3上进行测试,此实验完成。
[PL1]进入EIGRP进程,并且定义此路由器所在自治系统号为100;自治系统指的是由一个管理机构统一控制之下的路由器和网络群组,例如不同的ISP处于不同的AS号,如中国电信的AS为4134,AS范围从1到65535.不同AS的路由器无法建立邻居关系!
[PL2]默认情况下,EIGRP开启自动汇总,通过此命令关闭自动汇总。
[PL3]EIGRP宣告路由的方式有三种,如下:
network + 主类网络号;
network + 网段 + 子网掩码
network + 网段 + 反掩码
在本例中,通告路由条目12.1.1.0/24,则可以通过:network 12.0.0.0或network 12.1.1.0 255.255.255.0或者network 12.1.1.0 0.0.0.255来实现
[PL4]EIGRP是一种无类路由协议,支持VLSM和CIDR,路由更新夹带掩码信息。
==========================================
PingingLab·高品质IT教育提供商
CCIE 实验室·IT项目实战·高端人才定制
深圳拼客信息科技有限公司·广州大学城外环西路站
新浪微博:@拼客科技PingingLab @PingingLab-陈鑫杰
PingingLab微信公众号:pinginglab
PingingLab技术交流群:240920680

本文出自 “陈鑫杰讲网络” 博客,请务必保留此出处http://chenxinjie.blog.51cto.com/7749507/1274512
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐