实验九静态路由汇总资料.docx
《实验九静态路由汇总资料.docx》由会员分享,可在线阅读,更多相关《实验九静态路由汇总资料.docx(18页珍藏版)》请在冰豆网上搜索。
![实验九静态路由汇总资料.docx](https://file1.bdocx.com/fileroot1/2023-1/29/795a79ac-4c43-4639-a850-cdf9c117c498/795a79ac-4c43-4639-a850-cdf9c117c4981.gif)
实验九静态路由汇总资料
实验九:
静态路由
一:
实验目标
1掌握静态路由与缺省路由的配置;
2掌握浮动静态路由、替代路由的配置与运用,掌握最长掩码匹配原则。
二:
拓扑图
三:
预期结果
全网互联能互联,且RT3与RT1之间的流量负载均衡。
四:
调试
RT1:
showipintbri:
Showiproute:
RT3:
Showipintbri:
Showiproute:
RT5:
Showipintbri:
Showiproute:
RT7:
Showipintbri:
Showiproute:
VPC1—VPC5的配置:
五:
测试
将RT3的se0/0端口showdown:
VPC5pingVPC1:
VPC5pingVPC2:
VPC5pingVPC3:
VPC5pingVPC4:
VPC5ping202.202.202.202:
六:
总结与原理分析
对于静态路由,在写路由表的时候要细心,按照一定规律顺序来写;对于路由汇总,我们可以将大量的细化路由汇总成一条或者几条汇总路由。
通过汇总路由我们可以减少全局路由表中的细化路由条目,提高效率。
对于负载均衡,只要目的网段一样,子网掩码一样,AD值一样,度量值一样就可以实现负载均衡,他可以减少单个链路的流量,减少其负担。
七:
配置showrun
RT1:
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameRT1
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceSerial0/0
ipaddress192.168.1.1255.255.255.252
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/1
ipaddress192.168.1.5255.255.255.252
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/2
ipaddress192.168.1.9255.255.255.252
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/3
noipaddress
shutdown
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceFastEthernet2/0
ipaddress192.168.2.9255.255.255.248
duplexauto
speedauto
!
interfaceEthernet3/0
ipaddress192.168.20.1255.255.255.0
half-duplex
!
interfaceEthernet3/1
ipaddress192.168.21.1255.255.255.0
half-duplex
!
interfaceEthernet3/2
noipaddress
shutdown
half-duplex
!
interfaceEthernet3/3
noipaddress
shutdown
half-duplex
!
iphttpserver
ipclassless
iproute192.168.0.0255.255.0.0Null0
iproute192.168.36.0255.255.255.0192.168.1.2
iproute192.168.36.0255.255.255.0192.168.1.6
iproute192.168.37.0255.255.255.0192.168.1.6
iproute192.168.37.0255.255.255.0192.168.1.2
iproute192.168.44.0255.255.255.0192.168.1.10
iproute202.202.202.200255.255.255.248192.168.2.10
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
login
!
end
RT3:
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameRT3
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceSerial0/0
ipaddress192.168.1.2255.255.255.252
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/1
ipaddress192.168.1.6255.255.255.252
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/2
noipaddress
shutdown
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/3
noipaddress
shutdown
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceEthernet3/0
ipaddress192.168.36.1255.255.255.0
half-duplex
!
interfaceEthernet3/1
ipaddress192.168.37.30255.255.255.0secondary
ipaddress192.168.37.20255.255.255.0secondary
ipaddress192.168.37.1255.255.255.0
half-duplex
!
interfaceEthernet3/2
noipaddress
shutdown
half-duplex
!
interfaceEthernet3/3
noipaddress
shutdown
half-duplex
!
iphttpserver
ipclassless
iproute0.0.0.00.0.0.0192.168.1.1
iproute0.0.0.00.0.0.0192.168.1.5
iproute192.168.1.8255.255.255.252192.168.1.1
iproute192.168.1.8255.255.255.252192.168.1.5
iproute192.168.2.8255.255.255.248192.168.1.1
iproute192.168.2.8255.255.255.248192.168.1.5
iproute192.168.20.0255.255.255.0192.168.1.1
iproute192.168.20.0255.255.255.0192.168.1.5
iproute192.168.21.0255.255.255.0192.168.1.5
iproute192.168.21.0255.255.255.0192.168.1.1
iproute192.168.32.0255.255.248.0Null0
iproute192.168.44.0255.255.255.0192.168.1.1
iproute192.168.44.0255.255.255.0192.168.1.5
iproute202.202.202.200255.255.255.248192.168.1.5
iproute202.202.202.200255.255.255.248192.168.1.1
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
login
!
end
RT5:
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameRT5
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceSerial0/0
ipaddress192.168.1.10255.255.255.252
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/1
noipaddress
shutdown
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/2
noipaddress
shutdown
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceSerial0/3
noipaddress
shutdown
serialrestart-delay0
nodce-terminal-timing-enable
!
interfaceEthernet3/0
ipaddress192.168.44.1255.255.255.0
half-duplex
!
interfaceEthernet3/1
noipaddress
shutdown
half-duplex
!
interfaceEthernet3/2
noipaddress
shutdown
half-duplex
!
interfaceEthernet3/3
noipaddress
shutdown
half-duplex
!
iphttpserver
ipclassless
iproute0.0.0.00.0.0.0192.168.1.9
iproute192.168.1.0255.255.255.252192.168.1.9
iproute192.168.1.4255.255.255.252192.168.1.9
iproute192.168.2.8255.255.255.248192.168.1.9
iproute192.168.20.0255.255.255.0192.168.1.9
iproute192.168.21.0255.255.255.0192.168.1.9
iproute192.168.36.0255.255.255.0192.168.1.9
iproute192.168.37.0255.255.255.0192.168.1.9
iproute192.168.40.0255.255.248.0Null0
iproute202.202.202.200255.255.255.248192.168.1.9
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
login
!
end
RT7:
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameRT7
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceFastEthernet1/0
ipaddress202.202.202.202255.255.255.248
duplexauto
speedauto
!
interfaceFastEthernet2/0
ipaddress192.168.2.10255.255.255.248
duplexauto
speedauto
!
iphttpserver
ipclassless
iproute0.0.0.00.0.0.0192.168.2.9
iproute192.168.1.0255.255.255.252192.168.2.9
iproute192.168.1.4255.255.255.252192.168.2.9
iproute192.168.1.8255.255.255.252192.168.2.9
iproute192.168.20.0255.255.255.0192.168.2.9
iproute192.168.21.0255.255.255.0192.168.2.9
iproute192.168.36.0255.255.255.0192.168.2.9
iproute192.168.37.0255.255.255.0192.168.2.9
iproute192.168.44.0255.255.255.0192.168.2.9
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
login
!
end