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

本文详细介绍如何在三台路由器间配置EIGRP协议,包括关闭自动汇总、手工汇总及接口密文验证的过程,并展示了配置后的路由表和邻居状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

实验一、配置Eigrp 验证,汇总
  环境:三台路由器串口相连,其它接口配置如图
  要求:1.配置EIGRP关闭自动路由汇总
2.在R1的三个LOOP口进行EIGRP手工路由汇总
3.R2、R3配置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 à手工汇总路由
 
 
步骤四:在r2和r3上配置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  à显示路由表,如下图显示证明验证通过D为eigrp路由
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] via 10.1.1.1, 00:12:39, Serial0
     40.0.0.0/24 is subnetted, 1 subnets
D       40.1.1.0 [90/2809856] via 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




    本文转自hexianguo 51CTO博客,原文链接:http://blog.51cto.com/xghe110/89989,如需转载请自行联系原作者

内容概要:本文探讨了在MATLAB/SimuLink环境中进行三相STATCOM(静态同步补偿器)无功补偿的技术方法及其仿真过程。首先介绍了STATCOM作为无功功率补偿装置的工作原理,即通过调节交流电压的幅值和相位来实现对无功功率的有效管理。接着详细描述了在MATLAB/SimuLink平台下构建三相STATCOM仿真模型的具体步骤,包括创建新模型、添加电源和负载、搭建主电路、加入控制模块以及完成整个电路的连接。然后阐述了如何通过对STATCOM输出电压和电流的精确调控达到无功补偿的目的,并展示了具体的仿真结果分析方法,如读取仿真数据、提取关键参数、绘制无功功率变化曲线等。最后指出,这种技术可以显著提升电力系统的稳定性与电能质量,展望了STATCOM在未来的发展潜力。 适合人群:电气工程专业学生、从事电力系统相关工作的技术人员、希望深入了解无功补偿技术的研究人员。 使用场景及目标:适用于想要掌握MATLAB/SimuLink软件操作技能的人群,特别是那些专注于电力电子领域的从业者;旨在帮助他们学会建立复杂的电力系统仿真模型,以便更好地理解STATCOM的工作机制,进而优化实际项目中的无功补偿方案。 其他说明:文中提供的实例代码可以帮助读者直观地了解如何从零开始构建个完整的三相STATCOM仿真环境,并通过图形化的方式展示无功补偿的效果,便于进步的学习与研究。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值