找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 11154|回复: 23

[策略设置] ADSL双线负载均衡求解

  [复制链接]
发表于 2010-10-18 12:11:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
负载均衡成功了,就是打开网站会慢,下载很快,还有公网IP     1-2分钟左右会变,怎样把公网的IP固定
routeros
发表于 2010-10-18 12:17:25 | 显示全部楼层
用的是pcc还是nth?
routeros
回复

使用道具 举报

发表于 2010-10-18 12:20:33 | 显示全部楼层
电信公网ip是48小时才变的
routeros
回复

使用道具 举报

发表于 2010-10-18 12:23:47 | 显示全部楼层
还有不清楚你什么isp
routeros
回复

使用道具 举报

 楼主| 发表于 2010-10-18 12:41:52 | 显示全部楼层
不懂,脚本是“
/ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
/interface pppoe-client add name="pppoe-out1" interface=WAN1 user="ADSL1" password="ADSL1" add-default-route=no disabled=no
/interface pppoe-client enable pppoe-out1
/ip address add address=58.58.58.1/32 interface=pppoe-out1 comment="1"
/ip route add gateway=58.58.58.1 routing-mark=1 comment="1"
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=1 passthrough=yes disabled=no
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no disabled=no
/ip firewall nat add chain=srcnat connection-mark=1 action=src-nat to-addresses=58.58.58.1 to-ports=0-65535 comment="1" disabled=no
/interface pppoe-client add name="pppoe-out2" interface=WAN2 user="ADSL2" password="ADSL2" add-default-route=no disabled=no
/interface pppoe-client enable pppoe-out2
/ip address add address=58.58.58.2/32 interface=pppoe-out2 comment="2"
/ip route add gateway=58.58.58.2 routing-mark=2 comment="2"
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=2 passthrough=yes disabled=no
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no disabled=no
/ip firewall nat add chain=srcnat connection-mark=2 action=src-nat to-addresses=58.58.58.2 to-ports=0-65535 comment="2" disabled=no
routeros
回复

使用道具 举报

发表于 2010-10-18 13:34:34 | 显示全部楼层
哦,原来是乱用脚本
routeros
回复

使用道具 举报

 楼主| 发表于 2010-10-18 18:34:57 | 显示全部楼层
乱用吗?不见你的正确脚本啊
routeros
回复

使用道具 举报

发表于 2010-10-18 20:50:14 | 显示全部楼层
,你多试几个呀
routeros
回复

使用道具 举报

 楼主| 发表于 2010-10-18 22:09:02 | 显示全部楼层
你傻笑什么,我现在已经在用了,就是固定不了IP
routeros
回复

使用道具 举报

发表于 2010-10-18 22:17:44 | 显示全部楼层
什么固定不了ip没听明白,你的是固定ip么,adsl可是动态的,怎么固定
routeros
回复

使用道具 举报

 楼主| 发表于 2010-10-19 00:25:03 | 显示全部楼层
adsl动态的ip,现在是用两条ADSL。。1-2分钟左右两个ADSL     IP自动换来换去的,,,怎样固定成一个IP
routeros
回复

使用道具 举报

发表于 2010-10-19 01:01:43 | 显示全部楼层
不懂
routeros
回复

使用道具 举报

发表于 2010-10-19 10:52:12 | 显示全部楼层
本来ADSL的IP就是动态的
routeros
回复

使用道具 举报

 楼主| 发表于 2010-10-19 11:14:32 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2010-10-19 11:53:25 | 显示全部楼层
回复 14# trfgde


    谁说开不了,你指定一下443端口走一条线就行了,在MANGLE里
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-5 08:48 , Processed in 0.068942 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表