35
Figure 13
Network diagram
Configuration procedure
1.
Configure an IP address and subnet mask for each interface as per
. (Details not shown.)
2.
On Router A, enable IP multicast routing, enable IGMP on Ethernet 1/0/1, and enable PIM-DM on
each interface.
<RouterA> system-view
[RouterA] multicast routing-enable
[RouterA] interface ethernet 1/0/1
[RouterA-Ethernet1/0/1] igmp enable
[RouterA-Ethernet1/0/1] pim dm
[RouterA-Ethernet1/0/1] quit
[RouterA] interface ethernet 1/0/2
[RouterA-Ethernet1/0/2] pim dm
[RouterA-Ethernet1/0/2] quit
3.
Configure Switch A:
# Enable IGMP snooping and the function of dropping unknown multicast traffic globally.
<SwitchA> system-view
[SwitchA] igmp-snooping
[SwitchA -igmp-snooping] drop-unknown
[SwitchA-igmp-snooping] quit
# Create VLAN 100, assign Ethernet 1/0/1 through Ethernet 1/0/4 to this VLAN, and enable
IGMP snooping in the VLAN.
[SwitchA] vlan 100
[SwitchA-vlan100] port ethernet 1/0/1 to ethernet 1/0/4
[SwitchA-vlan100] igmp-snooping enable
[SwitchA-vlan100] quit
# Configure a multicast group filter so that the hosts in VLAN 100 can join only the multicast group
224.1.1.1.
[SwitchA] acl number 2001
[SwitchA-acl-basic-2001] rule permit source 224.1.1.1 0