xconnect vsi
Use xconnect vsi to bind a Layer 3 interface or an Ethernet service instance to a VSI.
Use undo xconnect vsi to remove the binding.
Syntax
xconnect vsi vsi-name [ access-mode { ethernet | vlan } ]
undo xconnect vsi
Default
An Ethernet service instance is not bound to any VSI.
Views
Service instance view
Predefined user roles
network-admin
Parameters
vsi-name: Specifies the name of a VSI, a case-sensitive string of 1 to 31 characters.
access-mode: Specifies the access mode. By default, the access mode is VLAN.
ethernet: Specifies the Ethernet access mode.
vlan: Specifies the VLAN access mode.
Usage guidelines
After you bind a Layer 3 interface to a VSI, packets received from the interface are forwarded according to the MAC address table of the VSI. After you bind a service instance on a Layer 2 interface to a VSI, packets received from the interface and matching the service instance are forwarded according to the MAC address table of the VSI.
The access mode determines how a BEB considers the VLAN tag in Ethernet frames received from a CE and how the BEB forwards Ethernet frames to the CE.
VLAN access mode—Ethernet frames received from the CE must carry a VLAN tag in the Ethernet header. The BEB considers the VLAN tag as a P-tag assigned by the service provider. Ethernet frames sent to the CE must also carry the P-tag.
Ethernet access mode—If Ethernet frames from the CE have a VLAN tag in the header, the PE considers it as a U-tag and ignores it. Ethernet frames sent to the CE do not carry the P-tag.
Before you configure this command for a service instance, make sure you have configured a frame match criterion for the service instance by using the encapsulation command.
VLAN access mode is not supported by an Ethernet service instance if the Ethernet service instance uses any of the following match criteria:
default.
tagged.
untagged.
s-vid vlan-id-list.
Examples
# Configure service instance 200 on Layer 2 interface FortyGigE 1/0/1 to match frames with an outer VLAN tag of 200, and bind the service instance to the VSI vpn1.
<Sysname> system-view [Sysname] vsi vpn1 [Sysname-vsi-vpn1] quit [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] service-instance 200 [Sysname-FortyGigE1/0/1-srv200] encapsulation s-vid 200 [Sysname-FortyGigE1/0/1-srv200] xconnect vsi vpn1
Related commands
encapsulation
vsi