163
[SwitchA-vlan100] quit
2.
Configure Switch B:
# Enable IGMP snooping globally.
<SwitchB> system-view
[SwitchB] igmp-snooping
[SwitchB-igmp-snooping] quit
# Create VLAN 100, and assign Ethernet 1/1 through Ethernet 1/4 to the VLAN.
[SwitchB] vlan 100
[SwitchB-vlan100] port ethernet 1/1 to ethernet 1/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.
Verifying 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 display statistics for the
received IGMP messages. For example:
# 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
An MSR with a fixed Layer 2 Ethernet switching interface or a Layer 2 switching interface module acts as
a switch (Switch A in
).
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, 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.