路由器双出口负载分担并NAT及互为备份.doc

上传人:xin****828 文档编号:6676966 上传时间:2020-03-02 格式:DOC 页数:16 大小:74KB
返回 下载 相关 举报
路由器双出口负载分担并NAT及互为备份.doc_第1页
第1页 / 共16页
路由器双出口负载分担并NAT及互为备份.doc_第2页
第2页 / 共16页
路由器双出口负载分担并NAT及互为备份.doc_第3页
第3页 / 共16页
点击查看更多>>
资源描述
思科路由器双WAN口负载分担并NAT及互为备份说明:客户接入ISP1及ISP2,内部有4 个网段分别是:192.168.10.0/24192.168.20.0/2410.10.10.0/2420.20.20.20/24正常模式为192.168.10.0和10.10.10.0两个网段优先走ISP1,192.168.20.0和202.20.20.0两个网段优先走ISP2。当IPS1线路中断时(即使R3接IPS1的接口是UP)192.168.10.0和10.10.10.0两个网段会自动转到ISP2,ISP2中断时同亦。下面是拓扑图,及各台设备的配置文档,在GNS3上模拟测试成功。(在网络上一直是伸手党,现在也分享下自己的经验,有不当之处还请指教,谢谢)分别在R1、R2均配置loopback 0 1.1.1.1/32为测试对象,R3为边界路由器,配置最多放在最后R1R1#sh runBuilding configuration.Current configuration : 761 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!no aaa new-model!ip cefno ip domain lookup!interface Loopback0 ip address 1.1.1.1 255.255.255.255!interface FastEthernet0/0 ip address 11.11.11.3 255.255.255.248 duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto!ip route 11.11.11.0 255.255.255.248 11.11.11.1!no ip http serverno ip http secure-server!control-plane!gatekeeper shutdown!line con 0 exec-timeout 0 0 logging synchronous stopbits 1line aux 0 stopbits 1line vty 0 4!endR2R2#sh runBuilding configuration.Current configuration : 761 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2!boot-start-markerboot-end-marker!no aaa new-model!ip cefno ip domain lookup!interface Loopback0 ip address 1.1.1.1 255.255.255.255!interface FastEthernet0/0 ip address 22.22.22.3 255.255.255.248 duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto!ip route 22.22.22.0 255.255.255.248 22.22.22.1!no ip http serverno ip http secure-servercontrol-plane!gatekeeper shutdown!line con 0 exec-timeout 0 0 logging synchronous stopbits 1line aux 0 stopbits 1line vty 0 4!endR4R4#SH RUNBuilding configuration.Current configuration : 755 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R4!boot-start-markerboot-end-marker!no aaa new-model!ip cefno ip domain lookup! ! !interface Loopback0 ip address 10.10.10.10 255.255.255.0!interface FastEthernet0/0 ip address 192.168.10.10 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto!ip route 0.0.0.0 0.0.0.0 192.168.10.1!no ip http serverno ip http secure-server!control-plane! !gatekeeper shutdown!line con 0 exec-timeout 0 0 logging synchronous stopbits 1line aux 0 stopbits 1line vty 0 4!endR5R5#SH RUNBuilding configuration.Current configuration : 757 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R5!boot-start-markerboot-end-marker!no aaa new-model!ip cefno ip domain lookup! ! !interface Loopback0 ip address 20.20.20.20 255.255.255.0!interface FastEthernet0/0 ip address 192.168.20.20 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto!ip route 0.0.0.0 0.0.0.0 192.168.20.254!no ip http serverno ip http secure-server!control-plane! !gatekeeper shutdown!line con 0 exec-timeout 0 0 logging synchronous stopbits 1line aux 0 stopbits 1line vty 0 4!endR6R6#SH RUNBuilding configuration.Current configuration : 1548 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R6!boot-start-markerboot-end-marker!no aaa new-model!resource policy!memory-size iomem 5ip cef! no ip domain lookup! ! !interface FastEthernet0/0 no ip address shutdown duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto!interface FastEthernet1/0 switchport mode trunk!interface FastEthernet1/1!interface FastEthernet1/2!interface FastEthernet1/3!interface FastEthernet1/4 switchport access vlan 10!interface FastEthernet1/5 switchport access vlan 20!interface FastEthernet1/6!interface FastEthernet1/7!interface FastEthernet1/8!interface FastEthernet1/9!interface FastEthernet1/10!interface FastEthernet1/11!interface FastEthernet1/12!interface FastEthernet1/13!interface FastEthernet1/14! interface FastEthernet1/15!interface Vlan1 no ip address!interface Vlan10 ip address 192.168.10.254 255.255.255.0!interface Vlan20 ip address 192.168.20.254 255.255.255.0!ip route 0.0.0.0 0.0.0.0 192.168.10.1ip route 10.10.10.0 255.255.255.0 192.168.10.10ip route 20.20.20.0 255.255.255.0 192.168.20.20!no ip http serverno ip http secure-server! !control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!webvpn context Default_context ssl authenticate verify all ! no inservice!endR6#R3R3#SH RUNBuilding configuration.Current configuration : 2739 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R3!boot-start-markerboot-end-marker!no aaa new-model!ip cefno ip domain lookup!ip sla monitor 1 type echo protocol ipIcmpEcho 11.11.11.3 source-interface FastEthernet0/0 frequency 10ip sla monitor schedule 1 life forever start-time nowip sla monitor 2 type echo protocol ipIcmpEcho 22.22.22.3 source-interface FastEthernet0/1 frequency 10ip sla monitor schedule 2 life forever start-time now!track 1 rtr 1 reachability!track 2 rtr 2 reachability! !interface FastEthernet0/0 ip address 11.11.11.1 255.255.255.248 ip nat outside ip virtual-reassembly duplex auto speed auto!interface FastEthernet0/1 ip address 22.22.22.1 255.255.255.248 ip nat outside ip virtual-reassembly duplex auto speed auto!interface FastEthernet1/0 no ip address shutdown duplex auto speed auto!interface FastEthernet1/1 no ip address shutdown duplex auto speed auto!interface FastEthernet2/0 no ip address duplex full!interface FastEthernet2/0.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 ip nat inside ip virtual-reassembly ip policy route-map test!ip route 0.0.0.0 0.0.0.0 11.11.11.3ip route 0.0.0.0 0.0.0.0 22.22.22.3ip route 10.10.10.0 255.255.255.0 192.168.10.254ip route 20.20.20.0 255.255.255.0 192.168.10.254ip route 192.168.20.0 255.255.255.0 192.168.10.254!no ip http serverno ip http secure-server!ip nat inside source route-map 1 interface FastEthernet0/0 overloadip nat inside source route-map 2 interface FastEthernet0/1 overloadip nat inside source route-map 3 interface FastEthernet0/1 overloadip nat inside source route-map 4 interface FastEthernet0/0 overload!access-list 10 permit 192.168.10.0 0.0.0.255access-list 10 permit 10.10.10.0 0.0.0.255access-list 20 permit 192.168.20.0 0.0.0.255access-list 20 permit 20.20.20.0 0.0.0.255!route-map test permit 10 match ip address 10 set ip next-hop verify-availability 11.11.11.3 1 track 1 set ip next-hop verify-availability 22.22.22.3 2 track 2!route-map test permit 20 match ip address 20 set ip next-hop verify-availability 22.22.22.3 1 track 2 set ip next-hop verify-availability 11.11.11.3 2 track 1!route-map 1 permit 10 match ip address 10 match interface FastEthernet0/0!route-map 2 permit 10 match ip address 20 match interface FastEthernet0/1!route-map 3 permit 10 match ip address 10!route-map 4 permit 10 match ip address 20!control-plane! !gatekeeper shutdown!line con 0 exec-timeout 0 0 logging synchronous stopbits 1line aux 0 stopbits 1line vty 0 4!endR3#
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 临时分类 > 人文社科


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


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