
47
•
Switch A's GigabitEthernet1/0/1 belongs to VLAN 10, GigabitEthernet1/0/2 through
GigabitEthernet1/0/4 belong to VLAN 2 through VLAN 4 respectively, and Host A through Host
C are attached to GigabitEthernet1/0/2 through GigabitEthernet1/0/4 of Switch A respectively.
•
The multicast source sends multicast data to multicast group 224.1.1.1. Host A, Host B, and
Host C are receivers of the multicast group.
•
Configure the port-based multicast VLAN feature 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.
Network diagram
Figure 19 Network diagram for port-based multicast VLAN configuration
Configuration procedure
1.
Configure IP addresses
Configure the IP address and subnet mask for each interface according to
configuration steps are omitted here.
2.
Configure Router A
# Enable IP multicast routing, enable PIM-DM on each interface, and enable IGMP on the host-side
interface GigabitEthernet1/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