Configuring two-to-two vlan mapping – H3C Technologies H3C S12500 Series Switches User Manual

Page 171

Advertising
background image

158

Step Command

Remarks

3.

Configure the link type of the
port.

Configure the port as a trunk
port:

port link-type trunk

Configure the port as a hybrid

port:

port link-type hybrid

The default link type of an Ethernet
port is access.

4.

Assign the port to all SVLANs.

As a trunk port:

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

As a hybrid port:

port hybrid vlan vlan-id-list
tagged

By default:

A trunk port is assigned to only
VLAN 1.

A hybrid port is an untagged

member of 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 2 (edge device of the SP 1 network) and PE 3 (edge device of the SP 2 network) in

Figure 49

. The

two-to-two VLAN mapping implementation of the switch enables two remote sites in the same VLAN to
communicate at Layer 2 across two service provider networks that use different VLAN assignment

schemes.
In two-to-two VLAN mapping, foreign SVLANs refer to the outer VLANs of double-tagged frames that

arrive at the customer-side port, local VLANs refer to VLANs that replace the foreign SVLANs, and
CVLANs refer to inner VLANs.
Perform these tasks to configure two-to-two VLAN mapping:

Task Description

Configuring an uplink policy for the
customer-side port

Replaces foreign SVLANs with local SVLANs for uplink traffic
(required).

Configuring the customer-side port

Configures VLAN and other settings required for two-to-two VLAN
mapping (required).

Configuring the network-side port

Configures VLAN and other settings required for two-to-two VLAN
mapping (required).

Configuring an uplink policy for the customer-side port

The uplink policy on the customer-side port changes the SVLAN ID of incoming traffic.
To configure an uplink policy for the customer-side port:

Step Command

Remarks

1.

Enter system view.

system-view N/A

Advertising
This manual is related to the following products: