openwrt 下启动igmpproxy时报错

# /etc/init.d/igmpproxy start

Not starting instance igmpproxy::instance1, an error was indicated

手动拉起进程,查看更多消息:

root@hbg:# igmpproxy -d -v -v /var/etc/igmpproxy.conf
Searching for config file at '/var/etc/igmpproxy.conf'
Config: Got a phyint token.
Config: IF: Config for interface br-lan.
Config: IF: Got upstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
Config: IF: Got altnet token 192.168.2.0/24.
Config: IF: Altnet: Parsed altnet to 192.168.2/24.
IF name : br-lan
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 1
Allowednet ptr : 82b2a8
Config: Got a phyint token.
Config: IF: Config for interface wlan0.
Config: IF: Got downstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
IF name : wlan0
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 2
Allowednet ptr : 0
buildIfVc: Interface lo Addr: 127.0.0.1, Flags: 0x0049, Network: 127/8
buildIfVc: Interface br-lan Addr: 192.168.2.127, Flags: 0x1043, Network: 192.168.2/24
Found config for br-lan
adding VIF, Ix 0 Fl 0x0 IP 0xc0a8027f br-lan, Threshold: 1, Ratelimit: 0
        Network for [br-lan] : 192.168.2/24
        Network for [br-lan] : 192.168.2/24
There must be at least 2 Vif's where one is upstream.   
root@hbg:# cat igmpproxy.conf

phyint br-lan upstream ratelimit 0 threshold 1
        altnet 192.168.2.0/24

phyint wlan0 downstream ratelimit 0 threshold 1

打印的错误如红色字体部分。

百度搜索一下,得到如下答案:

手动执行igmpproxy -d -vv /etc/igmpproxy.conf会发现只添加成功了下联端口,上联端口没有添加成功,查了很多资料也没找到原因,后来查看了下padavan的源代码发现是因为没有为LAN1配置IP地址,配置完ip地址后,pc端成功收到组播流。

详情查看恩山论坛(http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=207693&page=1#pid1674821

给wlan0配置ip地址后,可正常运行:

root@hbg:/# igmpproxy -d -v -v /var/etc/igmpproxy.conf
Searching for config file at '/var/etc/igmpproxy.conf'
Config: Got a phyint token.
Config: IF: Config for interface br-lan.
Config: IF: Got upstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
Config: IF: Got altnet token 192.168.2.0/24.
Config: IF: Altnet: Parsed altnet to 192.168.2/24.
IF name : br-lan
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 1
Allowednet ptr : 8b82a8
Config: Got a phyint token.
Config: IF: Config for interface wlan0.
Config: IF: Got downstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
IF name : wlan0
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 2
Allowednet ptr : 0
Config: Got a phyint token.
Config: IF: Config for interface br-lan.
Config: IF: Got upstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
Config: IF: Got altnet token 192.168.2.0/24.
Config: IF: Altnet: Parsed altnet to 192.168.2/24.
IF name : br-lan
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 1
Allowednet ptr : 8b8318
Config: Got a phyint token.
Config: IF: Config for interface wlan0.
Config: IF: Got downstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
IF name : wlan0
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 2
Allowednet ptr : 0
buildIfVc: Interface lo Addr: 127.0.0.1, Flags: 0x0049, Network: 127/8
buildIfVc: Interface br-lan Addr: 192.168.2.127, Flags: 0x1043, Network: 192.168.2/24
buildIfVc: Interface wlan0 Addr: 192.168.2.224, Flags: 0x1043, Network: 192.168.2/24
Found config for br-lan
Found config for wlan0
adding VIF, Ix 0 Fl 0x0 IP 0xc0a8027f br-lan, Threshold: 1, Ratelimit: 0
        Network for [br-lan] : 192.168.2/24
        Network for [br-lan] : 192.168.2/24
adding VIF, Ix 1 Fl 0x0 IP 0xc0a802e0 wlan0, Threshold: 1, Ratelimit: 0
        Network for [wlan0] : 192.168.2/24
Got 262144 byte buffer size in 0 iterations
Joining all-routers group 224.0.0.2 on vif 192.168.2.224
joinMcGroup: 224.0.0.2 on wlan0
SENT Membership query   from 192.168.2.224   to 224.0.0.1
Sent membership query from 192.168.2.224 to 224.0.0.1. Delay: 10
Created timeout 1 (#0) - delay 10 secs
(Id:1, Time:10)
Created timeout 2 (#1) - delay 21 secs
(Id:1, Time:10)
(Id:2, Time:21)
RECV Membership query   from 192.168.2.224   to 224.0.0.1
RECV V2 member report   from 192.168.2.224   to 224.0.0.2
Mebership report was recieved on the upstream interface. Ignoring.

igmpproxy启动时错误:There must be at least 2 Vif's where one is upstream.的更多相关文章

  1. WCF项目启动时错误处理

    1. 原因:启动有wcf服务的项目时,报错,是因为wcf的服务没有启动. 解决办法:启动wcf的服务端口,127.0.0:4000,错误消失.

  2. tomcat启动时错误:Failed to start component [StandardEngine[Catalina].StandardHost[localhost].错误

    今天第一次遇到Failed to start component [StandardEngine[Catalina].StandardHost[localhost].错误,并且在错误提示的后半段出现了 ...

  3. Kylin启动时错误:Failed to find metadata store by url: kylin_metadata@hbase 解决办法

    一.问题背景 安装kylin后使用命令 $ kylin.sh start 后出现Failed to find metadata store by url: kylin_metadata@hbase的错 ...

  4. 禁用 Windows 启动时错误恢复的“启动启动修复(推荐)”

    bcdedit /set {default} bootstatuspolicy ignoreallfailures bcdedit /set {current} recoveryenabled No

  5. future3.2 Tomcat启动时错误:Cannot rename original file to ...

    其日志中第一个警告如下: 警告: Unexpected exception resolving reference java.io.IOException: Cannot rename origina ...

  6. Eclipse启动时发生An internal error occurred during: "Initializing Java Tooling".错误的解决方法

    问题描述: Eclipse启动时发生An internal error occurred during: "Initializing JavaTooling".错误的解决方法 解决 ...

  7. eclipse启动时报告错误:Java was started but returned exit code=-805306369

    这两天也没改过eclipse和java的配置,但eclipse启动时报告错误:Java was started but returned exit code=-805306369 后来在eclipse ...

  8. 编译安装或者mysql启动时遇到的错误小记

    编译安装遇到的错误:进入mysql目录 [root@localhost software]# cd mysql-5.6.19 [root@localhost mysql-5.5.11]# cmake ...

  9. MyEclipse+Tomcat 启动时出现A configuration error occured during startup错误的解决方法

    MyEclipse+Tomcat 启动时出现A configuration error occured during startup错误的解决方法 分类: javaweb2013-06-03 14:4 ...

随机推荐

  1. NCBI上查看SNP位点在哪个基因座上(locus)

    首先,进入NCBI的主页网站:https://www.ncbi.nlm.nih.gov/variation/view/ 进入后,在下图红色框框位置输入目的SNP,比如rs608139 输完后,出现如下 ...

  2. selenium - switch_to.window() - 多窗口切换

    在页面操作过程中有时候点击某个链接会弹出新的窗口,这时就需要主机切换到新打开的窗口上进行操作.WebDriver提供了switch_to.window()方法,可以实现在不同的窗口之间切换. 以百度首 ...

  3. 基于Spring Cloud的微服务入门教程

    (本教程的原地址发布在本人的简书上:http://www.jianshu.com/p/947d57d042e7,若各位看官有什么问题或不同看法请在这里或简书留言,谢谢!) 本人也是前段时间才开始接触S ...

  4. mvc4+entityFramework5 发布时遇到的纠结问题

    最近在研究微软的新平台Vs2012,做好的系统在发布到服务器时纠结了.本地环境是win7的,一切运行正常,发布也很顺利.可是悲催的服务器还是windows 2003的,.net framewrok4. ...

  5. 20181114 Redis

    Redis 下载 Windows版本 Windows版本 已经有很久没有更新了,建议还是使用Linux版本 Linux版本 官网下载即可 配置文件 Windows版本 redis.windows.co ...

  6. Spark进阶之路-Spark提交Jar包执行

    Spark进阶之路-Spark提交Jar包执行 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 在实际开发中,使用spark-submit提交jar包是很常见的方式,因为用spark ...

  7. GO语言的进阶之路-网络安全之proxy

    GO语言的进阶之路-网络安全之proxy 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 在党的带领下,我们大陆的孩子身心健康还是杠杠的,尤其是像我这种农村孩纸,从来不会像<人 ...

  8. Linux命令之less

    less命令 用处:查看文件,功能强大,随意浏览,查看之前不会预先加载文件 用法:less + 文件名    (按q退出) 示例: 一.查看文档内容 (我这里有一个profile的文件,我想查看里面的 ...

  9. python---memcache使用操作

    import memcache mc = memcache.Client(['127.0.0.1:8081'],debug=True) mc.set("key","val ...

  10. CentOS6.8下安装redis并配置开机自启动

    参考资料:http://www.bubuko.com/infodetail-1006383.html   http://www.cnblogs.com/skyessay/p/6433349.html ...