亩态
思科设备配置新手篇--EIGRP
发布时间:2018-11-27 浏览次数:4125

一 基本配置步骤
1.1 在Router8
Router#confi t
Router(config)#route eigrp 10
Router(config-router)#network 192.168.0.0
Router(config-router)#network 192.168.1.0
Router(config-router)#network 192.168.2.0
1.2 在Router2 上
Router#confi t
Router(config)#router eigrp 10
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168.3.0
Router(config-router)#
1.3 在Router3 上
Router#confi t
Router(config)#router eigrp 10
Router(config-router)#network 192.168.4.0
Router(config-router)#network 192.168.3.0
Router(config-router)#
1.4 在Router4 上
Router#confi t
Router(config)#router eigrp 10
Router(config-router)#network 192.168.4.0
Router(config-router)#network 192.168.5.0
Router(config-router)#
1.5 在Router5 上
Router#confi t
Router(config)#router eigrp 10
Router(config-router)#network 192.168.5.0
Router(config-router)#network 192.168.6.0
Router(config-router)#network 192.168.7.0
Router(config-router)#
1.6 在Router7 上
Router#confi t
Router(config)#router eigrp 10
Router(config-router)#network 192.168.8.0
Router(config-router)#network 192.168.7.0
Router(config-router)#
1.7 在Router0 上
Router#confi t
Router(config)#router rip
Router(config-router)#network 192.168.8.0
Router(config-router)#network 192.168.9.0
Router(config-router)#version 2
Router(config-router)#
1.8 在Router1 上
Router#confi t
Router(config)#router eigrp 10
Router(config-router)#network 192.168.0.0
Router(config-router)#network 192.168.9.0
Router(config-router)#
二 检测配置结果
2.1 在Router8 上显示路由表
Router#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
C 192.168.0.0/24 is directly connected, Serial3/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, Serial2/0
D 192.168.3.0/24 [90/21024000] via 192.168.2.2, 00:04:24, Serial2/0
D 192.168.4.0/24 [90/21536000] via 192.168.2.2, 00:03:59, Serial2/0
D 192.168.5.0/24 [90/22048000] via 192.168.2.2, 00:03:35, Serial2/0
D 192.168.6.0/24 [90/22050560] via 192.168.2.2, 00:03:11, Serial2/0
[90/22050560] via 192.168.0.1, 00:00:53, Serial3/0
D 192.168.7.0/24 [90/22048000] via 192.168.0.1, 00:00:53, Serial3/0
D 192.168.8.0/24 [90/21536000] via 192.168.0.1, 00:00:53, Serial3/0
D 192.168.9.0/24 [90/21024000] via 192.168.0.1, 00:00:56, Serial3/0
Router#
可以看到192.168.6.0/24 网段的两条等价路由,管理距离是90 度量值22050560,
2.2 在Router8 上显示EIGRP 接口
Router#show ip eigrp interfaces
IP-EIGRP interfaces for process 10
Xmit Queue Mean Pacing Time Multicast
Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Fa0/0 0 0/0 1236 0/10 0 0
Ser2/0 1 0/0 1236 0/10 0 0
Ser3/0 1 0/0 1236 0/10 0 0
Router#
2.3 在PC0 上测试到PC1 的连通性
PC>ping 192.168.6.2
Pinging 192.168.6.2 with 32 bytes of data:
Request timed out.
Reply from 192.168.6.2: bytes=32 time=39ms TTL=123
Reply from 192.168.6.2: bytes=32 time=34ms TTL=123
Reply from 192.168.6.2: bytes=32 time=23ms TTL=123
Ping statistics for 192.168.6.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 23ms, Maximum = 39ms, Average = 32ms

三 关闭Router3 的S2/0 端口,模拟网络故障
3.1 在Router3 上
Router#confi t
Router(config)#int serial 2/0
Router(config-if)#shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to dow
3.2 立即查看Router8 的路由表
Router#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
C 192.168.0.0/24 is directly connected, Serial3/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, Serial2/0
D 192.168.3.0/24 [90/21024000] via 192.168.2.2, 00:01:03, Serial2/0
D 192.168.5.0/24 [90/22560000] via 192.168.0.1, 00:00:10, Serial3/0
D 192.168.6.0/24 [90/22050560] via 192.168.0.1, 00:13:58, Serial3/0
D 192.168.7.0/24 [90/22048000] via 192.168.0.1, 00:13:58, Serial3/0
D 192.168.8.0/24 [90/21536000] via 192.168.0.1, 00:13:58, Serial3/0
D 192.168.9.0/24 [90/21024000] via 192.168.0.1, 00:14:01, Serial3/0
Router#到192.168.6.0/24 立即变成了一条路径,收敛速度比RIP 快。
3.3 在PC0 上测试到PC1 连通性
PC>ping 192.168.6.2
Pinging 192.168.6.2 with 32 bytes of data:
Reply from 192.168.6.2: bytes=32 time=34ms TTL=123
Reply from 192.168.6.2: bytes=32 time=30ms TTL=123
Reply from 192.168.6.2: bytes=32 time=31ms TTL=123
Reply from 192.168.6.2: bytes=32 time=33ms TTL=123
Ping statistics for 192.168.6.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 30ms, Maximum = 34ms, Average = 32ms
网络立即处于稳定状态。

 
 
共筑未来,走向成功!思朋信息期待着与您的合作!

思朋简介
联系我们
官方微博
思朋特色
服务宗旨
企业服务
商务合作
企业运维

Copyright 2023 江苏思朋信息科技有限公司 版权所有 技术支持:星度网络 苏ICP备2021003433号-2

地址:苏州市吴中区石湖西路188号万达广场西楼(苏州大学国家大学科技园吴中分园)19楼1902室(吴中万达1号门附近) 咨询热线:0512-80682876