44
Figure 17 Network diagram
Configuration procedure
1.
Assign an IP address and subnet mask to each interface according to
. (Details not
shown.)
2.
On Router A, enable IP multicast routing globally, enable IGMP on GigabitEthernet 1/0/1, and
enable PIM-DM on each interface.
<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 ports GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to this
VLAN, and enable IGMP snooping and IGMP snooping proxying in the VLAN.
[SwitchA] vlan 100
[SwitchA-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4
[SwitchA-vlan100] igmp-snooping enable
[SwitchA-vlan100] igmp-snooping proxying enable
[SwitchA-vlan100] quit
Verifying the configuration
After the configuration is completed, Host A and Host B send IGMP join messages for group
224.1.1.1. Receiving the messages, Switch A sends a join message for the group out of
GigabitEthernet 1/0/1 (a router port) to Router A.
Source
Router A
IGMP querier
Receiver
Receiver
Host A
Host B
Host C
1.1.1.1/24
GE1/0/4
GE1/0/2
GE1/0/3
GE1/0/1
GE1/0/1
10.1.1.1/24
GE1/0/2
1.1.1.2/24
VLAN 100
Switch A
Proxy & Querier