bsci实验

  • 格式:doc
  • 大小:394.00 KB
  • 文档页数:37

目录实验一、配置Eigrp 验证,汇总 (2)实验二、配置ospf验证,汇总,虚链路 (12)实验三、配置Ospf与Eigrp的路由再发布 (24)实验四、配置Bgp (34)实验五、配置PIM auto-rp (53)实验一、配置Eigrp 验证,汇总环境:三台路由器串口相连,其它接口配置如图要求:1.配置EIGRP关闭自动路由汇总2.在R1的三个LOOP口进行EIGRP手工路由汇总3.R2、R3配置EIGRP接口密文验证4.验证并测试结果步骤一:配置三个路由器接口使其连通。

R1的配置R1(config)#interface Loopback0R1(config-if)#ip address 30.1.1.1 255.255.255.0R1(config)#interface Loopback1R1(config-if)#ip address 30.1.2.1 255.255.255.0R1(config)#interface Loopback2R1(config-if)#ip address 30.1.3.1 255.255.255.0R1(config)#interface s0R1(config-if)#ip address 10.1.1.2 255.255.255.0R1(config-if)#no shutdownR2的配置R2(config)#interface s0R2(config-if)#ip address 10.1.1.1 255.255.255.0R2(config-if)#clockrate 64000R2(config-if)#no shutdownR2(config)#interface s1R2(config-if)#ip address 20.1.1.1 255.255.255.0R12(config-if)#no shutdownR3的配置R3(config)#interface Loopback0R3(config-if)#ip address 40.1.1.1 255.255.255.0R3(config)#interface s1R3(config-if)#ip address 20.1.1.2 255.255.255.0R3(config-if)#clockrate 64000R3(config-if)#no shutdown步骤二:配置EigrpR1的配置R1(config)#router eigrp 100 →启用eigrp,自治号为100,三台路由器保持一致R1(config-router)#network 10.1.1.0 0.0.0.255 →使相关接口参与eigrpR1(config-router)#network 30.1.1.0 0.0.0.255R1(config-router)#network 30.1.2.0 0.0.0.255R1(config-router)#network 30.1.3.0 0.0.0.255R1(config-router)# no auto-summary →关闭自动汇总R2的配置R2(config)#router eigrp 100R2(config-router)#network 10.1.1.0 0.0.0.255R2(config-router)#network 20.1.1.0 0.0.0.255R2(config-router)# no auto-summaryR3的配置R3(config)#router eigrp 100R3(config-router)#network 20.1.1.0 0.0.0.255R3(config-router)#network 40.1.1.0 0.0.0.255R3(config-router)# no auto-summary步骤三:配置EIGRP手工路由汇总R1的配置R1(config)#interface s0R1(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 s1R2(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 ciscoR3(config-keychain)#key 1R3(config-keychain-key)#key-string aaaR3(config)#interface s1R3(config-if)#ip authentication mode eigrp 100 md5R3(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 - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsD 20.1.1.0 [90/2681856] via 10.1.1.1, 00:12:39, Serial040.0.0.0/24 is subnetted, 1 subnetsD 40.1.1.0 [90/2809856] via 10.1.1.1, 00:12:39, Serial010.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial030.0.0.0/8 is variably subnetted, 4 subnets, 2 masksC 30.1.3.0/24 is directly connected, Loopback2C 30.1.2.0/24 is directly connected, Loopback1C 30.1.1.0/24 is directly connected, Loopback0D 30.1.0.0/22 is a summary, 00:12:47, Null0 →汇总产生的空接口R2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial140.0.0.0/24 is subnetted, 1 subnetsD 40.1.1.0 [90/2297856] via 20.1.1.2, 00:13:13, Serial110.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial030.0.0.0/22 is subnetted, 1 subnetsD 30.1.0.0 [90/2297856] via 10.1.1.2, 00:10:02, Serial0 →学到了汇总的条目R3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial140.0.0.0/24 is subnetted, 1 subnetsC 40.1.1.0 is directly connected, Loopback010.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 [90/2681856] via 20.1.1.1, 00:06:33, Serial130.0.0.0/22 is subnetted, 1 subnetsD 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 100H Address Interface Hold Uptime SRTT RTO Q Seq Type(sec) (ms) Cnt Num0 10.1.1.1 Se0 11 00:13:11 28 200 0 35R2#show ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq Type(sec) (ms) Cnt Num0 10.1.1.2 Se0 12 00:10:49 670 4020 0 221 20.1.1.2 Se1 13 00:14:04 36 216 0 14R3#sh ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq Type(sec) (ms) Cnt Num0 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 runhostname R1!interface Loopback0ip address 30.1.1.1 255.255.255.0!interface Loopback1ip address 30.1.2.1 255.255.255.0!interface Loopback2ip address 30.1.3.1 255.255.255.0!interface Serial0ip address 10.1.1.2 255.255.255.0ip summary-address eigrp 100 30.1.0.0 255.255.252.0 5!router eigrp 100network 30.1.2.0 0.0.0.255network 30.1.3.0 0.0.0.255no auto-summaryendR2#sh runhostname R2!key chain ciscokey 1key-string aaa!interface Serial0ip address 10.1.1.1 255.255.255.0 clockrate 64000!interface Serial1ip address 20.1.1.1 255.255.255.0ip authentication mode eigrp 100 md5ip authentication key-chain eigrp 100 cisco !router eigrp 100network 10.1.1.0 0.0.0.255network 20.1.1.0 0.0.0.255no auto-summaryendR3#sh runhostname R3!key chain ciscokey 1key-string aaa!interface Loopback0ip address 40.1.1.1 255.255.255.0!interface Serial1ip address 20.1.1.2 255.255.255.0ip authentication mode eigrp 100 md5ip authentication key-chain eigrp 100 cisco clockrate 64000!router eigrp 100no auto-summaryend实验二、配置ospf验证,汇总,虚链路环境:三台路由器串口相连,其它接口配置如图要求:1.在area 1配置ospf虚链路,router-id如图配置2.将R1的LOOP口配置ospf手工路由汇总3. 配置ospf接口验证(R1 和R2)4.使用show命令查看结果步骤一:配置三个路由器接口使其连通。