路由综合实验(共13页).doc

上传人:飞****2 文档编号:8372115 上传时间:2022-03-17 格式:DOC 页数:13 大小:107KB
返回 下载 相关 举报
路由综合实验(共13页).doc_第1页
第1页 / 共13页
路由综合实验(共13页).doc_第2页
第2页 / 共13页
点击查看更多>>
资源描述

《路由综合实验(共13页).doc》由会员分享,可在线阅读,更多相关《路由综合实验(共13页).doc(13页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、精选优质文档-倾情为你奉上路由综合实验实验步骤:1.配置相关地址,确保直连网络的通信2.配置所有Serial接口时钟频率为64000,参考带宽为1544k3.配置EIGRP区域,AS号为100,并关闭自动汇总4.对R4的loopback接口实施手工汇总5.在R1上实施EIGRP非等价负载均衡6.根据拓扑所示,配置OSPF多区域7.在R6、R7之间配置MD5验证8.确保R5成为DR9在R4上配置静态默认路由,并配置EIGRP默认路由10.在R5上配置静态默认路由,并配置OSPF默认路由11.在R1、R2上实施HSRP,确保R2成为主路由器,虚拟地址为192.168.1.254,并对R2的Fa0/

2、0接口进行跟踪12.确保EIGRP和OSPF两个区域通信,但不允许使用路由重分发配置第一步:R1的配置:Routerenable Router#conf t Router(config)#hostname R1R1(config)#int f0/0R1(config-if)#no shutdown R1(config-if)#ip add 192.168.12.1 255.255.255.0R1(config-if)#exitR1(config)#int f1/0R1(config-if)#no shutdown R1(config-if)#ip add 192.168.14.1 255.25

3、5.255.0R1(config-if)#endR1#show interface serial2/0Serial2/0 is administratively down, line protocol is down (disabled)Hardware is HD64570MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,R1#conf t Enter configuration commands, one per line. End with CNTL/Z.R1(config)#int se2/0R1(config-if)#clock rate 640

4、00R1(config-if)#bandwidth 1544R1(config-if)#no shR1(config-if)#ip add 192.168.13.1 255.255.255.0R1(config-if)#end R2的配置:Router#conf t Router(config)#hostname R2R2(config)#int f0/0R2(config-if)#no sh R2(config-if)#ip add 192.168.12.2 255.255.255.0R2(config-if)#int f1/0R2(config-if)#no sh R2(config-if

5、)#ip add 192.168.1.1 255.255.255.0R2(config-if)#end R3的配置:RouterenRouter#conf t Router(config)#hostname R3R3(config)#int s2/0R3(config-if)#bandwidth 1544R3(config-if)#no shR3(config-if)#ip add 192.168.13.2 255.255.255.0R3(config-if)#int f1/0R3(config-if)#no sh R3(config-if)#ip add 192.168.1.2 255.25

6、5.255.0R3(config-if)#endR4的配置:RouterenRouter#conf t Router(config)#int f1/0Router(config-if)#no sh Router(config-if)#ip add 192.168.14.2 255.255.255.0Router(config-if)#int f0/0Router(config-if)#no shRouter(config-if)#ip add 192.168.45.1 255.255.255.0Router(config-if)#exRouter(config)#int loopback 0R

7、outer(config-if)#ip add 172.16.0.1 255.255.255.0Router(config-if)#int loopback 1Router(config-if)#ip add 172.16.1.1 255.255.255.0Router(config-if)#int loopback 2Router(config-if)#ip add 172.16.2.1 255.255.255.0Router(config-if)#int loopback 3Router(config-if)#ip add 172.16.3.1 255.255.255.0Router(co

8、nfig-if)#endR5的配置:RouterenRouter#conf t Router(config)#int f0/0Router(config-if)#no shRouter(config-if)#ip add 192.168.45.2 255.255.255.0Router(config-if)#int f1/0Router(config-if)#no shRouter(config-if)#ip add 192.168.56.1 255.255.255.0Router(config-if)#end R6的配置:Router#conf t Router(config)#hostna

9、me R6R6(config)#int f1/0R6(config-if)#no shR6(config-if)#ip add 192.168.56.2 255.255.255.0R6(config-if)#int se3/0R6(config-if)#no shR6(config-if)#ip add 192.168.67.1 255.255.255.0R6(config-if)#clock rate 64000R6(config-if)#bandwidth 1544R6(config-if)#endR7的配置:RouterenRouter#conf t Router(config)#hos

10、tname R7R7(config)#int se3/0R7(config-if)#no shutdown R7(config-if)#ip add 192.168.67.2 255.255.255.0R7(config-if)#bandwidth 1544R7(config-if)#exR7(config)#int loopback 0R7(config-if)#ip add 192.168.7.1 255.255.255.0R7(config-if)#int loopback 1R7(config-if)#ip add 192.168.8.1 255.255.255.0R7(config-

11、if)#end配置EIGRP区域,AS号为100,并关闭自动汇总R1的配置:R1#show ip int brief Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.12.1 YES manual up upFastEthernet1/0 192.168.14.1 YES manual up upSerial2/0 192.168.13.1 YES manual up upSerial3/0 unassigned YES unset administratively down downFastEthe

12、rnet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down downR1#conf t R1(config)#router eigrp 100R1(config-router)#network 192.168.12.0R1(config-router)#network 192.168.13.0R1(config-router)#network 192.168.14.0R1(config-router)#no auto-summa

13、ry R1(config-router)#end R2的配置:R2enR2#show ip int brief Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.12.2 YES manual up upFastEthernet1/0 192.168.1.1 YES manual up upSerial2/0 unassigned YES unset administratively down downSerial3/0 unassigned YES unset administratively dow

14、n downFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down downR2#conf t R2(config)#router eigrp 100R2(config-router)#network 192.168.1.0R2(config-router)#network 192.168.12.0R2(config-router)#passive-interface f1/0R2(config-router

15、)#endR3的配置:R3#enR3#conf t R3(config)#do show ip int briInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 unassigned YES unset administratively down downFastEthernet1/0 192.168.1.2 YES manual up upSerial2/0 192.168.13.2 YES manual up upSerial3/0 unassigned YES unset administratively down

16、 downFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down downR3(config)#router eig 100R3(config-router)#network 192.168.1.0R3(config-router)#network 192.168.13.0R3(config-router)#no auto-summary R3(config-router)#passive-interface

17、 fa1/0R3(config-router)#endR4的配置:RouterenRouter#conf tRouter(config)#do show ip int briInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.45.1 YES manual up upFastEthernet1/0 192.168.14.2 YES manual up upSerial2/0 unassigned YES unset administratively down downSerial3/0 unassigne

18、d YES unset administratively down downFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down downLoopback0 172.16.0.1 YES manual up upLoopback1 172.16.1.1 YES manual up upLoopback2 172.16.2.1 YES manual up upLoopback3 172.16.3.1 YES

19、manual up upRouter(config)#router eig 100Router(config-router)#network 192.168.14.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.14.1 (FastEthernet1/0) is up: new adjacencyRouter(config-router)#network 192.168.45.0Router(config-router)#network 172.16.0.0 0.0.3.255Router(con

20、fig-router)#no auto-summary %DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.14.1 (FastEthernet1/0) resync: summary configuredRouter(config-router)#end在R1上实施EIGRP非等价负载均衡R1show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF,

21、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, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded stat

22、ic routeGateway of last resort is not set172.16.0.0/24 is subnetted, 4 subnetsD 172.16.0.0 90/ via 192.168.14.2, 00:44:19, FastEthernet1/0D 172.16.1.0 90/ via 192.168.14.2, 00:44:19, FastEthernet1/0D 172.16.2.0 90/ via 192.168.14.2, 00:44:19, FastEthernet1/0D 172.16.3.0 90/ via 192.168.14.2, 00:44:1

23、9, FastEthernet1/0D 192.168.1.0/24 90/30720 via 192.168.12.2, 00:57:18, FastEthernet0/0C 192.168.12.0/24 is directly connected, FastEthernet0/0C 192.168.13.0/24 is directly connected, Serial2/0C 192.168.14.0/24 is directly connected, FastEthernet1/0D 192.168.45.0/24 90/30720 via 192.168.14.2, 00:44:

24、19, FastEthernet1/0按拓扑所示,R1到192.168.1.0网段,有两条线路,但路由表显示是通过R2。要实现R1到192.168.1.0网段可以经过R2和R3两条路径,故要在R1上实现非等价负载均衡。首先要算出 R1R2; R1R3这两条线路的流量比例,就是用它们的度量值相除。首先查看它们的度量值:R1show ip eigrp topology IP-EIGRP Topology Table for AS 100/ID(192.168.14.1)Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

25、r - Reply statusP 172.16.0.0/24, 1 successors, FD is via 192.168.14.2 (/), FastEthernet1/0P 172.16.1.0/24, 1 successors, FD is via 192.168.14.2 (/), FastEthernet1/0P 172.16.2.0/24, 1 successors, FD is via 192.168.14.2 (/), FastEthernet1/0P 172.16.3.0/24, 1 successors, FD is via 192.168.14.2 (/), Fas

26、tEthernet1/0P 192.168.1.0/24, 1 successors, FD is 30720 via 192.168.12.2 (30720/28160), FastEthernet0/0 via 192.168.13.2 (/28160), Serial2/0P 192.168.12.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0P 192.168.13.0/24, 1 successors, FD is via Connected, Serial2/0P 192.168.14.0/24, 1 s

27、uccessors, FD is 28160 via Connected, FastEthernet1/0P 192.168.45.0/24, 1 successors, FD is 30720 via 192.168.14.2 (30720/28160), FastEthernet1/0流量比例=3072070.7(取大数71)再在R1上配置:R1enR1#conf tR1(config)#router eigrp 100R1(config-router)#variance ?R1(config-router)#variance 71最后查看可以看到路由表,R1到192.168.1.0网段有

28、两条路径了R1#show ip route D 192.168.1.0/24 90/30720 via 192.168.12.2, 00:03:24, FastEthernet0/0 90/ via 192.168.13.2, 00:03:21, Serial2/0对R4的loopback接口实施手工汇总Eigrp的汇总是在接口下汇总:R1(config)#int f1/0R1(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.252.0R1(config-if)#do show ip route eigrp172.16.0.

29、0/16 is variably subnetted, 5 subnets, 2 masksD 172.16.0.0/22 is a summary, 00:04:13, Null0D 172.16.0.0/24 90/ via 192.168.14.2, 00:04:13, FastEthernet1/0D 172.16.1.0/24 90/ via 192.168.14.2, 00:04:13, FastEthernet1/0D 172.16.2.0/24 90/ via 192.168.14.2, 00:04:13, FastEthernet1/0D 172.16.3.0/24 90/

30、via 192.168.14.2, 00:04:13, FastEthernet1/0D 192.168.1.0/24 90/30720 via 192.168.12.2, 00:04:13, FastEthernet0/0 90/ via 192.168.13.2, 00:04:13, Serial2/0D 192.168.45.0/24 90/30720 via 192.168.14.2, 00:04:13, FastEthernet1/0二、配置OSPFR5的配置:RouterenRouter#conf tRouter(config)#hostname R5R5(config)#do s

31、how ip int briInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.45.2 YES manual up upFastEthernet1/0 192.168.56.1 YES manual up upSerial2/0 unassigned YES unset administratively down downSerial3/0 unassigned YES unset administratively down downFastEthernet4/0 unassigned YES unse

32、t administratively down downFastEthernet5/0 unassigned YES unset administratively down downR5(config)#router ospf 1R5(config-router)#network 192.168.45.0 0.0.0.255 area 0R5(config-router)#network 192.168.56.0 0.0.0.255 area 0R6的配置:R6(config)#router ospf 1R6(config-router)#network 192.168.56.0 0.0.0.

33、255 area 0R6(config-router)#network 192.168.67.0 0.0.0.255 area 1R7的配置:R7(config)#router ospf 1R7(config-router)#network 192.168.67.0 0.0.0.255 area 106:34:01: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.67.1 on Serial3/0 from LOADING to FULL, Loading DoneR7(config-router)#network 192.168.7.0 0.0.0.255 a

34、rea 1R7(config-router)#network 192.168.8.0 0.0.0.255 area 1R7(config-router)#end查看ospf路由表:R5show ip route ospf192.168.7.0/32 is subnetted, 1 subnetsO IA 192.168.7.1 110/66 via 192.168.56.2, 00:04:49, FastEthernet1/0192.168.8.0/32 is subnetted, 1 subnetsO IA 192.168.8.1 110/66 via 192.168.56.2, 00:04

35、:49, FastEthernet1/0O IA 192.168.67.0 110/65 via 192.168.56.2, 00:04:49, FastEthernet1/03、 在R6、R7之间配置MD5验证,确保R5成为DRR5的配置:R5enR5#show ip ospf int f1/0FastEthernet1/0 is up, line protocol is upInternet address is 192.168.56.1/24, Area 0Process ID 1, Router ID 192.168.56.1, Network Type BROADCAST, Cost

36、: 1Transmit Delay is 1 sec, State BDR, Priority 1Designated Router (ID) 192.168.67.1, Interface address 192.168.56.2Backup Designated Router (ID) 192.168.56.1, Interface address 192.168.56.1Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5Hello due in 00:00:04Index 2/2, flood queu

37、e length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 1Last flood scan time is 0 msec, maximum is 0 msecNeighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 192.168.67.1 (Designated Router)Suppress hello for 0 neighbor(s)R5#conf tR5(config)#int f1/0R5(config-if)#ip o

38、spf priority 2R5(config-if)#endR6上配置md5验证:R6enR6#conf tR6(config)#int se3/0R6(config-if)#ip ospf authentication message-digestR6(config-if)#ip ospf message-digest-key 1 md5 ccnaR6(config-if)#endR7上配置md5验证:R7#conf t R7(config)#int se3/0R7(config-if)#ip ospf authentication message-digest R7(config-if)

39、#ip ospf message-digest-key 1 md5 ccna R7(config-if)#end重点:如何让EIGRP和OSPF两个不同动态协议进行通信1、 在R4上配置静态默认路由,并配置EIGRP默认路由。R4enR4#conf t R4(config)#ip route 0.0.0.0 0.0.0.0 192.168.45.2R4(config)#ip default-network 192.168.45.0R4(config)#do show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M -

40、 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, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U -

41、per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 192.168.45.2 to network 0.0.0.0172.16.0.0/16 is variably subnetted, 5 subnets, 2 masksD 172.16.0.0/22 90/30720 via 192.168.14.1, 00:37:48, FastEthernet1/0C 172.16.0.0/24 is directly connected, Loopback0C 172.

42、16.1.0/24 is directly connected, Loopback1C 172.16.2.0/24 is directly connected, Loopback2C 172.16.3.0/24 is directly connected, Loopback3D 192.168.1.0/24 90/33280 via 192.168.14.1, 00:37:48, FastEthernet1/0D 192.168.12.0/24 90/30720 via 192.168.14.1, 00:37:48, FastEthernet1/0D 192.168.13.0/24 90/ v

43、ia 192.168.14.1, 00:37:48, FastEthernet1/0C 192.168.14.0/24 is directly connected, FastEthernet1/0C* 192.168.45.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 1/0 via 192.168.45.22、 在R5上配置静态默认路由,并配置OSPF默认路由R5enR5#conf tR5(config)#ip route 0.0.0.0 0.0.0.0 192.168.45.1R5(config)#router ospf 1

44、R5(config-router)#default-information ?originate Distribute a default routeR5(config-router)#default-information originate R5(config-router)#do 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

45、 NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resor

46、t is 192.168.45.1 to network 0.0.0.0192.168.7.0/32 is subnetted, 1 subnetsO IA 192.168.7.1 110/66 via 192.168.56.2, 00:02:15, FastEthernet1/0192.168.8.0/32 is subnetted, 1 subnetsO IA 192.168.8.1 110/66 via 192.168.56.2, 00:02:15, FastEthernet1/0C 192.168.45.0/24 is directly connected, FastEthernet0/0C 192.168.56.0/24 is directly connected, FastEthernet1/0O IA 192.168.67.0/24 110/65 via 192.168.56.2, 00:02:15, FastEthernet1/0S* 0.0.0.0/0 1/0 via 192.168.45.1R5(config-router)#end 三、在R1、R2上实施HSRP,确保R2成为主路由器,虚拟地址为192.1

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 应用文书 > 教育教学

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁