R21xx-HP FlexFabric 11900 MPLS Command Reference

Table Of Contents
179
You can create multiple service instances on a Layer 2 Ethernet interface, but only one service instance
can use the default match criteria (encapsulation default) to match packets that do not match any other
service instance. If only one service instance is configured on an interface and the service instance uses
the default match criteria, all packets received on the interface match the default match criteria.
Removing the match criteria for a service instance also removes the association between the VSI and the
service instance.
Examples
# Configure service instance 1 on Layer 2 Ethernet interface Ten-GigabitEthernet 1/0/1 to match
packets that have an outer VLAN ID of 111.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] service-instance 1
[Sysname-Ten-GigabitEthernet1/0/1-srv1] encapsulation s-vid 111
Related commands
display l2vpn service-instance
l2vpn enable
Use l2vpn enable to enable L2VPN.
Use undo l2vpn enable to disable L2VPN.
Syntax
l2vpn enable
undo l2vpn enable
Default
L2VPN is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
You must enable L2VPN before configuring other L2VPN settings.
Examples
# Enable L2VPN.
<Sysname> system-view
[Sysname] l2vpn enable
l2vpn switchover
Use l2vpn switchover to switch traffic from the specified PW to its backup PW.
Syntax
l2vpn switchover peer ip-address pw-id pw-id