multicast-vlan

Syntax

multicast-vlan vlan-id

undo multicast-vlan { all | vlan-id }

View

System view

Default level

2: System level

Parameters

vlan-id: Specifies a VLAN by its ID, in the range of 1 to 4094.

all: Specifies all multicast VLANs.

Description

Use multicast-vlan to configure the specified VLAN as a multicast VLAN and enter multicast VLAN view.

Use undo multicast-vlan to remove the specified VLAN as a multicast VLAN.

The VLAN to be configured is not a multicast VLAN by default.

The specified VLAN to be configured as a multicast VLAN must exist.

For the HPE FlexNetwork 3600 v2 EI switches, the multicast VLAN feature cannot be enabled on a device with IP multicast routing enabled.

For a sub-VLAN-based multicast VLAN, you must enable IGMP snooping only in the multicast VLAN. For a port-based multicast VLAN, you must enable IGMP snooping in both the multicast VLAN and all the user VLANs.

Related commands: igmp-snooping enable and multicast routing-enable.

Examples

# Enable IGMP snooping in VLAN 100. Configure it as a multicast VLAN and enter multicast VLAN 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]