- Table of Contents
-
- 04-Layer 2 - LAN Switching Command Reference
- 00-Preface
- 01-VLAN Commands
- 02-MAC Address Table Commands
- 03-Spanning Tree Commands
- 04-Ethernet Link Aggregation Commands
- 05-Port Isolation Commands
- 06-QinQ Commands
- 07-VLAN Mapping Commands
- 08-BPDU Tunneling Commands
- 09-GVRP Commands
- 10-Loopback Detection Commands
- 11-MAC-in-MAC Commands
- 12-LLDP Commands
- 13-MVRP Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-VLAN Mapping Commands | 59.01 KB |
|
NOTE: You cannot configure VLAN mapping on the routing ports of the switch. |
nest
Syntax
nest top-most vlan-id vlan-id-value
undo nest top-most
View
Traffic behavior view
Default level
2: System level
Parameters
vlan-id vlan-id-value: Specifies a VLAN ID, ranging from 1 to 4094.
Description
Use the nest command to add a VLAN nest action to a traffic behavior. If the traffic behavior already contains a VLAN nest action, the new one overwrites the old one.
Use the undo nest top-most command to remove the action.
If a QoS policy contains a VLAN nest action, apply it only to the incoming traffic of an interface.
The remark service-vlan-id command is mutually exclusive with the nest command.
Related commands: qos policy, traffic behavior, and classifier behavior (ACL and QoS Command Reference).
Examples
# Create traffic behavior be1, and add the action of inserting outer VLAN tag 657.
<Sysname> system-view
[Sysname] traffic behavior be1
[Sysname-behavior-be1] nest top-most vlan-id 657
remark service-vlan-id
Syntax
remark service-vlan-id vlan-id-value
undo remark service-vlan-id
View
Traffic behavior view
Default level
2: System level
Parameters
vlan-id-value: Specifies a service-provider VLAN (SVLAN) ID, ranging from 1 to 4094.
Description
Use the remark service-vlan-id command to add an SVLAN marking action to a traffic behavior.
Use the undo remark service-vlan-id command to remove the action from the traffic behavior.
Related commands: qos policy, traffic behavior, and classifier behavior (ACL and QoS Command Reference).
Examples
# Configure traffic behavior b1 to mark matching packets with SVLAN 666.
<Sysname> system-view
[Sysname] traffic behavior b1
[Sysname-behavior-b1] remark service-vlan-id 666