multicast-vlan
Use multicast-vlan to configure a multicast VLAN and enter its view, or enter the view of an existing multicast VLAN.
Use undo multicast-vlan to remove the configuration of multicast VLANs.
Syntax
multicast-vlan vlan-id
undo multicast-vlan { all | vlan-id }
Default
No multicast VLANs exist.
Views
System view
Predefined user roles
network-admin
Parameters
vlan-id: Specifies an existing VLAN by its ID in the range of 1 to 4094.
all: Specifies all multicast VLANs.
Usage guidelines
The total number of multicast VLANs on a device cannot exceed the system upper limit.
You must enable IGMP snooping for the VLAN to be configured as a multicast VLAN.
As a best practice, do not configure a multicast VLAN on a device that is enabled with IP multicast routing.
Examples
# Enable IGMP snooping for VLAN 100. Configure VLAN 100 as a multicast VLAN and enter its view.
<Sysname> system-view [Sysname] igmp-snooping [Sysname-igmp-snooping] quit [Sysname] vlan 100 [Sysname-vlan100] igmp-snooping enable [Sysname-vlan100] quit [Sysname] multicast-vlan 100 [Sysname-mvlan-100]
Related commands
igmp-snooping enable
multicast routing