user-instance

Function

The user-instance command configures VLANs/VSIs as the user instances of a Layer 2 multicast instance.

The undo user-instance command deletes the VLANs/VSIs that are configured as the user instances of a Layer 2 multicast instance.

By default, no VLANs/VSIs are configured as the user instances of a Layer 2 multicast instance.

Format

user-instance vlan { vlan-id [ to vlan-id ] } &<1-10>

user-instance vsi vsi-name

undo user-instance vlan { vlan-id [ to vlan-id ] } &<1-10>

undo user-instance vsi vsi-name

Parameters

Parameter Description Value
to vlan-id

Specifies the end ID of a VLAN started with to be configured as a user instance.

The value is an integer ranging from 1 to 4094.

vsi vsi-name

Specifies the name of a VSI to be configured as a user 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 start ID of a VLAN to be configured as a user 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 user-instance command to specify user instances, so that the Layer 2 device can determine the target VLANs/VSIs of a multicast data flow.

A user instance can be a VLAN or VSI.

Prerequisites

A Layer 2 multicast instance has been created using the l2-multicast instance command, and a VLAN/VSI has been specified as the multicast instance of the Layer 2 multicast instance using the multicast-instance command.

Configuration Impact

After user instances are configured for a Layer 2 multicast instance, the device does not directly replicate multicast flows for the user instances. Instead, the Router creates a forwarding entry for the IGMP Report message received from a user and replicates multicast flows for this user.

If the user-instance command is run more than once, all configurations take effect.

Example

# Specify VSIs utv1 and utv2 as user instances 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 utv1
[*HUAWEI-vsi-utv1] pwsignal ldp
[*HUAWEI-vsi-utv1-ldp] vsi-id 100
[*HUAWEI-vsi-utv1] quit
[*HUAWEI] quit
[*HUAWEI] vsi utv2
[*HUAWEI-vsi-utv2] pwsignal ldp
[*HUAWEI-vsi-utv2-ldp] vsi-id 200
[*HUAWEI-vsi-utv2] quit
[*HUAWEI-vsi-utv2] quit
[*HUAWEI] l2-multicast instance 1
[*HUAWEI-l2-minst1] user-instance vsi utv1
[*HUAWEI-l2-minst1] user-instance vsi utv2
# Specify VLANs 2 to 100 as user instances of a Layer 2 multicast instance.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] vlan batch 2 to 100
[*HUAWEI] l2-multicast instance 1
[*HUAWEI-l2-minst1] user-instance vlan 2 to 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic