找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5389|回复: 12

MWAN3 死活都是 offline

[复制链接]
本帖最后由 Love4Taylor 于 2015-7-10 17:12 编辑

/etc/config/network配置是这样的
  1. config interface 'loopback'
  2.         option ifname 'lo'
  3.         option proto 'static'
  4.         option ipaddr '127.0.0.1'
  5.         option netmask '255.0.0.0'

  6. config interface 'lan'
  7.         option ifname 'eth0'
  8.         option force_link '1'
  9.         option type 'bridge'
  10.         option proto 'static'
  11.         option netmask '255.255.255.0'
  12.         option ip6assign '60'
  13.         option ipaddr '192.168.168.254'

  14. config interface 'wan'
  15.         option ifname 'vth1'
  16.         option _orig_ifname 'vth1'
  17.         option _orig_bridge 'false'
  18.         option proto 'pppoe'
  19.         option username 'xxxx'
  20.         option password 'xxxx'
  21.         option ipv6 'auto'
  22.         option metric '1'
  23.         option peerdns '0'
  24.         option dns '106.185.49.218 8.8.8.8'

  25. config interface 'wan1'
  26.         option ifname 'vth2'
  27.         option _orig_ifname 'vth2'
  28.         option _orig_bridge 'false'
  29.         option proto 'pppoe'
  30.         option username 'xxxx'
  31.         option password 'xxxx'
  32.         option ipv6 'auto'
  33.         option metric '2'
  34.         option peerdns '0'
  35.         option dns '106.185.49.218 8.8.8.8'

  36. config interface '6to4'
  37.         option proto '6to4'
复制代码

/etc/config/mwan3的配置是这样的
  1. config interface 'wan'
  2.         option enabled '1'
  3.         option reliability '2'
  4.         option count '1'
  5.         option timeout '2'
  6.         option interval '5'
  7.         option down '3'
  8.         option up '8'
  9.         option reroute '1'
  10.         list track_ip '218.2.2.2'
  11.         list track_ip '218.4.4.4'

  12. config interface 'wan1'
  13.         option enabled '1'
  14.         option reliability '2'
  15.         option count '1'
  16.         option timeout '2'
  17.         option interval '5'
  18.         option down '3'
  19.         option up '8'
  20.         option reroute '1'
  21.         list track_ip '218.2.2.2'
  22.         list track_ip '218.4.4.4'

  23. config member 'wan_m1_w1'
  24.         option interface 'wan'
  25.         option metric '1'
  26.         option weight '1'

  27. config member 'wan1_m1_w1'
  28.         option interface 'wan1'
  29.         option metric '1'
  30.         option weight '1'

  31. config policy 'wan_only'
  32.         list use_member 'wan_m1_w1'

  33. config policy 'loadbalanced'
  34.         list use_member 'wan_m1_w1'
  35.         list use_member 'wan1_m1_w1'
  36.         option last_resort 'unreachable'

  37. config rule 'rule1'
  38.         option src_ip '192.168.168.0/24'
  39.         option proto 'tcp'
  40.         option dest_port '443'
  41.         option use_policy 'wan_only'

  42. config rule 'rule2'
  43.         option src_ip '192.168.168.0/24'
  44.         option proto 'tcp'
  45.         option dest_port '8000'
  46.         option use_policy 'wan_only'

  47. config rule 'rule3'
  48.         option src_ip '192.168.168.0/24'
  49.         option proto 'udp'
  50.         option dest_port '8000'
  51.         option use_policy 'wan_only'

  52. config rule 'rule4'
  53.         option dest_ip '0.0.0.0/0'
  54.         option use_policy 'loadbalanced'
复制代码




可是却一直offline






本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
接口命名不统一

点评

一样的啊。。  详情 回复 发表于 2015-7-10 17:13
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
shenyz 发表于 2015-7-10 14:36
接口命名不统一

一样的啊。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

/etc/config/network不对,能否贴出原始network文件

wan口是物理的,wan1是虚拟的。

config interface 'wan'
option ifname 'vth1'

可能有问题,应该是option ifname 'eth1' 或者正确是物理网卡号。

点评

我是用的macvlan虚拟出的两个接口啊。。。一个设为wan,一个设为wan1  详情 回复 发表于 2015-7-11 07:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

config interface 'wan'
        option enabled '1'
        option ifname 'eth0'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option proto 'pppoe'
        option username '账号'
        option password '密码'
        option metric '1'

config interface 'wan1'
        option enabled '1'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option ifname 'vth1'
        option proto 'pppoe'
        option username '账号'
        option password '密码'
        option metric '2'

config interface 'wan2'
        option enabled '1'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option proto 'pppoe'
        option ifname 'vth2'
        option username '账号'
        option password '密码'
        option metric '3'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
lifengdp 发表于 2015-7-10 22:25
/etc/config/network不对,能否贴出原始network文件

wan口是物理的,wan1是虚拟的。

我是用的macvlan虚拟出的两个接口啊。。。一个设为wan,一个设为wan1

点评

试试不虚拟两个,只虚拟1个接口。 一个物理wan口拨号,一个虚拟wan1口拨号,这应该就是拨号问题,与mwan3无关。  详情 回复 发表于 2015-7-13 15:41
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

点评

你这个我试过,一样  详情 回复 发表于 2015-7-11 09:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
am2dk 发表于 2015-7-11 08:35
参考我的帖子
https://www.right.com.cn/forum/thread-152984-1-1.html

你这个我试过,一样

点评

补充一下,最近两天的trunk有这个毛病,但是mwan3实际上是叠加的,10号的trunk已经解决了mwan3状态显示错误的问题。  详情 回复 发表于 2015-7-11 09:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

    option _orig_ifname 'vth2'
        option _orig_bridge 'false'
这里的vth应该是eh0
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Love4Taylor 发表于 2015-7-11 09:01
你这个我试过,一样

补充一下,最近两天的trunk有这个毛病,但是mwan3实际上是叠加的,10号的trunk已经解决了mwan3状态显示错误的问题。

点评

昨天翻了下timeline和github issue,现在luci的解决了,程序方面还没解决吧  详情 回复 发表于 2015-7-11 09:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
am2dk 发表于 2015-7-11 09:06
补充一下,最近两天的trunk有这个毛病,但是mwan3实际上是叠加的,10号的trunk已经解决了mwan3状态显示错 ...

昨天翻了下timeline和github issue,现在luci的解决了,程序方面还没解决吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Love4Taylor 发表于 2015-7-11 07:09
我是用的macvlan虚拟出的两个接口啊。。。一个设为wan,一个设为wan1

试试不虚拟两个,只虚拟1个接口。

一个物理wan口拨号,一个虚拟wan1口拨号,这应该就是拨号问题,与mwan3无关。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

在命令行试试track_ip能不能ping,如果不能更换track_ip
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-4-30 09:17

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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