< Home

l2-multicast-bind vlan

Function

The l2-multicast-bind vlan command binds user VLANs to a multicast VLAN on an interface.

The undo l2-multicast-bind vlan command restores the default setting.

By default, no user VLAN is bound to a multicast VLAN on an interface.

Format

l2-multicast-bind vlan vlan-id1 [ to vlan-id2 ] mvlan mvlan-id

undo l2-multicast-bind vlan { vlan-id1 [ to vlan-id2 ] | all }

Parameters

Parameter Description Value
vlan vlan-id1 [ to vlan-id2 ]

Specifies the ID of a user VLAN.

The value is an integer that ranges from 1 to 4094.
mvlan mvlan-id

Specifies the ID of a multicast VLAN.

The value is an integer that ranges from 1 to 4094.
all Unbinds all user VLANs from the multicast VLAN on an interface. -

Views

MultiGE interface view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A carrier provides the multicast service for multiple Internet service providers (ISPs), and each ISP is assigned a multicast VLAN to isolate multicast data and routes of different ISPs. Users connected to different user-side interfaces of the switch may order multicast services of different ISPs but belong to the same user VLAN. If multicast replication based on user VLANs is used in this case, users may receive multicast data they do not require. This affects the income of the ISPs.

To solve this problem, bind the user VLAN to multicast VLANs of the ISPs whose services are ordered on user-side interfaces. Then the user-side interfaces accept only the data from multicast VLANs of the specified ISPs.

Prerequisites

IGMP snooping has been enabled using the igmp-snooping enable (VLAN view) command on the multicast VLAN.

Precautions

Before running this command, run the vlan command to create the corresponding user VLAN and multicast VLAN. Otherwise, configuration of this command does not take effect.

On an interface, a user VLAN can be bound to only one multicast VLAN.

Currently, the binding of user VLANs to a multicast VLAN on an interface is only supported on IPv4 networks.

Example

# Bind user VLAN100 to multicast VLAN20 on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] igmp-snooping enable
[HUAWEI] vlan 100
[HUAWEI-vlan100] igmp-snooping enable
[HUAWEI-vlan100] quit
[HUAWEI] vlan 20
[HUAWEI-vlan20] igmp-snooping enable
[HUAWEI-vlan20] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] l2-multicast-bind vlan 100 mvlan 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >