电信网通双线接入负载均衡

合集下载

电信网通双出口负载均衡配置实例

电信网通双出口负载均衡配置实例

电信网通双出口负载均衡配置实例新鲜出炉!电信网通双出口负载均衡配置实例!!尤其适用网吧!!负载分担配置指导定义监测组,分别监测电信和网通网关:进入系统视图,创建detect-group 1,监测电信网关:systemSystem View: return to User View with Ctrl+Z.[Quidway] detect-group 1[Quidway-detect-group-1][Quidway-detect-group-1]detect-list 1 ip address 60.190.80.113[Quidway-detect-group-1]quit创建detect-group 1,监测网通网关:[Quidway]detect-group 2[Quidway-detect-group-2]detect-list 1 ip address 221.12.79.49[Quidway-detect-group-2]quit[Quidway]注:以上以地址60.190.80.113最为电信网关地址,地址221.12.79.49为网通网关地址为例,可以根据实际组网情况修改。

2.2 配置两条默认路由互为备份,优先走电信线路:[Quidway]ip route-static 0.0.0.0 0.0.0.0 60.190.80.113 preference 60 detect-group 1[Quidway]ip route-static 0.0.0.0 0.0.0.0 221.12.79.49 preference 100 detect-group 2注:以上以地址60.190.80.113最为电信网关地址,地址221.12.79.49为网通网关地址为例,可以根据实际组网情况修改。

2.3 配置静态路由与监测组关联,使访问网通流量优先走网通线路:以下配置较多,配置过程中可以用实际网通网关地址替换地址221.12.79.49后直接复制粘贴:ip route-static 58.16.0.0 255.248.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 58.100.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 58.240.0.0 255.240.0.0 221.12.79.49 preference 60 detect-group2ip route-static 60.0.0.0 255.248.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 60.8.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 60.12.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 60.13.0.0 255.255.192.0 221.12.79.49 preference 60 detect-group2ip route-static 60.13.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group2ip route-static 60.16.0.0 255.240.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 60.24.0.0 255.248.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 60.31.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 60.208.0.0 255.248.0.0 221.12.79.49 preference 60 detect-group22ip route-static 60.220.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.48.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.52.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.54.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.55.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.133.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.134.64.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.134.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.135.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.136.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.138.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.139.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.148.0.0 255.255.0.0 221.12.79.49preference 60 detect-group2ip route-static 61.149.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.156.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.158.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.159.0.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.161.0.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.161.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.162.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.163.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.167.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.168.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group22ip route-static 61.179.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.180.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 61.181.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.182.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 61.189.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group2ip route-static 124.90.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 124.162.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 192.168.2.246 255.255.255.255 192.168.2.254 preference 60ip route-static 202.32.0.0 255.224.0.0 221.12.79.49 preference 60 detect-group2ip route-static 202.96.64.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 202.97.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 202.98.0.0 255.255.224.0 221.12.79.49preference 60 detect-group2ip route-static 202.99.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 202.102.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 202.102.224.0 255.255.254.0 221.12.79.49 preference 60 detect-group 2ip route-static 202.106.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 202.107.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 202.108.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 202.110.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 202.110.192.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 202.111.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 203.79.0.0 255.255.0.0 221.12.79.49 preference 60 detect-groupip route-static 203.80.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 203.81.0.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 203.86.32.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 203.86.64.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 203.90.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 203.90.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 203.90.192.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 203.92.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 210.12.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.12.192.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.13.0.0 255.255.255.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.14.160.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.14.192.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.15.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.15.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.16.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.21.0.0 255.255.0.0 221.12.79.49preference 60 detect-group2ip route-static 210.22.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 210.51.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 210.52.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 210.52.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.53.0.0 255.255.0.0 221.12.79.49 preference 60 detect-groupip route-static 210.74.64.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.74.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 210.78.0.0 255.255.224.0 221.12.79.49 preference 60 detect-group2ip route-static 210.82.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 211.100.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 211.101.0.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2preference 60 detect-group2ip route-static 211.167.96.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 218.4.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 218.10.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 218.21.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 218.24.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 218.26.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 218.27.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 218.28.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 218.56.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 218.60.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2preference 60 detect-group2ip route-static 218.67.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 218.68.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 218.109.159.0 255.255.255.0 221.12.79.49 preference 60 detect-group 2ip route-static 219.141.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 22ip route-static 219.154.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 219.156.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 219.158.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 219.159.0.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 220.248.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 220.252.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group260 detect-group 2ip route-static 221.4.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.6.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.7.128.0 255.255.128.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.8.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.10.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 221.11.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group2ip route-static 221.12.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 221.12.0.0 255.255.128.0 221.12.79.49 preference 60 detect-group2ip route-static 221.12.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.192.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 221.195.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2preference 60 detect-group2ip route-static 221.199.0.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.199.32.0 255.255.240.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.199.128.0 255.255.192.0 221.12.79.49 preference 60 detect-group 2ip route-static 221.199.192.0 255.255.240.0 221.12.79.49 preference 60 detect-group 22ip route-static 221.204.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2ip route-static 221.207.0.0 255.255.192.0 221.12.79.49 preference 60 detect-group2ip route-static 221.208.0.0 255.240.0.0 221.12.79.49 preference 60 detect-group2ip route-static 221.208.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 221.213.0.0 255.255.0.0 221.12.79.49 preference 60 detect-group2ip route-static 221.214.0.0 255.254.0.0 221.12.79.49 preference 60 detect-group2preference 60 detect-group2ip route-static 222.132.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 222.136.0.0 255.248.0.0 221.12.79.49 preference 60 detect-group2ip route-static 222.160.0.0 255.252.0.0 221.12.79.49 preference 60 detect-group2ip route-static 222.163.0.0 255.255.224.0 221.12.79.49 preference 60 detect-group 2ip route-static 0.0.0.0 0.0.0.0 20.1.1.2 preference 60注:以上路由已经包含大部分网通地址段,如有更新可以动态添加。

双线负载均衡、设备冗余的方案

双线负载均衡、设备冗余的方案

求双线负载均衡、设备冗余的方案~
我公司原来是电信光缆单线接入,通过ASA5520作为网关,接入核心交换4506,通过2960作为接入交换的网络结构,所以的服务器均通过4506连接(具体结构如图所示)。

现由于公司开始有线下的交易数据需传回公司数据中心。

问题:我准备再拉一条网通的光缆做双线接入,同时要实现网络负载均衡,由于我的网关、核心交换都是单节点的,只要一个有问题,那么网络就基本瘫痪了,我想做个冗余,在这两个设备出现问题的时候
能自动切换到备用设备上继续工作,请问该如何实施呢?需要添置什么设备?请问有实施方案推荐给我学习学习吗?
由于我是新手,请各位不吝指教。

看了各位的回答,很精彩也很感谢!下面我把一个厂商出的方案的拓扑给发上来,其中的上网行为管理设备和VPN设备是我公司要求的,因为我希望对内网的上网行为进行管控,以及让线下的客户通过VPN接入,请大家给给点建议!!!
方案1:
方案2:
双设备。

核心交换机采用HSRP负载分担,,,ASA采用 FAILOVER技术。

「网上有关ROS双线接入的大多文章是讲电信网通接入」

「网上有关ROS双线接入的大多文章是讲电信网通接入」

网上有关ROS双线接入的大多文章是讲电信网通接入,至于双电信接入的文章只找到一篇,说的也不是很清楚。

经测试,俺实现了电信双线负载均衡,且解决了负载均衡下QQ和MSN之类IM软件掉线问题。

过程如下文俺用的是ROS2.9.6版,至于安装过程和基本设置就略过,相信想做双线负载均衡的朋友早已做好了最基本的ROS路由。

俺的网络拓扑为:ﻫﻫ硬件:一条电信光纤<10M带宽,拨号上网>、一台普通8口100M交换机、一台普通路由器<NBR100,废物利用,可不要>、一台装有ROS的P3电脑<有三块网卡>软件:ROS2.9.6ﻫ网络连接:将电信光纤转换器用网线接入交换机、将PC接入交换机、将NBR100路由器接入交换机、再将NBR100路由器接入PCﻫ网络分布:1、NBR100使用帐号A、密码B拨号接入电信网络;外网IP为60.1.1.2,内网IP为192.168.1.1ﻫ2、在ROS中定义三块网卡分别为:LAN(内网)、WAN1(接NBR100)、WAN(接交换机);LAN3、 PC的WAN接口也使用帐号接口IP为192.168.0.1、WAN1接口IP为192.168.1.2;ﻫA、密码B拨号进行电信网络,获得IP地址为60.1.23.26,网关为61.175.78.30;ADSL拨号名称为“ADSL”。

ﻫ首先如下设置,使LAN接口能正常连接上电信网络/ ip firewall nat ﻫadd chain=srcnat src-address=192.168.0.0/24 action=masquerade ﻫ不过这时内网的机器上网,只是通过ADSL接口上网,而WAN接口还没有使用起来ﻫ进入IP route listﻫ添加三条静态路由<图中红线>:红圈中的第一条61.175.78.30为WAN接口的网关,这条记录COPY来源于第一条接口名称为“unknown”的记录;红圈中第二条记录,注意它的Interface的值为两个,一个是ADSL一个是WAN1,分别指是两条电信接口,这条路由实现了负载均衡;红圈中第三条为WAN1接口的路由,意思为目标地址为0.0.0.0/24的数据请求都将转发到192.168.1.1(NBR100路由)这个地址上。

电信网通双线接入配置项目实施案例

电信网通双线接入配置项目实施案例
interface Ethernet0
description wt
ip address ... 255.255.255.0
设置网通ip地址
ip nat outside
设置广域网口
full-duplex
!
interface Ethernet1
description dx
ip route 210.53.0.0 255.255.0.0 ...
ip route 210.74.64.0 255.255.192.0 ...
ip route 210.74.128.0 255.255.192.0 ...
ip route 210.78.0.0 255.255.224.0 ...
ip route 202.98.0.0 255.255.224.0 ...
ip route 202.99.0.0 255.255.0.0 ...
ip route 202.102.128.0 255.255.192.0 ...
ip route 202.102.224.0 255.255.254.0 ...
跟我以前做的一个项目很类似,当时就是用了静态路由+默认来实现的。
只有从内往外的访问需求,连策略路由都不用,倒是完全满足负载分担和链路备份的需求。
只有如果有外部访问内部的需求,就做不到优选电信或网通线路了。有钱还是上个F5吧
很早就有类似配置了。。
1:NAT要做对,根据出口和IP一起来定制
ip route 210.15.0.0 255.255.128.0 ...
ip route 210.15.128.0 255.255.192.0 ...
ip route 210.16.128.0 255.255.192.0 ...

路由器的双WAN负载均衡设置指南

路由器的双WAN负载均衡设置指南

路由器的双WAN负载均衡设置指南随着互联网的快速发展和普及,网络对于人们生活和工作的重要性不言而喻。

而作为连接网络的核心设备之一,路由器起到了至关重要的作用。

越来越多的用户希望能够同时利用多个网络供应商提供的宽带,以实现更高的带宽和稳定性。

在这种需求下,双WAN负载均衡技术应运而生。

本文将为您介绍如何设置路由器的双WAN负载均衡,以优化网络使用体验。

一、双WAN负载均衡的原理双WAN负载均衡技术,顾名思义,即将两个或多个宽带连接绑定为一个逻辑连接,均衡地分担网络流量,从而提供更高的带宽和可用性。

当路由器接收到用户发送的数据请求时,它会根据一定的算法将请求分配到合适的宽带连接上,使得各个连接的负载均衡。

同时,当某个连接发生故障或中断时,路由器会智能地将流量切换到其他可用的连接上,以确保网络的连续性。

二、双WAN负载均衡的设置步骤要在路由器上实现双WAN负载均衡,您需要按照以下步骤进行设置:步骤一:连接宽带和配置路由器首先,将两个宽带供应商提供的宽带连接分别插入路由器的WAN 口1和WAN口2。

然后,通过电脑连接路由器的LAN口,并将其设置为静态IP地址。

接下来,打开浏览器,输入路由器的默认IP地址,进入路由器的管理界面。

根据路由器的品牌和型号,登录账号和密码可能会有所不同。

步骤二:启用双WAN负载均衡功能在路由器的管理界面中,找到“网络设置”或类似的选项。

在此页面上,您应该能够找到双WAN负载均衡的设置选项。

根据路由器的不同,该选项可能存在于“负载均衡”、“WAN设置”或其他类似的菜单中。

找到该选项后,将其启用,并保存设置。

步骤三:配置负载均衡算法和策略在启用双WAN负载均衡功能后,您需要选择适合您网络情况的负载均衡算法和策略。

常见的负载均衡算法包括轮询、加权轮询、最小连接和最小负载等。

根据您的需求和网络环境选择合适的算法。

此外,您还可以基于应用程序或服务来制定负载均衡策略,例如通过端口或IP地址来分配流量。

Routeros双线负载均衡自动切换

Routeros双线负载均衡自动切换

Routeros双线负载均衡自动切换Routeros双线负载均衡自动切换/systemscriptadd name=cncdown policy=\ftp,reboot,read,write,policy,test,winbox,password,sniff source=\"/ip routedisable [/ip route find gateway=网通网关]"add name=cncuppolicy=ftp,reboot,read,write,policy,test,winbox,password,sniff \source="/iproute enable [/ip route find gateway=网通网关]"add name=dxdown policy=\ftp,reboot,read,write,policy,test,winbox,password,sniff source=\"/ip routeset [/ip route find comment=tel] gateway=电信网关"add name=dxuppolicy=ftp,reboot,read,write,policy,test,winbox,password,sniff \source="/iproute set [/ip route find comment=tel] gateway=电信网关;\\n\\n/ip routeset [/ip route find comment=tel] disable=no;"/tool netwatch add host=电信网关timeout=1s interval=5sup-script=dxupdown-script=dxdown/tool netwatch add host=网通网关timeout=1s interval=5sup-script=cncupdown-script=cncdown-------------------------------------------------------------------------------------------------#以上信息剪贴到终端即可#更详细:#电信或网通双线之一掉线自动切换的功能实现#首先,需要配制netwatch检测功能,#左侧tools-&gt;netwatch,+号,HOST添电信的网关,UP中添dxup,DOWN中添dxdown,OK,#同样再添加网通的网关,和cncup,cncdown.#然后添加执行的脚本文件,下面的这个是我自己用的,差点,不过能用就好..呵呵....#注意,我是在routerlist中电信0.0.0.0/0做了comment注释为tel.#切换的原理是#dxup 修改comment为tel的项的gateway为电信(电信可用时默认0.0.0.0/0为电信网关)#dxdown 修改comment为tel的项gateway为网通(电信不可用修改0.0.0.0/0为网通)#cncup 启用所有gateway为网通的项(当网通可用进行路由选择~)#cncdown 禁用所有gateway 为网通的项~ (当网通不可用走默认线路不经过选择)---------------------------------------------------------------------------------------------------下面是2.X的请分开复制-----------------------------------------------------------------------------------------------------ROS双线负载均衡自动切换/ system scriptadd name="dxup" source="/ip route set \[/ip route find comment=tel\] gateway=电信网关;\n\n/ip route set \[/ip route findcomment=tel\] disable=no;"policy=ftp,reboot,read,write,policy,test,winbox,passwordadd name="cncup" source="/ip route enable \[/ip route find gateway=网通网关\]"policy=ftp,reboot,read,write,policy,test,winbox,passwordadd name="dxdown" source="/ip route set \[/ip route find comment=tel\] gateway=网通网关"policy=ftp,reboot,read,write,policy,test,winbox,passwordadd name="cncdown" source="/ip route disable \[/ip route find gateway=网通网关\]"policy=ftp,reboot,read,write,policy,test,winbox,password/tool netwatch add host=电信网关timeout=1s interval=5sup-script=dxupdown-script=dxdown/tool netwatch add host=网通网关timeout=1s interval=5sup-script=cncupdown-script=cncdown更详细:电信或网通双线之一掉线自动切换的功能实现首先,需要配制netwatch检测功能,左侧tools-&gt;netwatch,+号,HOST添电信的网关,UP中添dxup,DOWN中添dxdown,OK,同样再添加网通的网关,和cncup,cncdown.然后添加执行的脚本文件,下面的这个是我自己用的,差点,不过能用就好..呵呵....将红字部分添上自己的网关,注意,我是在router list中电信0.0.0.0/0做了comment注释为tel./ system scriptadd name="dxup" source="/ip route set \[/ip route find comment=tel\] \gateway=电信网关;\n/ip route set \[/ip route find comment=tel\] \disable=no;"policy=ftp,reboot,read,write,policy,test,winbox,passwordadd name="cncup" source="/ip route enable \[/ip route find \gateway=网通网关\]" \policy=ftp,reboot,read,write,policy,test,winbox,passwordadd name="dxdown" source="/ip route set \[/ip route findcomment=tel\] \gateway=网通网关" \policy=ftp,reboot,read,write,policy,test,winbox,passwordadd name="cncdown" source="/ip route disable \[/ip route find \gateway=网通网关\]" \policy=ftp,reboot,read,write,policy,test,winbox,password在new terminal 中右键paste回车就可以了~~切换的原理是dxup 修改comment为tel的项的gateway为电信(电信可用时默认0.0.0.0/0为电信网关)dxdown 修改comment为tel的项gateway为网通(电信不可用修改0.0.0.0/0为网通)cncup 启用所有gateway为网通的项(当网通可用进行路由选择~)cncdown 禁用所有gateway 为网通的项~ (当网通不可用走默认线路不经过选择)。

双线路接入的配置方法

双线路接入的配置方法

双线路接入的配置方法在很多地区,用户同时申请了中国电信和中国网通两条宽带接入线路,如果此时双线路采用常规的“负载均衡”方式,就会发生访问网通站点走电信线路,访问电信站点走网通线路的情况,由于当前网通和电信两个运营商之间存在着互联互通速度慢的问题,造成速度瓶颈。

本文介绍了在HiPER宽带安全网关上配置电信、网通双线路,实现访问网通站点只走网通线路,访问网通以外的站点走电信线路的方法,以解决南方电信和北方网通互联互通带来的问题。

配置环境用户使用HiPER宽带安全网关,申请两条固定IP线路接入Internet,一条电信线路,一条网通线路。

假设如下:内网网关:IP地址:子网掩码:主线路:电信线路IP地址:子网掩码:网关:备份线路:网通线路IP地址:子网掩码:网关:适用产品型号:HiPER 2300NBII、HiPER 2520NB、HiPER 3300NB、HiPER 3300VF、HiPER4520NB适用HiPER ReOS软件版本:05年9月29号以后的537版本。

配置过程1、设备安装将HiPER宽带安全网关接通电源,电信线路接入WAN端口,网通线路接入WAN2端口,LAN端口和内网交换机或者主机相连。

2、策略路由器配置。

方法一:直接在WEB中导入策略路由表(适用于ReOS 6.0及之后版本)在高级配置-路由配置中,直接导入预定义的网通策略路由。

如下图。

方法二:软件生成网通路由(适用于所有版本)使用“网通路由配置生成”软件生成网通路由配置文件。

(下载页面:.cn/downloadcenter.php?filetypeid=6&productmodelid=-1)网关IP地址:填入网通线路的网关绑定连接名:选择eth3单击“生成路由配置”,在“网通路由配置生成”软件所在目录生成名称为“艾泰路由配置”的文本文件。

如下图:3、将网通路由导入HiPER宽带安全网关登录HiPER宽带安全网关的Web管理界面,在WebUI管理界面-系统管理-配置管理-恢复配置,单击“浏览”找到上一步生成的“艾泰路由配置”的文件,单击“加载”。

网上有关ROS双线接入的大多文章是讲电信网通接入

网上有关ROS双线接入的大多文章是讲电信网通接入

网上有关ROS双线接入的大多文章是讲电信网通接入,至于双电信接入的文章只找到一篇,说的也不是很清楚。

经测试,俺实现了电信双线负载均衡,且解决了负载均衡下QQ和MSN之类IM软件掉线问题。

过程如下文俺用的是ROS 2.9.6版,至于安装过程和基本设置就略过,相信想做双线负载均衡的朋友早已做好了最基本的ROS路由。

俺的网络拓扑为:硬件:一条电信光纤<10M带宽,拨号上网>、一台普通8口100M交换机、一台普通路由器<NBR100,废物利用,可不要>、一台装有ROS的P3电脑<有三块网卡>软件:ROS 2.9.6网络连接:将电信光纤转换器用网线接入交换机、将PC接入交换机、将NBR100路由器接入交换机、再将NBR100路由器接入PC网络分布:1、 NBR100使用帐号A、密码B拨号接入电信网络;外网IP为60.1.1.2,内网IP为192.168.1.12、在ROS中定义三块网卡分别为:LAN(内网)、WAN1(接NBR100)、WAN(接交换机);LAN 接口IP为192.168.0.1、WAN1接口IP为192.168.1.2;3、 PC的WAN接口也使用帐号A、密码B拨号进行电信网络,获得IP地址为60.1.23.26,网关为61.175.78.30;ADSL拨号名称为“ADSL”。

首先如下设置,使LAN接口能正常连接上电信网络/ ip firewall natadd chain=srcnat src-address=192.168.0.0/24 action=masquerade不过这时内网的机器上网,只是通过ADSL接口上网,而WAN接口还没有使用起来进入IP route list添加三条静态路由<图中红线>:红圈中的第一条61.175.78.30为WAN接口的网关,这条记录COPY来源于第一条接口名称为“unknown”的记录;红圈中第二条记录,注意它的Interface的值为两个,一个是ADSL一个是WAN1,分别指是两条电信接口,这条路由实现了负载均衡;红圈中第三条为WAN1接口的路由,意思为目标地址为0.0.0.0/24的数据请求都将转发到192.168.1.1(NBR100路由)这个地址上。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

步骤一:参数配置
1、设置路由器为双WAN口模式(TL-WVR300默认双WAN口,无须更改)
接口设置>>WAN口模式:“WAN口模式”选择为“双WAN口”保存。

设置完成后,路由器前面板上前两个接口(从左到右)为路由器的两个WAN口。

2、设置WAN口网络参数以及上下行带宽
接口设置>>WAN口设置:“WAN1设置”与“WAN2设置”处设置WAN口网络参数以及该线路的上下行带宽值。

步骤二:均衡配置
1、启用智能均衡
流量均衡>>综合设置页面:启用“特殊应用程序选路功能”与“智能均衡”
2、启用ISP选路功能
流量均衡>>ISP选路页面:启用“ISP选路功能”。

TL-ER5120内嵌了ISP数据库,启用ISP选路功能后,访问电信站点的流量由电信线路转发,访问网通站点的流量由网通线路转发,可以提高访问速度。

至此,全部配置已经完成,完美解决电信网通之间的访问瓶颈。

适用于TL-ER6120 V1.0、TL-ER5120 V1.0、TL-ER5520G V1.0、TL-R483 V3.0、TL-R478+ V5.0、TL-WVR300 V1.0。

相关文档
最新文档