Difference between revisions of "Yocto kernel上支持IGMP协议"
From ESS-WIKI
(Created page with "<span style="font: 14px/24px arial, 宋体, sans-serif; color: rgb(51, 51, 51); text-transform: none; text-indent: 28px; letter-spacing: normal; word-spacing: 0px; float: none...") |
Baihui.cai (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | <span style="font: 14px/24px arial, 宋体, sans-serif; color: rgb(51, 51, 51); text-transform: none; text-indent: 28px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;">Internet 组管理协议称为IGMP协议(Internet Group Management | + | <span style="font: 14px/24px arial, 宋体, sans-serif; color: rgb(51, 51, 51); text-transform: none; text-indent: 28px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;">Internet 组管理协议称为IGMP协议(Internet Group Management Protocol),是因特网协议家族中的一个组播协议。</span> |
+ | |||
+ | <span style="font: 14px/24px arial, 宋体, sans-serif; color: rgb(51, 51, 51); text-transform: none; text-indent: 28px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;">该协议运行在主机和组播路由器之间。IGMP协议共有三个版本,即IGMPv1、v2 和v3。</span> 对linux添加IGMP组播报文的支持。 | ||
<div style="text-align: left; line-height: 1.875; font-size: 14px; white-space: pre-wrap;">1.在内核中添加支持</div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">make menuconfig</div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">Networking sopport-----></div><div style="text-align: left; line-height: 1.875; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">Networking options -----></div><div style="text-align: left; line-height: 1.875; text-indent: 84px; font-size: 14px; white-space: pre-wrap;">[*] IP : multicasting</div><div style="text-align: left; line-height: 1.875; text-indent: 112px; font-size: 14px; white-space: pre-wrap;">[*] IP : multicast routing</div><div style="text-align: left; line-height: 1.875; text-indent: 140px; font-size: 14px; white-space: pre-wrap;">[*] IP : multicasting</div><div style="text-align: left; line-height: 1.875; text-indent: 168px; font-size: 14px; white-space: pre-wrap;">[*] IP : PIM-SM version 1 support</div><div style="text-align: left; line-height: 1.875; text-indent: 168px; font-size: 14px; white-space: pre-wrap;">[*] IP : PIM-SM version 2 support</div><div style="text-align: left; line-height: 1.875; text-indent: 168px; font-size: 14px; white-space: pre-wrap;"> </div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">Networking sopport-----></div><div style="text-align: left; line-height: 1.875; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">Networking options -----></div><div style="text-align: left; line-height: 1.875; text-indent: 84px; font-size: 14px; white-space: pre-wrap;">[*]802.1d Ethernet Bridging</div><div style="text-align: left; line-height: 1.875; text-indent: 112px; font-size: 14px; white-space: pre-wrap;">[*]IGMP/MLD Bridging</div><div> </div><div style="text-align: left; line-height: 1.875; font-size: 14px; white-space: pre-wrap;">2.切换IGMP的版本号</div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">[1]查看当前内核IGMP的版本号</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#0</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">0 表示最高有效版本号,目前默认最高版本是V3。</div><div style="text-align: left; line-height: 1.5; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">[2]更改版本号</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#echo "2" > /proc/sys/net/ipv4/conf/eth0/force_igmp_version</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#2</div> | <div style="text-align: left; line-height: 1.875; font-size: 14px; white-space: pre-wrap;">1.在内核中添加支持</div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">make menuconfig</div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">Networking sopport-----></div><div style="text-align: left; line-height: 1.875; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">Networking options -----></div><div style="text-align: left; line-height: 1.875; text-indent: 84px; font-size: 14px; white-space: pre-wrap;">[*] IP : multicasting</div><div style="text-align: left; line-height: 1.875; text-indent: 112px; font-size: 14px; white-space: pre-wrap;">[*] IP : multicast routing</div><div style="text-align: left; line-height: 1.875; text-indent: 140px; font-size: 14px; white-space: pre-wrap;">[*] IP : multicasting</div><div style="text-align: left; line-height: 1.875; text-indent: 168px; font-size: 14px; white-space: pre-wrap;">[*] IP : PIM-SM version 1 support</div><div style="text-align: left; line-height: 1.875; text-indent: 168px; font-size: 14px; white-space: pre-wrap;">[*] IP : PIM-SM version 2 support</div><div style="text-align: left; line-height: 1.875; text-indent: 168px; font-size: 14px; white-space: pre-wrap;"> </div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">Networking sopport-----></div><div style="text-align: left; line-height: 1.875; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">Networking options -----></div><div style="text-align: left; line-height: 1.875; text-indent: 84px; font-size: 14px; white-space: pre-wrap;">[*]802.1d Ethernet Bridging</div><div style="text-align: left; line-height: 1.875; text-indent: 112px; font-size: 14px; white-space: pre-wrap;">[*]IGMP/MLD Bridging</div><div> </div><div style="text-align: left; line-height: 1.875; font-size: 14px; white-space: pre-wrap;">2.切换IGMP的版本号</div><div style="text-align: left; line-height: 1.875; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">[1]查看当前内核IGMP的版本号</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#0</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">0 表示最高有效版本号,目前默认最高版本是V3。</div><div style="text-align: left; line-height: 1.5; text-indent: 28px; font-size: 14px; white-space: pre-wrap;">[2]更改版本号</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#echo "2" > /proc/sys/net/ipv4/conf/eth0/force_igmp_version</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version</div><div style="text-align: left; line-height: 1.5; text-indent: 56px; font-size: 14px; white-space: pre-wrap;">#2</div> |
Revision as of 04:09, 30 November 2016
Internet 组管理协议称为IGMP协议(Internet Group Management Protocol),是因特网协议家族中的一个组播协议。
该协议运行在主机和组播路由器之间。IGMP协议共有三个版本,即IGMPv1、v2 和v3。 对linux添加IGMP组播报文的支持。
1.在内核中添加支持
make menuconfig
Networking sopport----->
Networking options ----->
[*] IP : multicasting
[*] IP : multicast routing
[*] IP : multicasting
[*] IP : PIM-SM version 1 support
[*] IP : PIM-SM version 2 support
Networking sopport----->
Networking options ----->
[*]802.1d Ethernet Bridging
[*]IGMP/MLD Bridging
2.切换IGMP的版本号
[1]查看当前内核IGMP的版本号
#cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version
#0
0 表示最高有效版本号,目前默认最高版本是V3。
[2]更改版本号
#echo "2" > /proc/sys/net/ipv4/conf/eth0/force_igmp_version
#cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version
#2