Configuring a port-based multicast VLAN
Restrictions and guidelines
You can assign user ports to a multicast VLAN in multicast VLAN view or assign a user port to a multicast VLAN in interface view. These configurations have the same priority.
A user port can belong to only one multicast VLAN.
Prerequisites
Before you configure a port-based multicast VLAN, you must complete the following tasks:
Create VLANs as required.
Enable IGMP snooping for the VLAN to be configured as the multicast VLAN.
Enable IGMP snooping for all the VLANs that contain multicast receivers.
Configure the attributes of user ports. Make sure the ports can forward packets from the VLAN to be configured as the multicast VLAN and send the packets with the VLAN tag removed. For more information about configuring port attributes, see VLAN configuration in Layer 2—LAN Switching Configuration Guide.
Assigning user ports to a multicast VLAN in multicast VLAN view
Enter system view.
system-view
Configure a VLAN as a multicast VLAN and enter multicast VLAN view.
multicast-vlan vlan-id
By default, a VLAN is not a multicast VLAN.
Assign ports to the multicast VLAN.
port interface-list
Assigning user ports to a multicast VLAN in interface view
Enter system view.
system-view
Configure a VLAN as a multicast VLAN and enter multicast VLAN view.
multicast-vlan vlan-id
By default, a VLAN is not a multicast VLAN.
Return to system view.
quit
Enter Layer 2 interface view.
Enter Layer 2 Ethernet interface view.
interface interface-type interface-number
Enter Layer 2 aggregate interface view.
interface bridge-aggregation interface-number
Assign the port to the multicast VLAN.
port multicast-vlan vlan-id
By default, a port does not belong to any multicast VLAN.