路由综合实验.docx
- 文档编号:5590173
- 上传时间:2022-12-28
- 格式:DOCX
- 页数:15
- 大小:67.88KB
路由综合实验.docx
《路由综合实验.docx》由会员分享,可在线阅读,更多相关《路由综合实验.docx(15页珍藏版)》请在冰豆网上搜索。
路由综合实验
路由综合实验
实验步骤:
1.配置相关地址,确保直连网络的通信
2.配置所有Serial接口时钟频率为64000,参考带宽为1544k
3.配置EIGRP区域,AS号为100,并关闭自动汇总
4.对R4的loopback接口实施手工汇总
5.在R1上实施EIGRP非等价负载均衡
6.根据拓扑所示,配置OSPF多区域
7.在R6、R7之间配置MD5验证
8.确保R5成为DR
9在R4上配置静态默认路由,并配置EIGRP默认路由
10.在R5上配置静态默认路由,并配置OSPF默认路由
11.在R1、R2上实施HSRP,确保R2成为主路由器,虚拟地址为192.168.1.254,并对R2的Fa0/0接口进行跟踪
12.确保EIGRP和OSPF两个区域通信,但不允许使用路由重分发
配置第一步:
R1的配置:
Router>enable
Router#conft
Router(config)#hostnameR1
R1(config)#intf0/0
R1(config-if)#noshutdown
R1(config-if)#ipadd192.168.12.1255.255.255.0
R1(config-if)#exit
R1(config)#intf1/0
R1(config-if)#noshutdown
R1(config-if)#ipadd192.168.14.1255.255.255.0
R1(config-if)#end
R1#showinterfaceserial2/0
Serial2/0isadministrativelydown,lineprotocolisdown(disabled)
HardwareisHD64570
MTU1500bytes,BW128Kbit,DLY20000usec,
R1#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
R1(config)#intse2/0
R1(config-if)#clockrate64000
R1(config-if)#bandwidth1544
R1(config-if)#nosh
R1(config-if)#ipadd192.168.13.1255.255.255.0
R1(config-if)#end
R2的配置:
Router#conft
Router(config)#hostnameR2
R2(config)#intf0/0
R2(config-if)#nosh
R2(config-if)#ipadd192.168.12.2255.255.255.0
R2(config-if)#intf1/0
R2(config-if)#nosh
R2(config-if)#ipadd192.168.1.1255.255.255.0
R2(config-if)#end
R3的配置:
Router>en
Router#conft
Router(config)#hostnameR3
R3(config)#ints2/0
R3(config-if)#bandwidth1544
R3(config-if)#nosh
R3(config-if)#ipadd192.168.13.2255.255.255.0
R3(config-if)#intf1/0
R3(config-if)#nosh
R3(config-if)#ipadd192.168.1.2255.255.255.0
R3(config-if)#end
R4的配置:
Router>en
Router#conft
Router(config)#intf1/0
Router(config-if)#nosh
Router(config-if)#ipadd192.168.14.2255.255.255.0
Router(config-if)#intf0/0
Router(config-if)#nosh
Router(config-if)#ipadd192.168.45.1255.255.255.0
Router(config-if)#ex
Router(config)#intloopback0
Router(config-if)#ipadd172.16.0.1255.255.255.0
Router(config-if)#intloopback1
Router(config-if)#ipadd172.16.1.1255.255.255.0
Router(config-if)#intloopback2
Router(config-if)#ipadd172.16.2.1255.255.255.0
Router(config-if)#intloopback3
Router(config-if)#ipadd172.16.3.1255.255.255.0
Router(config-if)#end
R5的配置:
Router>en
Router#conft
Router(config)#intf0/0
Router(config-if)#nosh
Router(config-if)#ipadd192.168.45.2255.255.255.0
Router(config-if)#intf1/0
Router(config-if)#nosh
Router(config-if)#ipadd192.168.56.1255.255.255.0
Router(config-if)#end
R6的配置:
Router#conft
Router(config)#hostnameR6
R6(config)#intf1/0
R6(config-if)#nosh
R6(config-if)#ipadd192.168.56.2255.255.255.0
R6(config-if)#intse3/0
R6(config-if)#nosh
R6(config-if)#ipadd192.168.67.1255.255.255.0
R6(config-if)#clockrate64000
R6(config-if)#bandwidth1544
R6(config-if)#end
R7的配置:
Router>en
Router#conft
Router(config)#hostnameR7
R7(config)#intse3/0
R7(config-if)#noshutdown
R7(config-if)#ipadd192.168.67.2255.255.255.0
R7(config-if)#bandwidth1544
R7(config-if)#ex
R7(config)#intloopback0
R7(config-if)#ipadd192.168.7.1255.255.255.0
R7(config-if)#intloopback1
R7(config-if)#ipadd192.168.8.1255.255.255.0
R7(config-if)#end
配置EIGRP区域,AS号为100,并关闭自动汇总
R1的配置:
R1#showipintbrief
InterfaceIP-AddressOK?
MethodStatusProtocol
FastEthernet0/0192.168.12.1YESmanualupup
FastEthernet1/0192.168.14.1YESmanualupup
Serial2/0192.168.13.1YESmanualupup
Serial3/0unassignedYESunsetadministrativelydowndown
FastEthernet4/0unassignedYESunsetadministrativelydowndown
FastEthernet5/0unassignedYESunsetadministrativelydowndown
R1#conft
R1(config)#routereigrp100
R1(config-router)#network192.168.12.0
R1(config-router)#network192.168.13.0
R1(config-router)#network192.168.14.0
R1(config-router)#noauto-summary
R1(config-router)#end
R2的配置:
R2>en
R2#showipintbrief
InterfaceIP-AddressOK?
MethodStatusProtocol
FastEthernet0/0192.168.12.2YESmanualupup
FastEthernet1/0192.168.1.1YESmanualupup
Serial2/0unassignedYESunsetadministrativelydowndown
Serial3/0unassignedYESunsetadministrativelydowndown
FastEthernet4/0unassignedYESunsetadministrativelydowndown
FastEthernet5/0unassignedYESunsetadministrativelydowndown
R2#conft
R2(config)#routereigrp100
R2(config-router)#network192.168.1.0
R2(config-router)#network192.168.12.0
R2(config-router)#passive-interfacef1/0
R2(config-router)#end
R3的配置:
R3#en
R3#conft
R3(config)#doshowipintbri
InterfaceIP-AddressOK?
MethodStatusProtocol
FastEthernet0/0unassignedYESunsetadministrativelydowndown
FastEthernet1/0192.168.1.2YESmanualupup
Serial2/0192.168.13.2YESmanualupup
Serial3/0unassignedYESunsetadministrativelydowndown
FastEthernet4/0unassignedYESunsetadministrativelydowndown
FastEthernet5/0unassignedYESunsetadministrativelydowndown
R3(config)#routereig100
R3(config-router)#network192.168.1.0
R3(config-router)#network192.168.13.0
R3(config-router)#noauto-summary
R3(config-router)#passive-interfacefa1/0
R3(config-router)#end
R4的配置:
Router>en
Router#conft
Router(config)#doshowipintbri
InterfaceIP-AddressOK?
MethodStatusProtocol
FastEthernet0/0192.168.45.1YESmanualupup
FastEthernet1/0192.168.14.2YESmanualupup
Serial2/0unassignedYESunsetadministrativelydowndown
Serial3/0unassignedYESunsetadministrativelydowndown
FastEthernet4/0unassignedYESunsetadministrativelydowndown
FastEthernet5/0unassignedYESunsetadministrativelydowndown
Loopback0172.16.0.1YESmanualupup
Loopback1172.16.1.1YESmanualupup
Loopback2172.16.2.1YESmanualupup
Loopback3172.16.3.1YESmanualupup
Router(config)#routereig100
Router(config-router)#network192.168.14.0
Router(config-router)#
%DUAL-5-NBRCHANGE:
IP-EIGRP100:
Neighbor192.168.14.1(FastEthernet1/0)isup:
newadjacency
Router(config-router)#network192.168.45.0
Router(config-router)#network172.16.0.00.0.3.255
Router(config-router)#noauto-summary
%DUAL-5-NBRCHANGE:
IP-EIGRP100:
Neighbor192.168.14.1(FastEthernet1/0)resync:
summaryconfigured
Router(config-router)#end
在R1上实施EIGRP非等价负载均衡
R1>showiproute
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODR
P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
172.16.0.0/24issubnetted,4subnets
D172.16.0.0[90/156160]via192.168.14.2,00:
44:
19,FastEthernet1/0
D172.16.1.0[90/156160]via192.168.14.2,00:
44:
19,FastEthernet1/0
D172.16.2.0[90/156160]via192.168.14.2,00:
44:
19,FastEthernet1/0
D172.16.3.0[90/156160]via192.168.14.2,00:
44:
19,FastEthernet1/0
D192.168.1.0/24[90/30720]via192.168.12.2,00:
57:
18,FastEthernet0/0
C192.168.12.0/24isdirectlyconnected,FastEthernet0/0
C192.168.13.0/24isdirectlyconnected,Serial2/0
C192.168.14.0/24isdirectlyconnected,FastEthernet1/0
D192.168.45.0/24[90/30720]via192.168.14.2,00:
44:
19,FastEthernet1/0
按拓扑所示,R1到192.168.1.0网段,有两条线路,但路由表显示是通过R2。
要实现R1到192.168.1.0网段可以经过R2和R3两条路径,故要在R1上实现非等价负载均衡。
首先要算出R1——R2;R1——R3这两条线路的流量比例,就是用它们的度量值相除。
首先查看它们的度量值:
R1>showipeigrptopology
IP-EIGRPTopologyTableforAS100/ID(192.168.14.1)
Codes:
P-Passive,A-Active,U-Update,Q-Query,R-Reply,r-Replystatus
P172.16.0.0/24,1successors,FDis156160
via192.168.14.2(156160/128256),FastEthernet1/0
P172.16.1.0/24,1successors,FDis156160
via192.168.14.2(156160/128256),FastEthernet1/0
P172.16.2.0/24,1successors,FDis156160
via192.168.14.2(156160/128256),FastEthernet1/0
P172.16.3.0/24,1successors,FDis156160
via192.168.14.2(156160/128256),FastEthernet1/0
P192.168.1.0/24,1successors,FDis30720
via192.168.12.2(30720/28160),FastEthernet0/0
via192.168.13.2(2172416/28160),Serial2/0
P192.168.12.0/24,1successors,FDis28160
viaConnected,FastEthernet0/0
P192.168.13.0/24,1successors,FDis2169856
viaConnected,Serial2/0
P192.168.14.0/24,1successors,FDis28160
viaConnected,FastEthernet1/0
P192.168.45.0/24,1successors,FDis30720
via192.168.14.2(30720/28160),FastEthernet1/0
流量比例=2172416÷30720≈70.7(取大数71)
再在R1上配置:
R1>en
R1#conft
R1(config)#routereigrp100
R1(config-router)#variance?
R1(config-router)#variance71
最后查看可以看到路由表,R1到192.168.1.0网段有两条路径了
R1#showiproute
D192.168.1.0/24[90/30720]via192.168.12.2,00:
03:
24,FastEthernet0/0
[90/2172416]via192.168.13.2,00:
03:
21,Serial2/0
对R4的loopback接口实施手工汇总
Eigrp的汇总是在接口下汇总:
R1(config)#intf1/0
R1(config-if)#ipsummary-addresseigrp100172.16.0.0255.255.252.0
R1(config-if)#doshowiprouteeigrp
172.16.0.0/16isvariablysubnetted,5subnets,2masks
D172.16.0.0/22isasummary,00:
04:
13,Null0
D172.16.0.0/24[90/156160]via192.168.14.2,00:
04:
13,FastEthernet1/0
D172.16.1.0/24[90/156160]via192.168.14.2,00:
04:
13,FastEthernet1/0
D172.16.2.0/24[90/156160]via192.168.14.2,00:
04:
13,FastEthernet1/0
D172.16.3.0/24[90/156160]via192.168.14.2,00:
04:
13,FastEthernet1/0
D192.168.1.0/24[90/30720]via192.168.12.2,00:
04:
13,FastEthernet0/0
[90/2172416]via192.168.13.2,00:
04:
13,Serial2/0
D192.168.45.0/24[90/30720]via192.168.14.2,00:
04:
13,FastEthernet1/0
二、配置OSPF
R5的配置:
Router>en
Router#conft
Router(config)#hostnameR5
R5(config)#doshowipintbri
InterfaceIP-AddressOK?
MethodStatusProtocol
FastEthernet0/0192.168.45.2YESmanualupup
FastEthernet1/0192.168.56.1YESmanualupup
Serial2/0unassignedYESunsetadministrativelydowndown
Serial3/0unassignedYESunset
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 路由 综合 实验