R3303-HP HSR6800 Routers MPLS Command Reference

213
vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
port-based: Matches packets by port.
all: Specifies all VLANs.
tagged: Matches tagged packets.
untagged: Matches untagged packets.
Usage guidelines
This command is supported only on routers with SAP-4EXPs.
The packet matching rule you configured overwrites the previous configuration, if any.
You cannot modify the packet matching rule configured for a service instance if any of the following
conditions is true:
The modification conflicts with a packet processing rule.
The service instance has set up local switching with another service instance after being associated
with the same local switching group.
The forwarding mode in the current service instance is MPLS L2VPN.
In a service instance, you cannot delete the packet matching rule after configuring a packet processing
rule or forwarding mode (such as VLAN switching or MPLS L2VPN).
Examples
# Configure a packet matching rule in service instance 1 on Ten-GigabitEthernet1/0/1 to match traffic
that carries outer VLAN ID 111, and inner VLAN ID 20 or an inner VLAN ID in the range of 30 to 40.
<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 c-vid 20 30 to 40
l2vpn
Use l2vpn to enable L2VPN and enter L2VPN view.
Use undo l2vpn to disable L2VPN.
Syntax
l2vpn
undo l2vpn
Default
L2VPN is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable L2VPN and enter L2VPN view.
<Sysname> system-view