209
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 original
VLANs and the translated
VLANs.
•
port trunk permit vlan
vlan-id-list
•
port hybrid vlan vlan-id-list
tagged
N/A
5.
Configure a two-to-two VLAN
mapping.
vlan mapping tunnel outer-vlan-id
inner-vlan-id translated-vlan
outer-vlan-id inner-vlan-id
By default, no VLAN mapping
is configured on an interface.
Displaying and maintaining VLAN mappings
Execute
display
commands in any view.
Task Command
Display VLAN mapping information.
display vlan mapping
[
interface
interface-type interface-number
]
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
VLANs on home
gateways
VLANs on wiring-closet
switches (Switch A and
Switch B)
VLANs on campus switch
(Switch C)
PC
VLAN 1
VLANs 101, 102, 103, 104
VLAN 501
VoD
VLAN 2
VLANs 201, 202, 203, 204
VLAN 502
Summary of Contents for H3C S7500E-X
Page 70: ...57 ...