Step
Set the link type of the port.
3.
Assign the port to the original
4.
VLANs and the translated
VLANs.
Configure a two-to-two VLAN
5.
mapping.
Displaying and maintaining VLAN mappings
Execute display commands in any view.
Task
Display VLAN mapping information.
VLAN mapping configuration examples
One-to-one and many-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.
•
On the home gateways, VLANs 1, 2, and 3 are assigned to PC, VoD, and VoIP traffic,
respectively.
To isolate traffic of the same service type from different households, configure one-to-one VLAN
mapping on the wiring-closet switches. This feature assigns one VLAN to each type of traffic from
each household.
To save VLAN resources, configure many-to-one VLAN mapping on the campus switch (Switch C).
This feature transmits the same type of traffic from different households in one VLAN. Use VLANs
501, 502, and 503 for PC, VoD, and VoIP traffic, respectively.
Table 16 VLAN mappings for each service
Service
PC
VoD
Figure
67:
VLANs on home
gateways
VLAN 1
VLAN 2
Command
•
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 ]
VLANs on wiring-closet
switches (Switch A and
Switch B)
VLANs 101, 102, 103, 104
VLANs 201, 202, 203, 204
209
Remarks
By default, the link type of a
port is access.
N/A
By default, no VLAN mapping
is configured on an interface.
VLANs on campus switch
(Switch C)
VLAN 501
VLAN 502