详解BSCI实验一、配置EIGRP 验证,汇总

 

实验一、配置Eigrp 验证,汇总

  环境:三台路由器串口相连,其它接口配置如图

  要求:1.配置EIGRP关闭自动路由汇总

2.R1的三个LOOP口进行EIGRP手工路由汇总

3.R2R3配置EIGRP接口密文验证

4.验证并测试结果

       

 

步骤一: 配置三个路由器接口使其连通。

 

R1的配置

R1(config)# interface Loopback0

R1(config-if)# ip address 30.1.1.1 255.255.255.0

R1(config)# interface Loopback1

R1(config-if)# ip address 30.1.2.1 255.255.255.0

R1(config)# interface Loopback2

R1(config-if)# ip address 30.1.3.1 255.255.255.0

R1(config)# interface s0

R1(config-if)# ip address 10.1.1 .2 255.255.255.0

R1(config-if)#no shutdown

 

R2的配置

R2(config)# interface s0

R2(config-if)# ip address 10.1.1 .1 255.255.255.0

R2(config-if)#clockrate 64000

R2(config-if)#no shutdown

 

R2(config)# interface s1

R2(config-if)# ip address 20.1.1 .1 255.255.255.0

R12(config-if)#no shutdown

 

R3的配置

R3(config)# interface Loopback0

R3(config-if)# ip address 40.1.1.1 255.255.255.0

R3(config)# interface s1

R3(config-if)# ip address 20.1.1 .2 255.255.255.0

R3(config-if)#clockrate 64000

R3(config-if)#no shutdown

 

步骤二: 配置Eigrp

 

R1的配置

R1(config)# router eigrp 100  à启用eigrp,自治号为100,三台路由器保持一致

R1(config-router)# network 10.1.1 .0 0.0.0.255  à使相关接口参与eigrp

R1(config-router)# network 30.1.1.0 0.0.0 .255

R1(config-router)# network 30.1.2.0 0.0.0 .255

R1(config-router)# network 30.1.3.0 0.0.0 .255

R1(config-router)# no auto-summary       à关闭自动汇总

 

R2的配置

R2(config)# router eigrp 100 

R2(config-router)# network 10.1.1 .0 0.0.0.255

R2(config-router)# network 20.1.1 .0 0.0.0.255

R2(config-router)# no auto-summary

 

R3的配置

R3(config)# router eigrp 100

R3(config-router)# network 20.1.1 .0 0.0.0.255

R3(config-router)# network 40.1.1.0 0.0.0 .255

R3(config-router)# no auto-summary

 

 

步骤三:配置EIGRP手工路由汇总

 

R1的配置

R1(config)# interface s0

R1(config-if)# ip summary-address eigrp 100 30.1.0.0 255.255.252.0 à手工汇总路由

 

 

步骤四:在r2r3上配置EIGRP 验证

 

R2的配置

R2(config)# key chain cisco  à定义chain名称

R2(config-keychain)# key 1  àkey值编号,须一致

R2(config-keychain-key)# key-string aaa  à定义密钥,须一致

R2(config)# interface s1

R2(config-if)# ip authentication mode eigrp 100 md5  à启用eigrp验证模式md5

R2(config-if)# ip authentication key-chain eigrp 100 cisco  àchain应用到验证

 

R3的配置

R3(config)# key chain cisco

R3(config-keychain)# key 1

R3(config-keychain-key)# key-string aaa

R3(config)# interface s1

R3(config-if)# ip authentication mode eigrp 100 md5

R3(config-if)# ip authentication key-chain eigrp 100 cisco

 

 

步骤五:查看路由表

 

R1#show ip route  à显示路由表,如下图显示证明验证通过Deigrp路由

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, 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

 

     20.0.0 .0/24 is subnetted, 1 subnets

D       20.1.1 .0 [90/2681856] vi a 10.1.1 .1, 00:12:39, Serial0

     40.0.0.0/24 is subnetted, 1 subnets

D       40.1.1.0 [90/2809856] vi a 10.1.1 .1, 00:12:39, Serial0

     10.0.0 .0/24 is subnetted, 1 subnets

C       10.1.1 .0 is directly connected, Serial0

     30.0.0.0/8 is variably subnetted, 4 subnets, 2 masks

C       30.1.3.0/24 is directly connected, Loopback2

C       30.1.2.0/24 is directly connected, Loopback1

C       30.1.1.0/24 is directly connected, Loopback0

D       30.1.0.0/22 is a summary, 00:12:47, Null0 à汇总产生的空接口

 

R2#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, 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

 

     20.0.0.0/24 is subnetted, 1 subnets

C       20.1.1.0 is directly connected, Serial1

     40.0.0.0/24 is subnetted, 1 subnets

D       40.1.1.0 [90/2297856] via 20.1.1.2, 00:13:13, Serial1

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, Serial0

     30.0.0.0/22 is subnetted, 1 subnets

D       30.1.0.0 [90/2297856] via 10.1.1.2, 00:10:02, Serial0  à学到了汇总的条目

 

R3#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, 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

 

     20.0.0.0/24 is subnetted, 1 subnets

C       20.1.1.0 is directly connected, Serial1

     40.0.0.0/24 is subnetted, 1 subnets

C       40.1.1.0 is directly connected, Loopback0

     10.0.0.0/24 is subnetted, 1 subnets

D       10.1.1.0 [90/2681856] via 20.1.1.1, 00:06:33, Serial1

     30.0.0.0/22 is subnetted, 1 subnets

D       30.1.0.0 [90/2809856] via 20.1.1.1, 00:03:22, Serial1

 

步骤六:查看邻居表

 

R1#show ip eigrp neighbors à显示邻居

IP-EIGRP neighbors for process 100

H   Address                 Interface   Hold Uptime   SRTT   RTO  Q  Seq Type

                                        (sec)         (ms)       Cnt Num

0   10.1.1.1                Se0           11 00:13:11   28   200  0  35

 

R2#show ip eigrp neighbors

IP-EIGRP neighbors for process 100

H   Address                 Interface   Hold Uptime   SRTT   RTO  Q  Seq Type

                                        (sec)         (ms)       Cnt Num

0   10.1.1.2                Se0           12 00:10:49  670  4020  0  22

1   20.1.1.2                Se1           13 00:14:04   36   216  0  14

 

R3#sh ip eigrp neighbors

IP-EIGRP neighbors for process 100

H   Address                 Interface   Hold Uptime   SRTT   RTO  Q  Seq Type

                                        (sec)         (ms)       Cnt Num

0   20.1.1.1                Se1           13 00:09:18  252  1512  0  36

 

步骤七:用ping命令测试

 

R1#ping 40.1.1.1  à测试连通性,显示已通

!!!!!

R3#ping 30.1.1.1

!!!!!

 

步骤八:显示当前配置信息

R1#sh run

hostname R1

!

interface Loopback0

 ip address 30.1.1.1 255.255.255.0

!

interface Loopback1

 ip address 30.1.2.1 255.255.255.0

!

interface Loopback2

 ip address 30.1.3.1 255.255.255.0

!

interface Serial0

 ip address 10.1.1.2 255.255.255.0

 ip summary-address eigrp 100 30.1.0.0 255.255.252.0 5

!

router eigrp 100

 network 10.1.1.0 0.0.0.255

 network 30.1.1.0 0.0.0.255

 network 30.1.2.0 0.0.0.255

 network 30.1.3.0 0.0.0.255

 no auto-summary

end

 

R2#sh run

hostname R2

!

key chain cisco

 key 1

  key-string aaa

!

interface Serial0

 ip address 10.1.1.1 255.255.255.0

 clockrate 64000

!

interface Serial1

 ip address 20.1.1.1 255.255.255.0

 ip authentication mode eigrp 100 md5

 ip authentication key-chain eigrp 100 cisco

!

router eigrp 100

 network 10.1.1.0 0.0.0.255

 network 20.1.1.0 0.0.0.255

 no auto-summary

end

 

R3#sh run

hostname R3

!

key chain cisco

 key 1

  key-string aaa

!

interface Loopback0

 ip address 40.1.1.1 255.255.255.0

interface Serial1

 ip address 20.1.1.2 255.255.255.0

 ip authentication mode eigrp 100 md5

 ip authentication key-chain eigrp 100 cisco

 clockrate 64000

!

router eigrp 100

 network 20.1.1.0 0.0.0.255

 network 40.1.1.0 0.0.0.255

 no auto-summary

end本文出自 51CTO.COM技术博客

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值