< Home

multicast-vlan enable

Function

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

The undo multicast-vlan enable command restores the default configuration.

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

Usage Guidelines

Usage Scenario

Generally, a switch needs to replicate multicast packets for each VLAN when users in different VLANs need to receive multicast data from the same multicast source. If a multicast VLAN is configured and the VLANs that users belong to are configured as the user VLANs of the multicast VLAN, the switch only needs to replicate the multicast data for the multicast VLAN. Multicast data is then replicated to the user VLANs by the multicast VLAN. This reduces load on the upstream router and separates the multicast source from the users.

Prerequisites

IGMP snooping or MLD snooping has been enabled in a VLAN using the igmp-snooping enable (VLAN view) or mld-snooping enable command.

Follow-up Procedure

Run the multicast-vlan user-vlan command to bind user VLANs to the multicast VLAN.

Precautions

  • A multicast VLAN cannot be configured as a user VLAN. A user VLAN cannot be configured as a multicast VLAN.
  • If MAC address-based forwarding is configured using the l2-multicast forwarding-mode command in a VLAN, the VLAN cannot be configured as a multicast VLAN.
  • Before running the undo multicast-vlan enable command in a multicast VLAN, delete all the user VLANs from the multicast VLAN. If OAM is bound to the multicast VLAN, unbind OAM from the multicast VLAN first.

Example

# Configure VLAN 2 as a multicast VLAN.

<HUAWEI> system-view
[HUAWEI] igmp-snooping enable
[HUAWEI] vlan 2
[HUAWEI-vlan2] igmp-snooping enable
[HUAWEI-vlan2] multicast-vlan enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >