04-Layer 2 - LAN Switching Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command Reference-Release1728-6W17004-Layer 2 - LAN Switching Command Reference
07-VLAN Mapping Commands
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

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网