1、实验九静态路由汇总资料实验九 :静态路由一:实验目标1 掌握静态路由与缺省路由的配置;2 掌握浮动静态路由、替代路由的配置与运用,掌握最长掩码匹配原则。二:拓扑图三:预期结果 全网互联能互联,且RT3与RT1之间的流量负载均衡。四:调试RT1:show ip int bri:Show ip route :RT3:Show ip int bri:Show ip route :RT5:Show ip int bri:Show ip route :RT7:Show ip int bri:Show ip route :VPC1VPC5的配置:五:测试将RT3的se0/0端口showdown:VPC5
2、ping VPC1:VPC5 ping VPC2:VPC5 ping VPC3:VPC5 ping VPC4:VPC5 ping 202.202.202.202:六:总结与原理分析对于静态路由,在写路由表的时候要细心,按照一定规律顺序来写;对于路由汇总,我们可以将大量的细化路由汇总成一条或者几条汇总路由。通过汇总路由我们可以减少全局路由表中的细化路由条目,提高效率。对于负载均衡,只要目的网段一样,子网掩码一样,AD值一样,度量值一样就可以实现负载均衡,他可以减少单个链路的流量,减少其负担。七:配置show runRT1:!version 12.3service timestamps debug
3、 datetime msecservice timestamps log datetime msecno service password-encryption!hostname RT1!boot-start-markerboot-end-marker!no aaa new-model!resource policy!memory-size iomem 5ip subnet-zero!ip cefno ip dhcp use vrf connected!no ip domain lookupno ftp-server write-enable!interface Serial0/0 ip ad
4、dress 192.168.1.1 255.255.255.252 serial restart-delay 0 no dce-terminal-timing-enable!interface Serial0/1 ip address 192.168.1.5 255.255.255.252 serial restart-delay 0 no dce-terminal-timing-enable!interface Serial0/2 ip address 192.168.1.9 255.255.255.252 serial restart-delay 0 no dce-terminal-tim
5、ing-enable!interface Serial0/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable!interface FastEthernet2/0 ip address 192.168.2.9 255.255.255.248 duplex auto speed auto!interface Ethernet3/0 ip address 192.168.20.1 255.255.255.0 half-duplex!interface Ethernet3/1 ip address
6、192.168.21.1 255.255.255.0 half-duplex!interface Ethernet3/2 no ip address shutdown half-duplex!interface Ethernet3/3 no ip address shutdown half-duplex!ip http serverip classlessip route 192.168.0.0 255.255.0.0 Null0ip route 192.168.36.0 255.255.255.0 192.168.1.2ip route 192.168.36.0 255.255.255.0
7、192.168.1.6ip route 192.168.37.0 255.255.255.0 192.168.1.6ip route 192.168.37.0 255.255.255.0 192.168.1.2ip route 192.168.44.0 255.255.255.0 192.168.1.10ip route 202.202.202.200 255.255.255.248 192.168.2.10!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4 login!end
8、RT3:!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname RT3!boot-start-markerboot-end-marker!no aaa new-model!resource policy!memory-size iomem 5ip subnet-zero!ip cefno ip dhcp use vrf connected!no ip domain lookupno ftp-serv
9、er write-enable!interface Serial0/0 ip address 192.168.1.2 255.255.255.252 serial restart-delay 0 no dce-terminal-timing-enable!interface Serial0/1 ip address 192.168.1.6 255.255.255.252 serial restart-delay 0 no dce-terminal-timing-enable!interface Serial0/2 no ip address shutdown serial restart-de
10、lay 0 no dce-terminal-timing-enable!interface Serial0/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable!interface Ethernet3/0 ip address 192.168.36.1 255.255.255.0 half-duplex!interface Ethernet3/1 ip address 192.168.37.30 255.255.255.0 secondary ip address 192.168.37.20
11、255.255.255.0 secondary ip address 192.168.37.1 255.255.255.0 half-duplex!interface Ethernet3/2 no ip address shutdown half-duplex!interface Ethernet3/3 no ip address shutdown half-duplex!ip http serverip classlessip route 0.0.0.0 0.0.0.0 192.168.1.1ip route 0.0.0.0 0.0.0.0 192.168.1.5ip route 192.1
12、68.1.8 255.255.255.252 192.168.1.1ip route 192.168.1.8 255.255.255.252 192.168.1.5ip route 192.168.2.8 255.255.255.248 192.168.1.1ip route 192.168.2.8 255.255.255.248 192.168.1.5ip route 192.168.20.0 255.255.255.0 192.168.1.1ip route 192.168.20.0 255.255.255.0 192.168.1.5ip route 192.168.21.0 255.25
13、5.255.0 192.168.1.5ip route 192.168.21.0 255.255.255.0 192.168.1.1ip route 192.168.32.0 255.255.248.0 Null0ip route 192.168.44.0 255.255.255.0 192.168.1.1ip route 192.168.44.0 255.255.255.0 192.168.1.5ip route 202.202.202.200 255.255.255.248 192.168.1.5ip route 202.202.202.200 255.255.255.248 192.16
14、8.1.1!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4 login!endRT5:!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname RT5!boot-start-markerboot-end-marker!no aaa new-model!resource policy!
15、memory-size iomem 5ip subnet-zero!ip cefno ip dhcp use vrf connected!no ip domain lookupno ftp-server write-enable!interface Serial0/0 ip address 192.168.1.10 255.255.255.252 serial restart-delay 0 no dce-terminal-timing-enable!interface Serial0/1 no ip address shutdown serial restart-delay 0 no dce
16、-terminal-timing-enable!interface Serial0/2 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable!interface Serial0/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable!interface Ethernet3/0 ip address 192.168.44.1 255.255.255.0 half-duplex!interface Et
17、hernet3/1 no ip address shutdown half-duplex!interface Ethernet3/2 no ip address shutdown half-duplex!interface Ethernet3/3 no ip address shutdown half-duplex!ip http serverip classlessip route 0.0.0.0 0.0.0.0 192.168.1.9ip route 192.168.1.0 255.255.255.252 192.168.1.9ip route 192.168.1.4 255.255.25
18、5.252 192.168.1.9ip route 192.168.2.8 255.255.255.248 192.168.1.9ip route 192.168.20.0 255.255.255.0 192.168.1.9ip route 192.168.21.0 255.255.255.0 192.168.1.9ip route 192.168.36.0 255.255.255.0 192.168.1.9ip route 192.168.37.0 255.255.255.0 192.168.1.9ip route 192.168.40.0 255.255.248.0 Null0ip rou
19、te 202.202.202.200 255.255.255.248 192.168.1.9!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4 login!endRT7:!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname RT7!boot-start-markerboot-end
20、-marker!no aaa new-model!resource policy!memory-size iomem 5ip subnet-zero!ip cefno ip dhcp use vrf connected!no ip domain lookupno ftp-server write-enable!interface FastEthernet1/0 ip address 202.202.202.202 255.255.255.248 duplex auto speed auto!interface FastEthernet2/0 ip address 192.168.2.10 25
21、5.255.255.248 duplex auto speed auto!ip http serverip classlessip route 0.0.0.0 0.0.0.0 192.168.2.9ip route 192.168.1.0 255.255.255.252 192.168.2.9ip route 192.168.1.4 255.255.255.252 192.168.2.9ip route 192.168.1.8 255.255.255.252 192.168.2.9ip route 192.168.20.0 255.255.255.0 192.168.2.9ip route 192.168.21.0 255.255.255.0 192.168.2.9ip route 192.168.36.0 255.255.255.0 192.168.2.9ip route 192.168.37.0 255.255.255.0 192.168.2.9ip route 192.168.44.0 255.255.255.0 192.168.2.9!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4 login!end
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1