12
Mapping an Ethernet service instance to a VSI
An Ethernet service instance matches a list of VLANs on a site-facing interface. The VTEP assigns
customer traffic from the VLANs to a VXLAN by mapping the Ethernet service instance to a VSI.
An Ethernet service instance can contain only one match criterion. To change the match criterion,
you must remove the original criterion first. When you remove the match criterion in an Ethernet
service instance, the mapping between the service instance and the VSI is removed automatically.
If an Ethernet service instance contains the
encapsulation
default
match criterion, traffic is
matched as follows:
•
The service instance matches any frames if it is the only instance on the interface.
•
The service instance matches frames that do not match any other service instance if multiple
instances exist on the interface.
To map an Ethernet service instance to a VSI:
Step Command Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
•
interface
interface-type
interface-number
•
interface bridge-aggregation
interface-number
N/A
3.
Configure the port link
type.
port link-type
{
access
|
trunk
|
hybrid
}
The default port link type is
access.
4.
Assign the interface to
C-VLANs.
•
Access link type:
port access vlan vlan-id
•
Trunk link type:
port trunk permit vlan
{
vlan-id-list
|
all
}
•
Hybrid link type:
port hybrid vlan
vlan-id-list
{
tagged
|
untagged
}
Make sure you have created the
C-VLANs.
5.
Create an Ethernet
service instance and
enter Ethernet service
instance view.
service-instance
instance-id
By default, no Ethernet service
instances exist.