xconnect vsi
Use xconnect vsi to map an Ethernet service instance to a VSI.
Use undo xconnect vsi to restore the default.
Syntax
xconnect vsi vsi-name [ access-mode { ethernet | vlan } ] [ track track-entry-number&<1-3> ]
undo xconnect vsi
Default
An Ethernet service instance is not mapped to any VSI.
Views
Ethernet service instance view
Predefined user roles
network-admin
Parameters
vsi-name: Specifies the VSI name, a case-sensitive string of 1 to 31 characters.
access-mode: Specifies an access mode. The default access mode is VLAN.
ethernet: Specifies the Ethernet access mode.
vlan: Specifies the VLAN access mode.
track track-entry-number&<1-3>: Specifies a space-separated list of up to three track entry numbers in the range of 1 to 1024. The Ethernet service instance is up only if a minimum of one associated track entry is in positive state.
Usage guidelines
To monitor the status of an Ethernet service instance, associate it with track entries.
To configure this command for an Ethernet service instance, you must first use the encapsulation command to add a traffic match criterion to the service instance.
For traffic that matches the Ethernet service instance, the system uses the VSI's MAC address table to make a forwarding decision.
The access mode determines how the BEB handles the VLAN tag in the customer Ethernet frames assigned to the VSI.
VLAN access mode—Ethernet frames received from the customer site must contain a VLAN tag. The BEB considers the VLAN tag as a P-tag assigned by the service provider. When the BEB forwards Ethernet frames to the customer site, the BEB does not remove the P-tag.
Ethernet access mode—If Ethernet frames received from the customer site contain a VLAN tag, the BEB considers it as a U-tag and ignores it. When the BEB forwards Ethernet frames to the customer site, the BEB removes the P-tag.
Examples
# On HundredGigE 1/0/1, configure Ethernet service instance 200 to match frames with an outer 802.1Q VLAN tag of 200, and map the instance to VSI vpn1. At the same time, associate track entries with the Ethernet service instance.
<Sysname> system-view [Sysname] vsi vpn1 [Sysname-vsi-vpn1] quit [Sysname] interface hundredgige 1/0/1 [Sysname-HundredGigE1/0/1] service-instance 200 [Sysname-HundredGigE1/0/1-srv200] encapsulation s-vid 200 [Sysname-HundredGigE1/0/1-srv200] xconnect vsi vpn1 track 1 2 3
Related commands
encapsulation
vsi