different VLANs to communicate at Layer 2 across two service provider networks that use different VLAN
assignment schemes.
Before you configure two-to-two VLAN mapping, create the original VLANs and the translated VLANs.
To configure two-to-two VLAN mapping:
Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
3.
Set the link type of the port.
4.
Assign the port to the original
VLANs and the translated
VLANs.
5.
Configure a two-to-two VLAN
mapping.
Displaying and maintaining VLAN mapping
Execute display commands in user view.
Task
Display VLAN mapping
information.
VLAN mapping configuration examples
One-to-one VLAN mapping configuration example
Network requirements
As shown in
Each household subscribes to PC, VoD, and VoIP services, and obtains the IP address through
•
DHCP.
Figure
52:
Command
system-view
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
•
Configure the port as a trunk port:
port link-type trunk
•
Configure the port as a hybrid
port:
port link-type hybrid
•
port trunk permit vlan vlan-id-list
•
port hybrid vlan vlan-id-list tagged
vlan mapping tunnel outer-vlan-id
inner-vlan-id translated-vlan
outer-vlan-id inner-vlan-id
Command
display vlan mapping [ interface interface-type interface-number ]
169
Remarks
N/A
N/A
By default, the link type of a
port is access.
By default, a trunk port is
assigned to only VLAN 1, and
a hybrid port is only an
untagged member of VLAN 1.
By default, no VLAN mapping
is configured on an interface.