43
2.
Configure Switch B:
# Enable IGMP snooping globally.
<SwitchB> system-view
[SwitchB] igmp-snooping
[SwitchB-igmp-snooping] quit
# Create VLAN 100, and assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to the
VLAN.
[SwitchB] vlan 100
[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
3.
Configure Switch C in the same way as you configure Switch B. (Details not shown.)
4.
Configure Switch D in the same way as you configure Switch B. (Details not shown.)
Verifying the configuration
Verify that all switches but the querier can receive IGMP general queries after the IGMP snooping
querier starts to work. This example uses Switch B.
# Display statistics for the IGMP messages 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
, IGMPv2 runs on Router A, and IGMPv2 snooping runs on Switch A. Router A
serves as an IGMP querier.
Configure IGMP snooping proxying on Switch A to meet the following requirements:
•
Switch A can forward IGMP reports and leave messages on behalf of attached hosts.
•
Switch A can respond to IGMP queries from Router A and forward the queries to the hosts on
behalf of Router A.