55
Configure the port-based multicast VLAN feature on Switch A so that Router A just sends multicast data
to Switch A through the multicast VLAN and Switch A forwards the multicast data to the receivers that
belong to different user VLANs.
Figure 20
Network diagram
Configuration procedure
1.
Configure the IP address and subnet mask for each interface as per
. (Details not shown.)
2.
On Router A, enable IP multicast routing, enable PIM-DM on each interface, and enable IGMP on
the host-side interface Ethernet 1/0/2.
<RouterA> system-view
[RouterA] multicast routing-enable
[RouterA] interface ethernet 1/0/1
[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] igmp enable
3.
Configure Switch A:
# Enable IGMP snooping globally.
<SwitchA> system-view
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] quit
# Create VLAN 10, assign Ethernet 1/0/1 to VLAN 10, and enable IGMP snooping in this VLAN.
[SwitchA] vlan 10
[SwitchA-vlan10] port ethernet 1/0/1
[SwitchA-vlan10] igmp-snooping enable
[SwitchA-vlan10] quit
# Create VLAN 2 and enable IGMP snooping in the VLAN.
[SwitchA] vlan 2
[SwitchA-vlan2] igmp-snooping enable