< Home

multicast-vlan user-vlan

Function

The multicast-vlan user-vlan command binds user VLANs to a multicast VLAN.

The undo multicast-vlan user-vlan command unbinds user VLANs from a multicast VLAN.

By default, a multicast VLAN does not have any user VLAN.

Format

multicast-vlan user-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo multicast-vlan user-vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> }

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Specifies IDs of the user VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than the value of vlan-id1. The vlan-id1 and vlan-id2 parameters identify a range of VLANs. If to vlan-id2 is not specified, only one user VLAN is bound to the multicast VLAN.
The settings of the parameters are as follows:
  • The value of vlan-id1 is an integer that ranges from 1 to 4094.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094.

all

Deletes all the user VLANs from a multicast VLAN.

-

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After configuring a multicast VLAN, you can use the multicast-vlan user-vlan command to bind user VLANs to the multicast VLAN. The Layer 3 device replicates multicast data only in the multicast VLAN and sends the multicast data to the Layer 2 device. This saves bandwidth and reduces load on the Layer 3 device because it does not need to replicate multicast data in every user VLAN.

Prerequisites

A user VLAN and a multicast VLAN have been created using the vlan command, and the multicast VLAN function has been enabled using the multicast-vlan enable command on the multicast VLAN.

Precautions

When configuring user VLANs for a multicast VLAN, note the following limitations:

  • A user VLAN cannot be configured as a multicast VLAN.
  • The user VLANs must exist.

For the S5720-EI, S6720-EI, and S6720S-EI, if the received multicast packets carry double VLAN tags, the inner VLAN tag will be removed and the double VLAN tags will be replaced with a single user VLAN tag when the multicast-vlan user-vlan command is run to bind user VLANs to the multicast VLAN.

Example

# Bind user VLAN 10 to multicast VLAN 2.

<HUAWEI> system-view
[HUAWEI] vlan batch 2 10
[HUAWEI] vlan 2
[HUAWEI-vlan2] multicast-vlan enable
[HUAWEI-vlan2] multicast-vlan user-vlan 10

# Bind user VLANs 3 to 10 to multicast VLAN 2.

<HUAWEI> system-view
[HUAWEI] vlan batch 2 to 10
[HUAWEI] vlan 2
[HUAWEI-vlan2] multicast-vlan enable
[HUAWEI-vlan2] multicast-vlan user-vlan 3 to 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic