54
The output shows that IGMP snooping is maintaining the router port in the multicast VLAN (VLAN 10)
and the member ports in the sub-VLANs (VLAN 2 through VLAN 5).
Port-based multicast VLAN configuration example
Network requirements
As shown in Figure 21, IGMPv2 runs on Router A. IGMPv2 Snooping runs on Switch A. Router A acts as
the IGMP querier. 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, and the hosts belong to VLAN 2 through VLAN 4
respectively.
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 21 Network diagram
Configuration procedure
1. Configure the IP address and subnet mask for each interface as per Figure 21. (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