Configuring one-to-two vlan mapping – H3C Technologies H3C S5560 Series Switches User Manual
Page 257
223
Step Command
Remarks
3.
Set 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
By default, the link type of a port is
access.
4.
Assign the port to the
translated VLANs.
•
port trunk permit vlan
vlan-id-list
•
port hybrid vlan vlan-id-list
tagged
N/A
5.
Configure the port to use the
original VLAN tags of the
many-to-one mapping to
replace the VLAN tags of the
packets destined for the user
network.
vlan mapping nni
By default, the port does not
replace the VLAN tags of the
packets destined for the user
network.
Configuring one-to-two VLAN mapping
Configure one-to-two VLAN mapping on customer-side ports of the edge devices from which customer
traffic enters SP networks, for example, on PE 1 and PE 4 in
. One-to-two VLAN mapping
enables the edge devices to add an SVLAN tag to each incoming packet.
Before you configure one-to-two VLAN mapping, create the CVLAN and the SVLAN.
The MTU of an interface is 1500 bytes by default. After a VLAN tag is added to a packet, the packet
length is added by 4 bytes. H3C recommends setting the MTU to a minimum of 1504 bytes for ports on
the forwarding path of the packet in the service provider network.
To configure one-to-two VLAN mapping:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
N/A
3.
Configure the link type of the
port as hybrid.
port link-type hybrid
By default, the link type of a
port is access.
4.
Assign the port to the
CVLANs.
port hybrid vlan vlan-id-list { tagged |
untagged }
By default, a hybrid port is an
untagged member of the
VLAN to which the port
belongs when its link type is
access.
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module