169
Step Command
7.
Associate the class with the
behavior to map the CVLAN
to the SVLAN.
classifier
tcl-name behavior behavior-name
Configuring a downlink policy
To configure a downlink policy to map SVLANs back to CVLANs:
Step Command
1.
Enter system view.
system-view
2.
Configure a class for an SVLAN.
a.
Create a class and enter class view:
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
b.
Configure an SVLAN as the match criterion:
if-match service-vlan-id vlan-id
3.
Return to system view.
quit
4.
Configure a behavior for a CVLAN.
a.
Create a traffic behavior and enter traffic behavior
view:
traffic behavior behavior-name
b.
Configure a CVLAN marking action:
remark customer-vlan-id vlan-id
5.
Return to system view.
quit
6.
Create a QoS policy and enter QoS
policy view.
qos policy
policy-name
7.
Associate the class with the behavior to
map the SVLAN to the CVLAN.
classifier
tcl-name behavior behavior-name
Configuring the customer-side port
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view.
interface interface-type
interface-number
N/A
3.
Configure the port as a trunk
port.
port link-type
trunk
The default link type of an
Ethernet port is access.
4.
Assign the port to CVLANs
and SVLANs.
port trunk permit vlan
{
vlan-id-list
|
all
}
By default, a trunk port belongs to
VLAN 1 only.
5.
Apply the uplink policy to the
incoming traffic.
qos apply policy policy-name
inbound
N/A
6.
Apply the downlink policy to
the outgoing traffic.
qos apply policy policy-name
outbound
N/A
Configuring the network-side port