34
Figure 14 Network diagram
Configuration procedure
1.
Configure Switch A:
# Enable IGMP snooping globally.
<SwitchA> system-view
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] quit
# Create VLAN 100, and assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to the
VLAN.
[SwitchA] vlan 100
[SwitchA-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/3
# Enable IGMP snooping, and enable dropping unknown multicast packets for VLAN 100.
[SwitchA-vlan100] igmp-snooping enable
[SwitchA-vlan100] igmp-snooping drop-unknown
# Enable the IGMP snooping querier in VLAN 100.
[SwitchA-vlan100] igmp-snooping querier
[SwitchA-vlan100] quit
# Configure the source IP address of IGMP general queries and IGMP group-specific queries
as 192.168.1.1 in VLAN 100.
[SwitchA-vlan100] igmp-snooping general-query source-ip 192.168.1.1
[SwitchA-vlan100] igmp-snooping special-query source-ip 192.168.1.1
[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 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
Switch D
Switch A
Querier
Switch B
Switch C
Source 1
192.168.1.10/24
Host D
Receiver
GE1/0/2
GE1/0/1
GE1/0/1
GE1/0/2
GE1/0/3
GE1/0/3
GE1/0/1
GE1/0/2
GE1/0/1
GE1/0/3
GE1/0/2
Source 2
192.168.1.20/24
Host A
Host B
Host C
Receiver
Receiver
Receiver
GE1/0/4
VLAN 100