版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、目录实验一、配置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)# R1(config)# interfac
2、e Loopback1R1(config-if)# ip address 30.1.2R1(config)# interface Loopback2R1(config-if)# ip address 30.1.3R1(config)# interface s0R1(config-if)# ip address 10.1.1.2R1(config-if)#no shutdownR2的配置R2(config)# interface s0R2(config-if)# ip address 10.1.1.1R2(config-if)#clockrate 64000R2(config-if)#no sh
3、utdownR2(config)# interface s1R2(config-if)# ip address 2R12(config-if)#no shutdownR3的配置R3(config)# interface Loopback0R3(config-if)# ip address 4R3(config)# interface s1R3(config-if)# ip address 20.1.1.2R3(config-if)#clockrate 64000R3(config-if)#no shutdown步骤二: 配置EigrpR1的配置R1(config)# router eigrp
4、100 启用eigrp,自治号为100,三台路由器保持一致R1(config-router)# 使相关接口参与eigrpR1(config-router)# network 3R1(config-router)# network 30.1.2R1(config-router)# network 30.1.3R1(config-router)# no auto-summary 关闭自动汇总R2的配置R2(config)# router eigrp 100 R2(config-router)# R2(config-router)# network 20R2(config-router)# no a
5、uto-summaryR3的配置R3(config)# router eigrp 100R3(config-router)# network 2R3(config-router)# network 40R3(config-router)# no auto-summary步骤三:配置EIGRP手工路由汇总R1的配置R1(config)# interface s0R1(config-if)# 手工汇总路由步骤四:在r2和r3上配置EIGRP 验证R2的配置R2(config)# key chain cisco 定义chain名称R2(config-keychain)# key 1 key值编号,须
6、一致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 ciscoR3(config-keychain)# key 1R3(config-keychain-key)# key-str
7、ing 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 - BGP D - EIGRP, EX - EIGRP external, O -
8、 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 - O
9、DR, 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:39, Serial0 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is
10、 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 summary, 00:12:47, Null0 汇总产生的空接口R2#show ip routeCodes: C - co
11、nnected, 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, L
12、2 - 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 subnetsD 40.1.1.0 90/22978
13、56 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 - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D
14、- 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
15、, 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 directly connected, Loopback0 10.0.0.0/24 is subnetted, 1 subnetsD
16、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 Uptime SRTT RTO Q Seq Type (sec) (ms) Cnt Num0 10.1.1.1 Se0 1
17、1 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 In
18、terface 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 4 测试连通性,显示已通!R3#ping 3!步骤八:显示当前配置信息R1#sh runhostname R1!interface Loopback0!interface Loopback1!interface Loopback2!interface Serial0 ip summary-address eigrp 100 30.1.0.0 255.255.2
19、52.0 5!router eigrp 100 no auto-summaryendR2#sh runhostname R2!key chain cisco key 1 key-string aaa!interface Serial0 clockrate 64000!interface Serial1 ip authentication mode eigrp 100 md5 ip authentication key-chain eigrp 100 cisco!router eigrp 100 no auto-summaryendR3#sh runhostname R3!key chain c
20、isco key 1 key-string aaa!interface Loopback0!interface Serial1 ip authentication mode eigrp 100 md5 ip authentication key-chain eigrp 100 cisco clockrate 64000!router eigrp 100 no auto-summaryend实验二、配置ospf验证,汇总,虚链路环境:三台路由器串口相连,其它接口配置如图要求:1.在area 1配置ospf虚链路,router-id如图配置2.将R1的LOOP口配置ospf手工路由汇总3. 配置o
21、spf接口验证(R1 和R2)4.使用show命令查看结果步骤一: 配置三个路由器接口使其连通。R1的配置R1(config)# interface Loopback0R1(config-if)# R1(config)# interface Loopback1R1(config-if)# ip address 30.1.2R1(config)# interface Loopback2R1(config-if)# ip address 30.1.3R1(config)# interface s0R1(config-if)# ip address 10.1.1.1R1(config-if)#no
22、shutdownR2的配置R2(config)# interface Loopback0R2(config-if)# ip address 5R2(config)# interface s0R2(config-if)# ip address 10.1.1.2R2(config-if)#clockrate 64000R2(config-if)#no shutdownR2(config)# interface s1R2(config-if)# ip address 2R2(config-if)#no shutdownR3的配置R3(config)# interface Loopback0R3(co
23、nfig-if)# ip address 4R3(config)# interface s1R3(config-if)# ip address 20.1.1.2R3(config-if)#clockrate 64000R3(config)#no shutdown步骤二: 配置ospfR1的配置R1(config)#router ospf 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(co
24、nfig-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(config)#router ospf 1R2(config-router)#router-id R2(config-router)#network 10.1.1.0 0.0.0.255 area 1R2(config-router)#network 20.1.1.
25、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 R3(config-router)#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)#
26、area 1 virtual-link 2.2.2.2 配置虚电路,指对端的router-idR2的配置R2(config)#router ospf 1R2(config-router)# area 1 virtual-link 步骤四:配置ospf手工路由汇总R1的配置R1(config)#router ospf 1R1(config-router)# 手工汇总路由R2的配置R2(config)#router ospf 1R2(config-router)# 因你的区域0已经延伸到此步骤五:配置ospf接口验证(R1 和R2)R1的配置R1(config)# interface Serial
27、0R1(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#show ip routeCodes: C - co
28、nnected, 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, L
29、2 - 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 50.0.0.0/32 is subnetted, 1 subnetsO 50.1.1.1 110/65 via 10.1.1.2, 00:09:41, Serial0 OSPF域内学来的路由条目 20.0.0.0/24 is subnetted, 1 subn
30、etsO IA 20.1.1.0 110/128 via 10.1.1.2, 00:09:31, Serial0 OSPF域间学来的路由条目 40.0.0.0/32 is subnetted, 1 subnetsO IA 40.1.1.1 110/129 via 10.1.1.2, 00:09:31, 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/
31、24 is directly connected, Loopback2C 30.1.2.0/24 is directly connected, Loopback1C 30.1.1.0/24 is directly connected, Loopback0O 30.1.0.0/22 is a summary, 00:09:32, Null0 手工汇总的条目R2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O
32、 - 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 -
33、 ODR, P - periodic downloaded static routeGateway of last resort is not set 50.0.0.0/24 is subnetted, 1 subnetsC 50.1.1.0 is directly connected, Loopback0 20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial1 40.0.0.0/32 is subnetted, 1 subnetsO 40.1.1.1 110/65 via 20.1.1.2, 0
34、0:04:48, Serial1 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 masksO 30.1.2.1/32 110/65 via 10.1.1.1, 00:04:38, Serial0O 30.1.3.1/32 110/65 via 10.1.1.1, 00:04:39, Serial0O 30.1.0.0/22 is a summary, 00:04:39, Null0O 30.1.
35、1.1/32 110/65 via 10.1.1.1, 00:04:39, Serial0R3#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 ext
36、ernal 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 routeGateway of last resort is not set 50.0.0.0/32 is subnetted, 1 subnetsO IA 50.1.1.1 110/65 v
37、ia 20.1.1.1, 00:02:02, Serial1 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 directly connected, Loopback0 10.0.0.0/24 is subnetted, 1 subnetsO IA 10.1.1.0 110/128 via 20.1.1.1, 00:02:02, Serial1 30.0.0.0/22 is subnetted
38、, 1 subnetsO IA 30.1.0.0 110/129 via 20.1.1.1, 00:01:47, Serial1步骤七:查看邻居表R1#show ip ospf neighbor 邻居已建立,点对点无DR之说Neighbor ID Pri State Dead Time Address Interface 1 FULL/ - 00:00:33 10.1.1.2 Serial0R2#show ip ospf neighborNeighbor ID Pri State Dead Time Address Interface 1 FULL/ - 00:00:33 10.1.1.1 S
39、erial03.3.3.3 1 FULL/ - 00:00:34 20.1.1.2 Serial1R3#show ip ospf neighborNeighbor ID Pri State Dead Time Address Interface 1 FULL/ - 00:00:37 20.1.1.1 Serial1步骤八:用ping命令测试R1#ping 测试连通性!Success rate is 100 percent (5/5), round-trip min/avg/max = 56/60/68 msR1#ping!Success rate is 100 percent (5/5), r
40、ound-trip min/avg/max = 32/32/36 msR2#ping !Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms步骤九:显示当前配置信息R1的配置信息R1#sh runhostname R1!interface Loopback0!interface Loopback1!interface Loopback2!interface Serial0 ip ospf authentication message-digest ip ospf message-digest-key 1
41、md5 cisco!router ospf 1 router-id area 1 virtual-link network 10.1.1.0 0.0.0.255 area 1 network 30.1.1.0 0.0.0.255 area 0 network 30.1.2.0 0.0.0.255 area 0 network 30.1.3.0 0.0.0.255 area 0endR2#sh runhostname R2interface Loopback0!interface Serial0 ip ospf authentication message-digest ip ospf mess
42、age-digest-key 1 md5 cisco clockrate 64000!interface Serial1!router ospf 1 router-id area 1 virtual-link network 10.1.1.0 0.0.0.255 area 1 network 20.1.1.0 0.0.0.255 area 2 network 50.1.1.0 0.0.0.255 area 1endR3#sh runHostname R3!interface Loopback0!interface Serial1 clockrate 64000!router ospf 2 ro
43、uter-id network 20.1.1.0 0.0.0.255 area 2 network 40.1.1.0 0.0.0.255 area 2end实验三、配置Ospf与Eigrp的路由再发布环境:三台路由器串口相连,接口配置如图要求:1.配置EIGRP和关闭自动路由汇总2.在R1上配置LOOP口的EIGRP手工路由汇总3.在R2和R3配置Ospf 接口验证4.在ASBR(R2)上做eigrp和ospf双向再发布5.在R3上将所有loopback 口再发布到ospf中,但loopback2不能被R2,R3学到,不允许使用network命令6.练习本课所有show命令步骤一:配置三个路由
44、器接口使其连通。R1的配置R1(config)# interface Loopback0R1(config-if)#R1(config)# interface Loopback1R1(config-if)#ip address 172.168.2R1(config)#interface Loopback2R1(config-if)#ip address 172.168.3R1(config)# interface s0R1(config-if)# ip address 10.1.1.1R1(config-if)#clock rate 64000R1(config-if)#no shutdown
45、R2的配置R2(config)#interface s0R2(config-if)#ip address 20.1.1.1R2(config-if)#no shutdownR2(config)#interface s1R2(config-if)# ip address 10.1.1.1R2(config-if)#no shutdownR3的配置R3(config)# interface Loopback0R3(config-if)# R3(config)# interface Loopback1R3(config-if)#ip address 192.168.2R3(config)#inter
46、face Loopback2R3(config-if)#ip address 192.168.3R3(config)# interface s1R3(config-if)# ip address 20.1.1.2R3(config-if)#clock rate 64000R3(config-if)#no shutdown步骤二: 配置Eigrp ,OspfR1的配置R1(config)# router eigrp 100 启用EIGRPR1(config-router)# 发布相应接口R1(config-router)#R1(config-router)#R1(config-router)#R
47、1(config-router)# no auto-summary 关闭自动汇总R2的配置R2(config)# router eigrp 100R2(config-router)# R2(config-router)# no auto-summaryR2(config)# router ospf 10 在R2上即启用EIGRP并且启用OSPFR2(config-router)# network 20.1.1.0 0.0.0.255 area 0R3的配置R3(config)# router ospf 10R3(config-router)# network 20.1.1.0 0.0.0.25
48、5 area 0步骤三:配置EIGRP手工路由汇总和Ospf接口验证R1的配置R1(config)# interface s0R1(config-if)# 手工汇总R2的配置R2(config)# interface s0R2(config-if)# ip ospf authentication message-digest 启用接口验证R2(config-if)# ip ospf message-digest-key 1 md5 ciscoR3的配置R3(config)# interface s1R3(config-if)# ip ospf authentication message-di
49、gest 启用接口认证R3(config-if)# ip ospf message-digest-key 1 md5 cisco步骤四:在R2,R3上做路由再发布并控制loopback2不能被R1,R2学到R2的配置R2(config)# router eigrp 100R2(config-router)# redistribute ospf 10 metric 10000 100 255 1 1500将ospf重分发进eigrpR2(config)# router ospf 10R2(config-router)# redistribute eigrp 100 subnets 将eigrp路
50、由重分发到ospfR3的配置R3(config)# 定义分发条件列表R3(config)# R3(config)# R3(config)# route-map o-e permit 10 做映射列表允许相应条目R3 (config-route-map)# match ip address 1 将列表加载R3(config)# route-map o-e deny 20 拒绝相应条目的映射列表R3 (config-route-map)# match ip address 2 将列表加载R3(config)# route-map o-e permit 25 最后允许其它所有R3(config)# router ospf 10R3(config-router)# redistribute connected subnets route-map o-e步骤五:查看路由表R1#sh 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
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年健康生活知识竞赛试卷
- 2026年科学素养竞赛模拟题
- 感控护理考核试题及参考答案
- 吉林省长春市英语小升初巩固策略详解
- 国际贸易法律制度与实务考试及答案
- 2026年淮北卫校语文考试试题及答案
- 临湘事业编制考试试题及答案
- 海南市重点中学2027届九年级化学第一学期期末复习检测模拟试题含解析
- 2026事业单位工勤技能-天津-天津计算机文字录入处理员二级(技师)历年参考题库含答案详解3套试卷
- 2026事业单位工勤技能-天津-天津保安员五级(初级工)历年参考题库含答案详解3套试卷
- 民法典合同编培训
- 村基层组织建设年整改提高晋位升级方案范文(2篇)
- 丹东深基坑降水施工方案
- 人教PEP版(2024)三年级上册英语Unit 1 Making friends单元整体教学设计(共6课时)
- JTG-QB-003-2003公路桥涵标准图钢筋混凝土盖板涵
- (高清版)DZT 0295-2016 土地质量生态地球化学评价规范
- 堤防波浪壅高、爬高计算表格
- 教育统计与测量评价新编教程全套教学课件
- 色盲检测图(第五版)-色盲5版
- 稻茬小麦高产超高产栽培综合技术演示文稿
- DB44T 195.3-2004生物防火林带建设 技术规程
评论
0/150
提交评论