65
•
The multicast source sends multicast data to the multicast group 224.1.1.1. Host A, Host B,
Host C, and Host D are receivers of the multicast data. The hosts belong to VLAN 2 through
VLAN 5 respectively.
Configure the sub-VLAN-based multicast VLAN feature on Switch A to meet the following
requirements:
•
Router A sends the multicast data to Switch A through the multicast VLAN.
•
Switch A forwards the multicast data to the receivers in different VLANs.
Figure 24 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 PIM-DM on each interface, and enable IGMP
on the host-side interface GigabitEthernet 1/0/2.
<RouterA> system-view
[RouterA] multicast routing-enable
[RouterA] interface gigabitethernet 1/0/1
[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] igmp enable
3.
Configure Switch A:
# Enable IGMP snooping globally.
<SwitchA> system-view
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] quit
# Create VLAN 2 through VLAN 5.
GE
1/0
/2
GE1
/0/3
GE
1/0
/1
GE1
/0/1