multicast-instance (Layer 2 multicast instance view)

Function

The multicast-instance command configures a VLAN/VSI as the multicast instance of a Layer 2 multicast instance.

The undo multicast-instance command deletes the VLAN/VSI that is configured as the multicast instance of a Layer 2 multicast instance.

By default, there is no a VLAN/VSI as the multicast instance of a Layer 2 multicast instance.

Format

multicast-instance vlan vlan-id

multicast-instance vsi vsi-name

undo multicast-instance

Parameters

Parameter Description Value
vsi vsi-name

Specifies the name of a VSI to be configured as the multicast instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

vlan vlan-id

Specifies the ID of a VLAN to be configured as the multicast instance.

The value is an integer ranging from 1 to 4094.

Views

Layer 2 multicast instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

After a Layer 2 multicast instance is configured on a Layer 2 device, run the multicast-instance command to specify a multicast instance, so that the upstream device can determine the VLAN/VSI used for forwarding multicast data flows to the downstream Layer 2 device.

A multicast instance can be a VLAN or VSI.

Prerequisites

IGMP snooping has been enabled globally using the igmp-snooping enable command, and a Layer 2 multicast instance has been created using the l2-multicast instance command.

Precautions

A sub-VLAN cannot be configured as the multicast instance of a Layer 2 multicast instance.

Example

# Configure VSI vsi1 as the multicast instance of a Layer 2 multicast instance.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] pwsignal ldp
[*HUAWEI-vsi-vsi1-ldp] vsi-id 1
[*HUAWEI-vsi-vsi1-ldp] quit
[*HUAWEI-vsi-vsi1] igmp-snooping enable
[*HUAWEI-vsi-vsi1] quit
[*HUAWEI] l2-multicast instance 1
[*HUAWEI-l2-minst1] multicast-instance vsi vsi1
# Configure VLAN 10 as the multicast instance of a Layer 2 multicast instance.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] igmp-snooping enable
[*HUAWEI-vlan10] quit
[*HUAWEI] l2-multicast instance 1
[*HUAWEI-l2-minst1] multicast-instance vlan 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >