1、新版CCNPBSCI中文实验手册目录实验一、配置Eigrp 验证,汇总2实验二、配置ospf验证,汇总,虚链路12实验三、配置Ospf与Eigrp的路由再发布24实验四、配置Bgp34实验五、配置PIM auto-rp53实验一、配置Eigrp 验证,汇总 环境:三台路由器串口相连,其它接口配置如图 要求:1.配置EIGRP关闭自动路由汇总2.在R1的三个LOOP口进行EIGRP手工路由汇总3.R2、R3配置EIGRP接口密文验证4.验证并测试结果步骤一: 配置三个路由器接口使其连通。R1的配置R1(config)# interface Loopback0R1(config-if)# ip a
2、ddress 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)#
3、 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(
4、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(
5、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 100 R2(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
6、)# 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)#
7、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验证模式md5R2(config-if)# ip authentication key-chain eigrp 100 cisco 将chain应用到验证R3的配置R3(config)# key chain cis
8、coR3(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 -
9、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
10、area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 20.0.0.0/24 is subnetted, 1 subnetsD 20.1.1.0 90/2681856 via 10.1.1.1, 00:12:39, Serial0 40.0.0.0/24 is subnetted, 1 subnetsD 40.1.1.0 90/2809856 via 10.1.1.1, 00:12:
11、39, Serial0 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial0 30.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 su
12、mmary, 00:12:47, Null0 汇总产生的空接口R2#show ip routeCodes: 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,
13、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 routeGateway of last resort is not set 20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Se
14、rial1 40.0.0.0/24 is subnetted, 1 subnetsD 40.1.1.0 90/2297856 via 20.1.1.2, 00:13:13, Serial1 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial0 30.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 - conn
15、ected, 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
16、- IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial1 40.0.0.0/24 is subnetted, 1 subnetsC 40.1.1.0 is directl
17、y connected, Loopback0 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/2681856 via 20.1.1.1, 00:06:33, Serial1 30.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 U
18、ptime 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 e
19、igrp 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 Loopback0 ip address 30.1.1.1 255.255.255
20、.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
21、.2.0 0.0.0.255 network 30.1.3.0 0.0.0.255 no auto-summaryendR2#sh runhostname 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-cha
22、in 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-summaryendR3#sh runhostname 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
23、 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-summaryend实验二、配置ospf验证,汇总,虚链路环境:三台路由器串口相连,其它接口配置如图要求:1.在area 1配置ospf虚链路,router-id如图配置2.将R1的LOOP口配置ospf手工路由汇总3. 配置ospf接口验证(R1 和R2)4.使用show命令查看结果步骤一: 配置三个
24、路由器接口使其连通。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 addres
25、s 10.1.1.1 255.255.255.0R1(config-if)#no shutdownR2的配置R2(config)# interface Loopback0R2(config-if)# ip address 50.1.1.1 255.255.255.0R2(config)# interface s0R2(config-if)# ip address 10.1.1.2 255.255.255.0R2(config-if)#clockrate 64000R2(config-if)#no shutdownR2(config)# interface s1R2(config-if)# ip
26、 address 20.1.1.1 255.255.255.0R2(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)#no shutdown步骤二: 配置ospfR1的配置R1(config)#router osp
27、f 1 启用ospf协议,进程号为1R1(config-router)#router-id 1.1.1.1 配置router-idR1(config-router)#network 10.1.1.0 0.0.0.255 area 1 将接口参与到区域1内R1(config-router)#network 30.1.1.0 0.0.0.255 area 0 将接口参与到区域0内R1(config-router)#network 30.1.2.0 0.0.0.255 area 0R1(config-router)#network 30.1.3.0 0.0.0.255 area 0R2的配置R2(c
28、onfig)#router ospf 1R2(config-router)#router-id 2.2.2.2R2(config-router)#network 10.1.1.0 0.0.0.255 area 1R2(config-router)#network 20.1.1.0 0.0.0.255 area 2 将接口参与到区域2内R2(config-router)#network 50.1.1.0 0.0.0.255 area 1R3的配置R3(config)#router ospf 2R3(config-router)#router-id 3.3.3.3R3(config-router)
29、#network 20.1.1.0 0.0.0.255 area 2R3(config-router)#network 40.1.1.0 0.0.0.255 area 2步骤三:配置ospf虚链路R1的配置R1(config)#router ospf 1R1(config-router)# area 1 virtual-link 2.2.2.2 配置虚电路,指对端的router-idR2的配置R2(config)#router ospf 1R2(config-router)# area 1 virtual-link 1.1.1.1步骤四:配置ospf手工路由汇总R1的配置R1(config)#
30、router ospf 1R1(config-router)# area 0 range 30.1.0.0 255.255.252.0 手工汇总路由R2的配置R2(config)#router ospf 1R2(config-router)# area 0 range 30.1.0.0 255.255.252.0 因你的区域0已经延伸到此步骤五:配置ospf接口验证(R1 和R2)R1的配置R1(config)# interface Serial0R1(config-if)# ip ospf authentication message-digest 启用验证R1(config-if)# ip ospf message-digest-key 1 md5 cisco 定义密钥R2的配置R2(config)# interface Serial0R2(config-if)# ip ospf authentication message-digestR2(config-if)# ip ospf message-digest-key 1 md5 cisco 两端必须一致步骤六:查看路由表R1#
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1