Configuring the network-side port, Configuring two-to-two vlan mapping – H3C Technologies H3C S10500 Series Switches User Manual

Page 215

Advertising
background image

204

To do...

Use the command...

Remarks

Enable basic QinQ

qinq enable

Required
By default, basic QinQ is disabled on all ports.

Apply the uplink policy to

the incoming traffic

qos apply policy

policy-name inbound

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 an Ethernet port is access.

Assign the port to all SVLANs

port trunk permit vlan
{ vlan-id-list | all }

Required
By default, a trunk port is in only VLAN 1.

Configuring two-to-two VLAN mapping

Perform two-to-two VLAN mapping on an edge device that connects two SP networks, for example, on
PE 3 in

Figure 64

. Two-to-two VLAN mapping enables two remote sites in different VLANs to

communicate at Layer 2 across two service provider networks that use different VLAN assignment

schemes.

NOTE:

For the ease of description, the VLAN tags of the double-tagged frames that arrive at the customer-side
port are called foreign CVLANs and SVLANs, and the VLAN tags marked by the edge device are called

local CVLANs and SVLANs.

Perform these tasks to configure two-to-two VLAN mapping:

Task Description

Configuring an uplink policy for the
customer-side port

Required
Replace foreign SVLANs with local SVLANs for uplink traffic.

Configuring an uplink policy for the
network-side port

Required
Replace foreign CVLANs with local CVLANs for uplink traffic.

Configuring a downlink policy for the
customer-side port

Required
Replace local SVLANs and CVLANs with foreign SVLANs and

CVLANs.

Configuring the customer-side port

Required
Configure VLAN and other settings required for two-to-two VLAN
mapping.

Advertising