找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6939|回复: 15

请教双wan的问题。

[复制链接]
发表于 2018-1-8 14:57 | 显示全部楼层 |阅读模式
本帖最后由 wyfabc 于 2018-1-8 15:00 编辑

           K2P刷lean大的潘多拉,两条线都己经拨号成功了。请问怎么叠加网速。。另外怎么设置如果其中一条断掉,另一条自动继续起作用。。我刚试了下,原生WAN口是电信,lan口是移动。。如果断掉电信,移动的不起作用上不了网。请高手指教,非常感谢。

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-1-8 15:04 | 显示全部楼层

点评

多谢,但我在负载均横里没有看见接口,这怎么搞? [attachimg]195654[/attachimg]  详情 回复 发表于 2018-1-8 15:22
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-8 15:22 | 显示全部楼层
wackejohn 发表于 2018-1-8 15:04
参考我的回复。。
https://www.right.com.cn/forum/forum.php?mod=redirect&goto=findpost&ptid=261224&pid ...

多谢,但我在负载均横里没有看见接口,这怎么搞?




本帖子中包含更多资源

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

×

点评

config rule 'https' option sticky '1' option dest_port '443' option proto 'tcp' option use_policy 'balanced' config rule 'default_rule' option dest_ip '0.0.0.0/0' option use_policy 'bal  详情 回复 发表于 2018-1-8 15:29
你确定你配置了mwan3? 打开 /etc/config/mwan3这个文件看下里面什么内容。。。  详情 回复 发表于 2018-1-8 15:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-8 15:28 | 显示全部楼层
wyfabc 发表于 2018-1-8 15:22
多谢,但我在负载均横里没有看见接口,这怎么搞?

你确定你配置了mwan3? 打开 /etc/config/mwan3这个文件看下里面什么内容。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-8 15:28 | 显示全部楼层



这样是不是搞起了,我就在接口那里添加了wan 和 wan2 ,和网络里一样。。但后面有个track off 不知道是咋回事。

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-8 15:29 | 显示全部楼层
wyfabc 发表于 2018-1-8 15:22
多谢,但我在负载均横里没有看见接口,这怎么搞?

config rule 'https'
        option sticky '1'
        option dest_port '443'
        option proto 'tcp'
        option use_policy 'balanced'

config rule 'default_rule'
        option dest_ip '0.0.0.0/0'
        option use_policy 'balanced'

config member 'wan_m1_w1'
        option interface 'wan'
        option metric '1'
        option weight '1'

config member 'wan_m2_w1'
        option interface 'wan'
        option metric '2'
        option weight '1'

config member 'wan2_m1_w1'
        option interface 'wan2'
        option metric '1'
        option weight '1'

config member 'wan2_m2_w1'
        option interface 'wan2'
        option metric '2'
        option weight '1'

config policy 'wan_only'
        list use_member 'wan_m1_w1'
        option last_resort 'unreachable'

config policy 'wan_wan2'
        list use_member 'wan_m1_w1'
        list use_member 'wan2_m2_w1'
        option last_resort 'unreachable'

config policy 'wan2_wan'
        list use_member 'wan2_m1_w1'
        list use_member 'wan_m2_w1'
        option last_resort 'unreachable'

config policy 'wan2_olny'
        list use_member 'wan2_m1_w1'
        option last_resort 'unreachable'

config interface 'wan'
        option enabled '1'
        option family 'ipv4'
        option reliability '1'
        option count '1'
        option size '56'
        option timeout '2'
        option interval '5'
        option failure_interval '5'
        option recovery_interval '5'
        option down '3'
        option up '3'
        option flush_conntrack 'never'

config interface 'wan2'
        option enabled '1'
        option family 'ipv4'
        option reliability '1'
        option count '1'
        option size '56'
        option timeout '2'
        option interval '5'
        option failure_interval '5'
        option recovery_interval '5'
        option down '3'
        option up '3'
        option flush_conntrack 'never'


点评

你参考下我的mwan3配置吧,你直接编辑mwan3的配置文件就行,编辑完成后 重启下mwan3,然后输入mwan3 status 看看mwan3的运行状态。  详情 回复 发表于 2018-1-8 15:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-8 15:34 | 显示全部楼层
wyfabc 发表于 2018-1-8 15:29
config rule 'https'
        option sticky '1'
        option dest_port '443'

你参考下我的mwan3配置吧,你直接编辑mwan3的配置文件就行,编辑完成后 重启下mwan3,然后输入mwan3 status 看看mwan3的运行状态。
  1. onfig rule 'WEB'
  2.         option dest_port '22,25,80,110,143,443,465,587,993,995,8000'
  3.         option family 'ipv4'
  4.         option proto 'tcp'
  5.         option sticky '0'
  6.         option use_policy 'wan1_wan2'

  7. config rule 'loadbalance'
  8.         option family 'ipv4'
  9.         option proto 'all'
  10.         option equalize '1'
  11.         option sticky '0'
  12.         option use_policy 'loadbalanced'

  13. config policy 'wan1_only'
  14.         option last_resort 'unreachable'
  15.         option family 'ipv4'
  16.         list use_member 'wan1_m1_w1'

  17. config policy 'wan1_wan2'
  18.         option last_resort 'unreachable'
  19.         option family 'ipv4'
  20.         list use_member 'wan1_m1_w1'
  21.         list use_member 'wan2_m2_w1'

  22. config policy 'wan2_wan1'
  23.         option last_resort 'unreachable'
  24.         option family 'ipv4'
  25.         list use_member 'wan2_m1_w1'
  26.         list use_member 'wan1_m2_w1'

  27. config policy 'wan2_only'
  28.         list use_member 'wan2_m1_w1'
  29.         option family 'ipv4'
  30.         option last_resort 'unreachable'

  31. config policy 'wana_only'
  32.         list use_member 'wana_m1_w1'
  33.         option family 'ipv4'
  34.         option last_resort 'unreachable'

  35. config policy 'wanb_only'
  36.         list use_member 'wanb_m2_w1'
  37.         option family 'ipv4'
  38.         option last_resort 'unreachable'

  39. config policy 'wana_wanb'
  40.         list use_member 'wana_m1_w1'
  41.         list use_member 'wanb_m2_w1'
  42.         option family 'ipv4'
  43.         option last_resort 'unreachable'

  44. config policy 'loadbalanced'
  45.         option last_resort 'unreachable'
  46.         option family 'ipv4'
  47.         list use_member 'wan1_m1_w1'
  48.         list use_member 'wan2_m1_w1'

  49. config member 'wan1_m1_w1'
  50.         option metric '1'
  51.         option interface 'wan1'
  52.         option weight '1'

  53. config member 'wan1_m2_w1'
  54.         option metric '2'
  55.         option interface 'wan1'
  56.         option weight '1'

  57. config member 'wan2_m1_w1'
  58.         option interface 'wan2'
  59.         option weight '1'
  60.         option metric '1'

  61. config member 'wan2_m2_w1'
  62.         option interface 'wan2'
  63.         option weight '1'
  64.         option metric '2'

  65. config member 'wana_m1_w1'
  66.         option interface 'wana'
  67.         option metric '1'
  68.         option weight '1'

  69. config member 'wanb_m2_w1'
  70.         option interface 'wanb'
  71.         option weight '1'
  72.         option metric '2'
复制代码

点评

还是不行,断掉电信的就上不了网了。 MWAN负载均衡 详细状态 Interface status: interface wan is online and tracking is not enabled interface wan2 is online and tracking is not enabled Current ipv  详情 回复 发表于 2018-1-8 15:54
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-8 15:54 | 显示全部楼层
wackejohn 发表于 2018-1-8 15:34
你参考下我的mwan3配置吧,你直接编辑mwan3的配置文件就行,编辑完成后 重启下mwan3,然后输入mwan3 stat ...

还是不行,断掉电信的就上不了网了。
MWAN负载均衡 详细状态
Interface status:
interface wan is online and tracking is not enabled
interface wan2 is online and tracking is not enabled

Current ipv4 policies:
loadbalanced:
wan2 (100%)

wan1_only:
unreachable

wan1_wan2:
wan2 (100%)

wan2_only:
wan2 (100%)

wan2_wan1:
wan2 (100%)

wan_wan2:


wana_only:
unreachable

wana_wanb:
unreachable

wanb_only:
unreachable


Current ipv6 policies:
loadbalanced:
unreachable

wan1_only:

点评

应该还是你的配置有问题。。。  详情 回复 发表于 2018-1-8 15:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-8 15:58 | 显示全部楼层
wyfabc 发表于 2018-1-8 15:54
还是不行,断掉电信的就上不了网了。
MWAN负载均衡 详细状态
Interface status:

应该还是你的配置有问题。。。

点评

请问下迭加怎么搞。。我刚下载了。。 wan口流量巨大,wan2口基本没流量。[attachimg]195660[/attachimg]  详情 回复 发表于 2018-1-8 16:11
MWAN负载均衡 详细状态 Interface status: interface wan is online and tracking is not enabled interface wan2 is online and tracking is not enabled Current ipv4 policies: loadbalanced: wan2 (5  详情 回复 发表于 2018-1-8 16:04
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-8 16:04 | 显示全部楼层
wackejohn 发表于 2018-1-8 15:58
应该还是你的配置有问题。。。

MWAN负载均衡 详细状态
Interface status:
interface wan is online and tracking is not enabled
interface wan2 is online and tracking is not enabled

Current ipv4 policies:
loadbalanced:
wan2 (50%)
wan (50%)

wan2_only:
wan2 (100%)

wan2_wan:
wan2 (100%)

wan_only:
wan (100%)

wan_wan2:
wan (100%)

似乎是干起了。。这是详细状态,我关了WAN后,WAN2 起了作用。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-8 16:11 | 显示全部楼层
wackejohn 发表于 2018-1-8 15:58
应该还是你的配置有问题。。。

请问下迭加怎么搞。。我刚下载了。。
wan口流量巨大,wan2口基本没流量。



本帖子中包含更多资源

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

×

点评

配置policy 'loadbalanced'策略,然后把 rule 'loadbalance' 放在所有规则的最后,即可:  详情 回复 发表于 2018-1-8 16:26
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-8 16:26 | 显示全部楼层
wyfabc 发表于 2018-1-8 16:11
请问下迭加怎么搞。。我刚下载了。。
wan口流量巨大,wan2口基本没流量。

配置policy 'loadbalanced'策略,然后把 rule 'loadbalance' 放在所有规则的最后,即可:
  1. config rule 'loadbalance'
  2.         option family 'ipv4'
  3.         option proto 'all'
  4.         option equalize '1'
  5.         option sticky '0'
  6.         option use_policy 'loadbalanced'

  7. config policy 'loadbalanced'
  8.         option last_resort 'unreachable'
  9.         option family 'ipv4'
  10.         list use_member 'wan1_m1_w1'
  11.         list use_member 'wan2_m1_w1'
复制代码

点评

唉,整来整去两WAN都连接时,都只有WAN口在下载,WAN2死活不动。。  详情 回复 发表于 2018-1-8 18:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-8 18:56 | 显示全部楼层
wackejohn 发表于 2018-1-8 16:26
配置policy 'loadbalanced'策略,然后把 rule 'loadbalance' 放在所有规则的最后,即可:

唉,整来整去两WAN都连接时,都只有WAN口在下载,WAN2死活不动。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-1-14 18:11 | 显示全部楼层
多谢楼上这位朋友,详细指点后,这负载均衡调得很爽了,两条线叠加下载时带宽用得足足的,测试关掉A线,上网OK,马上开B 关A,马上就能上网了,秒切。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-20 00:14 | 显示全部楼层
谢谢分享经验
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-24 16:33

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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