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.
multicast-vlan user-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>
undo multicast-vlan user-vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> }
Parameter |
Description |
Value |
---|---|---|
vlan-id1 [ to vlan-id2 ] |
Specifies IDs of the user VLANs.
|
The settings of the parameters are as follows:
|
all |
Deletes all the user VLANs from a multicast VLAN. |
- |
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:
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.
# 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