
14
Syntax
encapsulation
s-vid
vlan-id
[
only-tagged
]
encapsulation
untagged
undo encapsulation
Default
An Ethernet service instance does not contain a frame match criterion.
Views
Ethernet service instance view
Predefined user roles
network-admin
Parameters
s-vid
: Matches frames that are tagged with the specified outer 802.1Q VLAN IDs.
vlan-id
: Specifies an 802.1Q VLAN ID in the range of 1 to 4094.
only-tagged
: Matches tagged frames. If the outer 802.1Q VLAN is not the PVID, the matching
result does not differ, whether or not you specify the
only-tagged
keyword. If the outer 802.1Q
VLAN is the PVID, the matching result depends on whether or not the
only-tagged
keyword is
specified.
•
To match only PVID-tagged frames, specify the
only-tagged
keyword.
•
To match both untagged frames and PVID-tagged frames, do not specify the
only-tagged
keyword.
untagged
: Matches any frames that do not have an 802.1Q VLAN tag.
Usage guidelines
An Ethernet service instance can contain only one frame match criterion. To change the frame match
criterion, first execute the
undo encapsulation
command to remove the original criterion. When
you remove the frame match criterion in an Ethernet service instance, the mapping between the
service instance and the VSI is removed automatically.
Examples
# Configure Ethernet service instance 1 on GigabitEthernet 1/0/1 to match frames that have an outer
802.1Q VLAN ID of 111.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] service-instance 1
[Sysname-GigabitEthernet1/0/1-srv1] encapsulation s-vid 111
Related commands
display l2vpn service-instance
flooding disable
Use
flooding disable
to disable flooding for a VSI.
Use
undo flooding disable
to enable flooding for a VSI.
Syntax
flooding disable
{
all
|
{
broadcast
|
unknown-multicast
|
unknown-unicast
}
*
} [
all-direction
]