36
Group policy and simulated joining configuration example (in
a VLAN)
Network requirements
As shown in
, IGMPv2 runs on Router A, IGMPv2 snooping runs on Switch A, and Router A
acts as the IGMP querier on the subnet.
Configure a group policy and simulated joining to meet the following requirements:
•
Host A and Host B can receive multicast traffic addressed to multicast group 224.1.1.1 only.
•
Multicast data for group 224.1.1.1 can be forwarded through GigabitEthernet 1/0/3 and
GigabitEthernet 1/0/4 of Switch A even if Host A and Host B accidentally, temporarily stop
receiving multicast data. Switch A drops unknown multicast data and does not broadcast the
data to the VLAN where Switch A resides.
Figure 14 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, 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