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.
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. |
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.<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
<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