IGMP Snooping Configuration Examples 573
Network diagram
Figure 173 Network diagram for static router port configuration
Configuration procedure
1 Configure the IP address of each interface
Configure an IP address and subnet mask for each interface as per Figure 173. The
detailed configuration steps are omitted.
2 Configure Router A
# Enable IP multicast routing, enable PIM-DM on each interface, and enable IGMP
on GigabitEthernet 1/0/1.
<RouterA> system-view
[RouterA] multicast routing-enable
[RouterA] interface GigabitEthernet 1/0/1
[RouterA-GigabitEthernet1/0/1] igmp enable
[RouterA-GigabitEthernet1/0/1] pim dm
[RouterA-GigabitEthernet1/0/1] quit
[RouterA] interface GigabitEthernet 1/0/2
[RouterA-GigabitEthernet1/0/2] pim dm
[RouterA-GigabitEthernet1/0/2] quit
3 Configure Switch A
# Enable IGMP Snooping globally.
<SwitchA> system-view
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] quit
# Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3
to this VLAN, and enable IGMP Snooping in the VLAN.
[SwitchA] vlan 100
[SwitchA-vlan100] port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/
3
[SwitchA-vlan100] igmp-snooping enable
[SwitchA-vlan100] quit
Source
1.1.1.1/24
Router A
IGMP querier
GE1/0/1
10. 1.1.1 /24
GE1/0/2
1.1.1.2/24
Switch A
Switch C
Switch B
GE1/0/1
G
E
1
/
0
/
2
G
E
1
/
0
/
3
G
E
1
/
0
/
1
GE1/0/2
G
E
1
/
0
/
1
GE1/0/2
Host C
Host B Host A
Receiver
Receiver
G
E
1
/
0
/
3
G
E
1
/
0
/
4
GE1/0/5