|
楼主 |
发表于 2018-11-22 16:36
|
显示全部楼层
本帖最后由 zeng362424 于 2018-11-22 16:37 编辑
一、通过一个命令解决,接收所有的组播报文。
- 接收所有组播报文
- ifconfig ath0 allmulti
- 去掉上面接收所有组播报文
- ifconfig ath0 -allmulti
复制代码
二、下面是ifconfig看到的ath0信息对比
- 默认的ifconfig ath0信息
- # ifconfig ath0
- ath0 Link encap:Ethernet HWaddr 11:22:33:44:55:66
- inet6 addr: 1234::5678:1234:5678:275/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:3137 errors:0 dropped:0 overruns:0 frame:0
- TX packets:3012 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:1561843 (1.4 MiB) TX bytes:530570 (518.1 KiB)
- 设置以后的ifconfig ath0
- # ifconfig eth0
- eth0 Link encap:Ethernet HWaddr 11:22:33:44:55:66
- inet6 addr: 1234::5678:1234:5678:274/64 Scope:Link
- UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1----------这里多了一个ALLMULTI
- RX packets:298 errors:0 dropped:0 overruns:0 frame:0
- TX packets:505 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:29697 (29.0 KiB) TX bytes:44748 (43.6 KiB)
复制代码 |
|