igmpproxy启动时错误:There must be at least 2 Vif's where one is upstream.
2017-10-18 09:31
726 查看
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.
# /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.
相关文章推荐
- xcode4.3发布报错 At least one of the following architecture(s) must be present: armv6 (-19033) 错误解决方法
- must be configured to display at least 256 错误
- [转载红鱼儿]kbmmw 开发点滴:There be must at least one field
- 出现:Package name must be specified.错误,提示要Package name 出现:Package name must have at least two identifi
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- 解决linux VPS安装weblogic时碰到的显示问题Checking monitor: must be configured to display at least 256 colors
- oracle Can't connect to X11 window server using ':0.0' /Checking monitor: must be configured to display at least 256 colors解决方法
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:This file requires _WIN32_WINNT to be #defined at least to 0x0403...的解决方法
- VC++ 2010编译错误 fatal error C1189 error This file requires _WIN32_WINNT to be #defined at least
- 创建JPA工程时提示:at least one user library must be selected
- ERROR: No pool defined. at least one pool section must be specified in config file
- 错误 1 error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- There is already an open DataReader associated with this Command which must be closed first的错误解决办法
- MySQL里面的错误——[Err] 1113 - A table must have at least 1 column
- Caused by: java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- centos 16安装PHP7.0 异常 No pool defined. at least one pool section must be specified in config file