Configuring the customer-side port, Configuring the network-side port – H3C Technologies H3C S10500 Series Switches User Manual
Page 210
199
To do...
Use the command...
Remarks
Create a class and enter class
view
traffic classifier tcl-name [ operator
{ and | or } ]
Configure an SVLAN as the match
criterion
if-match service-vlan-id vlan-id
Return to system view
quit
Required
Repeat these steps to configure one
class for each SVLAN.
Create a traffic behavior and enter
traffic behavior view
traffic behavior behavior-name
Configure a CVLAN marking
action
remark customer-vlan-id vlan-id
Return to system view
quit
Required
Repeat these steps to configure a
behavior for each CVLAN.
Create a QoS policy and enter
QoS policy view
qos policy policy-name Required
Associate the class with the
behavior to map the SVLAN to the
CVLAN
classifier tcl-name behavior
behavior-name
Required
Repeat this step to create other
CVLAN-to-SVLAN mappings.
Configuring the customer-side port
Follow these steps to configure the customer-side port:
To do...
Use the command... Remarks
Enter system view
system-view
—
Enter Ethernet interface view
interface interface-type
interface-number
—
Configure the port as a trunk
port
port link-type trunk
Required
The default link type of an Ethernet port is access.
Assign the port to CVLANs and
SVLANs
port trunk permit vlan
{ vlan-id-list | all }
Required
By default, a trunk port is in only VLAN 1.
Enable basic QinQ
qinq enable
Required
By default, basic QinQ is disabled.
Apply the uplink policy to the
incoming traffic
qos apply policy
policy-name inbound
Required
Apply the downlink policy to
the outgoing traffic
qos apply policy
policy-name outbound
Required
Configuring the network-side port
Follow these steps to configure the network-side port:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enter Ethernet interface
view
interface interface-type
interface-number
—
Configure the port as a
trunk port
port link-type trunk
Required
The default link type of ports is access.