双ISP实现负载均衡手册_第1页
双ISP实现负载均衡手册_第2页
双ISP实现负载均衡手册_第3页
双ISP实现负载均衡手册_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、双ISP实现负载均衡详细操作手册、模拟拓扑图其中:R5, R6相当于ISP方,R1为企业对外router, R2,R3,R4为内网设备二、配置R1:int f0/0ip add 192.168.0.1 255.255.255.0no sh!ip nat inside!int f1/0ip add 111.111.111.2 255.255.255.0no sh!ip nat outside!int f1/1ip add 222.222.222.2 255.255.255.0 no ship nat outsideip route 0.0.0.0 0.0.0.0 111.111.111.1ip

2、route 0.0.0.0 0.0.0.0 222.222.222.1ip route 10.10.10.0 255.255.0.0 192.168.0.2ip route 172.168.1.0 255.255.255.0 192.168.0.2access-list 1 permit 10.10.10.0 0.0.0.255access-list 2 permit 172.168.1.0 0.0.0.255route-map isp1 permit 10match ip address 1 (条件 1)match interface f1/0 (条件 2)ip nat inside sou

3、rce route-map ispl interface f1/0 overload*匹配条件1, 2被映射为f1/0的公网地址route-map isp2 permit 10match ip address 2 (条件 3)match interface f1/1 (条件 4)ip nat inside source route-map isp2 interface f1/1 overload*匹配条件3, 4被映射为f1/1的公网地址route-map ispl2 permit 10match ip address 1ip nat inside source route-map isp12

4、 interface f1/1 overloadroute-map isp permit 10match ip address 1match interface f1/0set int f1/0不过一但f1/0的上连线路断掉,或者f1/0不小心shut down 10.10.10.0的网段将无法访问 外网,因此这里是把f1/1设置为10.10.10.0的备份nat ouside 口route-map isp2l permit 10match ip address 2ip nat inside source route-map isp21 interface f1/0 overloadroute

5、-map isp permit 20match ip address 2match interface f1/1set int f1/1int f0/0ip policy route-map isp (最后在 inside 内口进方向调用)R2:int f0/0ip add 192.168.0.2 255.255.255.0no sh!int f1/0ip add 10.10.10.1 255.255.255.0no sh!int f1/1ip add 172.168.1.1 255.255.255.0 no sh!ip route 0.0.0.0 0.0.0.0 192.168.0.1R3:

6、int f1/0ip add 10.10.10.2 255.255.255.0no sh!ip route 0.0.0.0 0.0.0.0 10.10.10.1R4:int f1/1ip add 172.168.1.2 255.255.255.0no sh !ip route 0.0.0.0 0.0.0.0 10.10.20.1R5:int f1/0ip add 111.111.111.1 255.255.255.0no sh !ip route 192.168.0.0 255.255.255.0 111.111.111.2ip route 0.0.0.0 0.0.0.0 111.111.11

7、1.2R6:int f1/1ip add 222.222.222.1 255.255.255.0 no ship route 192.168.0.0 255.255.255.0 222.222.222.2ip route 10.10.0.0 0.0.0.0 222.222.222.2三、测试nat是否能够实现双nat出口负载均衡sh ip nat translationsRl#Rl#sh ip nat translationsPro Inside global Inside localOutside localtcp 111.111.111.2:50102 10.10.10.2:50102 1

8、11.111.111.1:233tcp 222.222.222.2:19439 172.168.1.2:19439 222.222.222.1:233Outside global111.111.111.1:2222.222.222.1:2测试OK!2. nat是否能够实现备份(shut down R1 f1/0)Rl#sh ip nat translationsPro Inside global Inside localtcp 222.222.222.2:11672 10.10.10.2:11672tcp 222.222.222.2:33890 10.10.10.2:33890tcp 222.222.222.2:19439 172.168.1.2:19439tcp 111.111.111.2:53493 172.168.1.2:53493Outside local222.222.222.1:23222.222.222.1:23222.222.222.1:23222.222.222.1:23Outside global222.222.222.1:23222.222.222.1:23222.222.222.1:23222.222.222.1:23从

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论