If users in different VLANs are interested in data from the same multicast source, create a multicast VLAN on a Device and associate this multicast VLAN with the user VLANs. Then, the Device uses the multicast VLAN to manage the multicast source and multicast group members, simplifying multicast management and improving bandwidth usage.
The multicast VLAN function involves two concepts: multicast VLAN and user VLAN.
A multicast VLAN is a VLAN to which router interfaces connected to multicast sources belong. A multicast VLAN is used to aggregate multicast flows. A router allows you to configure a maximum of 128 multicast VLANs.
A user VLAN is a VLAN to which user hosts belong. A user VLAN is used to receive data from a multicast VLAN.
A multicast VLAN can be associated with a maximum of 4093 user VLANs.
The system view is displayed.
A multicast VLAN is created, and the multicast VLAN view is displayed.
Internet Group Management Protocol (IGMP) snooping is enabled for the multicast VLAN.
The multicast VLAN function is enabled.
The multicast VLAN is associated with the specified user VLANs.
A multicast VLAN can be associated with multiple user VLANs, but a user VLAN can be associated with only one multicast VLAN.
Querier election is enabled for the user VLANs.
Before enabling querier election, ensure that the igmp-snooping send-query source-address command has been run on each router to configure a source IP address for the IGMP Query messages to be sent by the querier.
A source IP address for the IGMP Query messages sent by a device is set.
By default, the source IP address of the IGMP Query messages sent by the device is 192.168.0.1. In some scenarios, the IP address may be used by another device, or users require that the source IP address of IGMP Query messages be on the same network segment as the IP address of the local device. In this case, you can run the igmp-snooping send-query source-address command to set a source IP address for the IGMP Query messages sent by the device.
Sending General Query messages back through the source interface in the user VLAN is disabled.
When the multicast VLAN and the user VLAN are configured on the same interface, general query packets are forwarded back through the interface by default. The source MAC address of the packet is not changed during the forwarding process. Therefore, the upstream device learns the MAC address table of the interface as the source MAC address. If the upstream device has learned the source MAC address from another interface, MAC address flapping occurs on the upstream device. To avoid this situation, perform this step.
Multicast traffic and packets are not isolated in the VLAN.
The configuration is committed.