找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 15007|回复: 7

按照shenyz大神做的MWAN3单线多拨,总有一个掉线,offline!求大神给诊断!

[复制链接]
本帖最后由 play_boy 于 2015-3-14 21:27 编辑

总有这个显示 WARNING: some interfaces have no default route in the main routing table!

双线能拨上去一个,三线能拨上去两个,四线能拨上去三个。总是有一个offline!哪个能拨上去也不确定,似乎是随机的。


看了前面的帖子,跃点设置了,每个网卡不同,use default gateway也勾选了。MWAN config
  1. config rule 'default_rule'
  2.         option dest_ip '0.0.0.0/0'
  3.         option proto 'all'
  4.         option use_policy 'po'

  5. config rule 'sticky_even'
  6.         option src_ip '0.0.0.0/0.0.0.1'
  7.         option dest_port '443'
  8.         option proto 'tcp'
  9.         option use_policy 'wan_wan2'

  10. config rule 'sticky_odd'
  11.         option src_ip '0.0.0.1/0.0.0.1'
  12.         option dest_port '443'
  13.         option proto 'tcp'
  14.         option use_policy 'wan2_wan'

  15. config interface 'wan'
  16.         option enabled '1'
  17.         option reliability '2'
  18.         option count '1'
  19.         option timeout '2'
  20.         option interval '5'
  21.         option down '3'
  22.         option up '8'
  23.         list track_ip '123.58.180.7'
  24.         list track_ip '8.8.8.8'
  25.         list track_ip '208.67.222.222'
  26.         list track_ip '208.67.220.220'

  27. config interface 'wan3'
  28.         option enabled '1'
  29.         option reliability '1'
  30.         option count '1'
  31.         option timeout '2'
  32.         option interval '5'
  33.         list track_ip '8.8.8.8'
  34.         list track_ip '123.58.180.7'
  35.         option down '3'
  36.         option up '8'

  37. config member 'wan_w1'
  38.         option interface 'wan'
  39.         option metric '1'
  40.         option weight '1'

  41. config member 'wan2_w1'
  42.         option interface 'wan2'
  43.         option metric '1'
  44.         option weight '1'

  45. config member 'wan3_w1'
  46.         option interface 'wan3'
  47.         option metric '1'
  48.         option weight '1'

  49. config policy 'po'
  50.         option last_resort 'default'
  51.         list use_member 'wan_w1'
  52.         list use_member 'wan2_w1'
  53.         list use_member 'wan3_w1'
  54.         list use_member 'wan4_w1'

  55. config interface 'wan2'
  56.         option enabled '1'
  57.         list track_ip '123.58.180.7'
  58.         list track_ip '8.8.8.8'
  59.         option reliability '1'
  60.         option count '1'
  61.         option timeout '2'
  62.         option interval '5'
  63.         option down '3'
  64.         option up '8'

  65. config interface 'wan4'
  66.         option enabled '1'
  67.         option reliability '1'
  68.         option count '1'
  69.         option timeout '2'
  70.         option interval '5'
  71.         option down '3'
  72.         option up '8'
  73.         list track_ip '8.8.8.8'
  74.         list track_ip '123.58.180.7'

  75. config member 'wan4_w1'
  76.         option interface 'wan4'
  77.         option metric '1'
  78.         option weight '1'
复制代码
/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 globals 'globals'
  7.         option ula_prefix 'fd96:c578:fedc::/48'

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

  16. config interface 'wan'
  17.         option ifname 'eth1'
  18.         option _orig_ifname 'eth1'
  19.         option _orig_bridge 'false'
  20.         option proto 'pppoe'
  21.         option username 'XXX'
  22.         option password '12345678'
  23.         option metric '10'

  24. config switch
  25.         option name 'switch0'
  26.         option reset '1'
  27.         option enable_vlan '1'

  28. config switch_vlan
  29.         option device 'switch0'
  30.         option vlan '1'
  31.         option ports '0 1 2 3 4'

  32. config interface 'wan2'
  33.         option proto 'pppoe'
  34.         option ifname 'vth2'
  35.         option metric '40'
  36.         option username 'XXX'
  37.         option password '12345678'

  38. config interface 'wan3'
  39.         option proto 'pppoe'
  40.         option ifname 'vth3'
  41.         option metric '60'
  42.         option username 'XXX'
  43.         option password '12345678'

  44. config interface 'wan4'
  45.         option proto 'pppoe'
  46.         option ifname 'vth4'
  47.         option username 'XXX'
  48.         option password '12345678'
  49.         option metric '70'
复制代码
startup代码
  1. sleep 3

  2. ip link add link eth1 vth2 type macvlan            
  3. ifconfig vth2 hw ether 38-5B-F9-21-46-54      
  4. ifconfig vth2 up

  5. ip link add link eth1 vth3 type macvlan            
  6. ifconfig vth3 hw ether 38-5B-F9-21-46-55      
  7. ifconfig vth3 up

  8. ip link add link eth1 vth4 type macvlan            
  9. ifconfig vth4 hw ether 38-5B-F9-21-46-56      
  10. ifconfig vth4 up
复制代码


是按照这个帖子做的https://www.right.com.cn/forum/f ... &authorid=53640
安装的官网的最新固件 Powered by LuCI Trunk (0.12+svn-r10530)    OpenWrt Barrier Breaker 14.07
除了几个菜单的位置有点区别,别的都一样。

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
已经搞定,是新版的虚拟网卡的命令不一样了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

能发下最新版的命令吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

如何解决的你上面提到的错误的?WARNING: some interfaces have no default route in the main routing table!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
OpenWrt Chaos Calmer 和BB14.07版本生成虚拟网卡命令发生了变化,(BB-RC3之前的没有变化)故许多同学认为CC版本不能生成。启动项新的命令如下:
ip link add link eth0.2  type macvlan   eth0.2 为你的真实网卡 生成默认的虚拟网卡为macvlan0
ip link add link eth0.2  type macvlan  eth0.2 为你的真实网卡 生成默认的虚拟网卡为macvlan1
ip link add link eth0.2  type macvlan  eth0.2 为你的真实网卡 生成默认的虚拟网卡为macvlan2
原来的旧命令也能生成虚拟网卡,但是会出现有一个offline的问题,改为新命令就对了。

点评

请问这个是要在哪里修改,烦请告之路径  详情 回复 发表于 2016-3-16 10:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

只要在接口里看到确实拨号上了就在mwan3里的检测ip里啥都不填就是默认表示这个接口在线的

点评

出故障的时候,就是看到拨号那里都掉了的。没有ip。 检测只是个备用手段,当它检测到ping不通,重新拨号。  详情 回复 发表于 2015-3-24 15:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
韦海铭 发表于 2015-3-24 12:18
只要在接口里看到确实拨号上了就在mwan3里的检测ip里啥都不填就是默认表示这个接口在线的

出故障的时候,就是看到拨号那里都掉了的。没有ip。
检测只是个备用手段,当它检测到ping不通,重新拨号。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

play_boy 发表于 2015-3-24 10:41
OpenWrt Chaos Calmer 和BB14.07版本生成虚拟网卡命令发生了变化,(BB-RC3之前的没有变化)故许多同学认为 ...

请问这个是要在哪里修改,烦请告之路径
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-28 05:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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