![H3C S5120-SI Series Operation Manual Download Page 310](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174310.webp)
2-28
[SwitchB-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4
# Enable IGMP snooping and the function of dropping unknown multicast traffic in VLAN 100.
[SwitchB-vlan100] igmp-snooping enable
[SwitchB-vlan100] igmp-snooping drop-unknown
[SwitchB-vlan100] quit
Configurations on Switch C and Switch D are similar to the configuration on Switch B.
3) Verify the configuration
After the IGMP snooping querier starts to work, all the switches but the querier can receive IGMP
general queries. By using the
display igmp-snooping statistics
command, you can view the statistics
information about the IGMP messages received. For example:
# Display the IGMP message statistics on Switch B.
[SwitchB] display igmp-snooping statistics
Received IGMP general queries:3.
Received IGMPv1 reports:0.
Received IGMPv2 reports:12.
Received IGMP leaves:0.
Received IGMPv2 specific queries:0.
Sent IGMPv2 specific queries:0.
Received IGMPv3 reports:0.
Received IGMPv3 reports with right and wrong records:0.
Received IGMPv3 specific queries:0.
Received IGMPv3 specific sg queries:0.
Sent IGMPv3 specific queries:0.
Sent IGMPv3 specific sg queries:0.
Received error IGMP messages:0.
IGMP Snooping Proxying Configuration Example
Network requirements
As shown in
Figure 2-7
,
z
Router A connects to a multicast source through port GigabitEthernet 1/0/2, and to Switch A
through port GigabitEthernet 1/0/1.
z
Router A runs IGMPv2 and Switch A runs IGMPv2 Snooping. Router A serves as an IGMP querier.
Configure IGMP snooping proxying on Switch A, enabling the switch to forward IGMP reports and leave
messages on behalf of attached hosts and to respond to IGMP queries from Router A and forward the
queries to the hosts on behalf of Router A.