168
Step Command Remarks
3. Configure the port as a trunk
port.
port link-type
trunk
The default link type of ports is
access.
4. Assign the port to SVLANs.
port trunk permit vlan
{ vlan-id-list |
all
}
By default, a trunk port belongs to
VLAN 1 only.
Configuring one-to-one VLAN mapping with port
QoS policies
Perform one-to-one VLAN mapping on wiring-closet switches (see Figure 55).
Perform these tasks to configure one-to-one VLAN mapping with port QoS policies:
Task Remarks
Configuring an uplink policy
Required
Create CVLAN-to-SVLAN mappings.
Configuring a downlink policy
Required
Create SVLAN-to-CVLAN mappings.
Configuring the customer-side port
Required
Configure settings required for one-to-one VLAN mapping.
Configuring the network-side port
Required
Configure VLAN settings required for normal communication.
Configuration prerequisites
Create CVLANs and SVLANs, and plan CVLAN-to-SVLAN mappings.
Configuring an uplink policy
To configure an uplink policy to map each CVLAN to a unique SVLAN:
Step Command
1. Enter system view.
system-view
2. Configure a class for a
CVLAN.
a. Create a class and enter class view:
traffic classifier tcl-name [ operator { and | or } ]
b. Specify a CVLAN as the match criterion:
if-match customer-vlan-id vlan-id
3. Return to system view.
quit
4. Configure a behavior for an
SVLAN.
a. Create a traffic behavior and enter traffic behavior view:
traffic behavior behavior-name
b. Configure an SVLAN marking action:
remark service-vlan-id vlan-id
5. Return to system view.
quit
6. Create a QoS policy and
enter QoS policy view.
qos policy
policy-name