multicast-vlan enable

Function

The multicast-vlan enable command configures the current VLAN as a multicast VLAN.

The undo multicast-vlan enable command restores the current VLAN to be a common VLAN.

By default, a VLAN is a common VLAN.

Format

multicast-vlan enable

undo multicast-vlan enable

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

In general, when users in different VLANs need to receive multicast data from the same multicast source, a device needs to replicate multicast packets for each VLAN. If a multicast VLAN is configured and VLANs to which users belong are configured as the user VLANs of the multicast VLAN, a device is only required to send multicast data to the multicast VLAN. The multicast data is then replicated to the user VLANs by the multicast VLAN. This reduces the burden of the upstream device and isolates multicast sources and users.

The multicast-vlan enable command is required when the multicast VLAN function is configured. This command takes effect only for common VLANs. After a common VLAN is configured as a multicast VLAN, users VLANs can be configured for the multicast VLAN, and multicast data traffic received by the multicast VLAN can be replicated to the user VLANs. This implements inter-VLAN multicast data replication.

Prerequisites

VLANs have been created and IGMP snooping has been enabled globally and in the VLANs.

Follow-up Procedure

The multicast-vlan user-vlan command can be used to configure a mapping between a multicast VLAN and user VLANs.

Precautions

The following conditions must be met to restore a multicast VLAN to a common VLAN:

  • The multicast VLAN has no user VLAN.
  • The multicast VLAN does not belong to any multicast protection group.
  • The multicast VLAN is not bound to OAM.
  • The function of pruning for the query messages sent by the source port cannot be enabled for the multicast VLAN. Delete the configuration of the function first.

Example

# Set VLAN 10 to be a multicast VLAN.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] igmp-snooping enable
[*HUAWEI-vlan10] multicast-vlan enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >