EIGRP实验(基础)1

    

实验目的:通过用EIGRP的实验,回顾CCNA课程内容,掌握EIGRP的基本配置,加深记忆。

实验拓扑:

wKioL1ObvZqjMWJuAABq0LXFLvk368.jpg

拓扑说明:本实验由二台思科路由器完成。

接口取值:R1和R2都在  12.1.1.0 网段,R1的f0/0接口IP为:12.1.1.1 R2的f0/0接口IP为:12.1.1.2


实验步骤:

    1、分别给二台设置配置进行预配与接口配置IP与增加回环口(明细如下:)

R1>en

R1#conf t

R1(config)#no ip domain lo

R1(config)#lin con 0

R1(config-line)#logg sy

R1(config-line)#exec-t 0 0

R1(config-line)#exit

R1(config)#int f0/0

R1(config-if)#ip add 12.1.1.1 255.255.255.0

R1(config-if)#no sh

R1(config-if)#exit

R1(config)#int lo 0

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#exit

R1(config)#

----------------------------------------------------------------------

R2>en

R2#conf t

R2(config)#no ip domain lo

R2(config)#lin con 0

R2(config-line)#logg sy

R2(config-line)#exec-t 0 0

R2(config-line)#exit

R2(config)#int f0/0

R2(config-if)#ip add 12.1.1.2 255.255.255.0

R2(config-if)#no sh

R2(config-if)#exit

R2(config)#int lo 0

R2(config-if)#ip add 2.2.2.2 255.255.255.0

R2(config-if)#exit

R2(config)#

===========================基本配置完毕(接口、回环口IP)============================

R1(config)#router eigrp 100

R1(config-router)#no au

R1(config-router)#eigrp router-id 1.1.1.1

R1(config-router)#net 1.1.1.0 255.255.255.0

R1(config-router)#net 12.1.1.0 255.255.255.0

R1(config-router)#end

R1#

------------------------------------------------------------------

R2(config)#router eigrp 100

R2(config-router)#no au

R2(config-router)#eigrp router-id 2.2.2.2

R2(config-router)#net 2.2.2.0 0.0.0.255

R2(config-router)#net 12.1.1.0 0.0.0.255

R2(config-router)#end

------------------------------------------------------------------

wKiom1Ob5gLif8foAAF6bRgKhu0679.jpg

=====================================EIGRP配置完毕================================

注:EIGRP默认情况下是开启自动汇总的,所以为了避免出现次优路由,一般情况下,建议在开启EIGRP后,关闭自动汇总功能(命令:在EIGRP进程中使用:no autosummary)

同时,在上面的EIGRP宣告中,同时使用了二种宣告方式

注:

1、如果使用network命令,并且没有添加反码,那么network后的网络参数必须为有类主网,该路由器上所有满足所指定的主类网络范围的接口将会宣告进EIGRP进程中。

2、如果使用network命令,并且添加了反码,那么network后的网络参数和反掩码准确匹配的网络范围将和路由上直连接口相互比较,满足该范围的被宣告到EIGRP进程中。


验证EIGRP相关的命令如下:

1、show ip eigrp interface (用于查看能与EIGRP进程的相关接口)

wKioL1Ob6kvAnQmSAAEi97L_GUE297.jpg

2、show ip protocls (用于列举在每个路由进程下的network命令的内容和邻居IP地址--也可以说是查看当前路由器运行了那些协议进程)

wKiom1Ob6pCS8PN2AAKxzwscEEU144.jpg

3、show ip eigrp neighbors(用于查看已知的EIGRP邻居,但不会列举出因参数不匹配而不可用的邻居)

wKioL1Ob6nqhBaxlAAD4mSKyphg108.jpg

4、show ip route (用于查看本台路由器上的路由表,显示D的表示来自EIGRP协议)

wKioL1Ob6ozQEigjAAKjkJAHHCY692.jpg

=================================================================================