Tasks at a glance
Configuring many-to-one VLAN mapping
•
Configuring many-to-one VLAN mapping in a
network with dynamic IP address assignment
•
Configuring many-to-one VLAN mapping in a
network with static IP address assignment
Configuring one-to-two VLAN mapping
Configuring two-to-two VLAN mapping
Configuring one-to-one VLAN mapping
Configure one-to-one VLAN mapping on the customer-side ports of wiring-closet switches (see
to isolate traffic of the same service type from different homes.
Before configuring one-to-one VLAN mapping, create the original VLAN and the translated VLAN.
To configure one-to-one VLAN mapping:
Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
3.
Set the port link type.
4.
Assign the port to the original
VLANs and the translated
VLANs.
5.
Configuring a one-to-one
VLAN mapping.
Remarks
Configure many-to-one VLAN mapping on the campus
switch as shown in
Complete one of the tasks based on the IP address
assignment method.
Configure one-to-two VLAN mapping on PE 1 and PE 4,
through which traffic from customer networks enter the
service provider networks, as shown in
Configure two-to-two VLAN mapping on PE 3, edge
device of the SP 2 network, as shown in
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 vlan-id translated-vlan
vlan-id
207
Figure
55.
Figure
Figure
Remarks
N/A
N/A
By default, the link type of a
port is access.
By default, a trunk port is
assigned only to VLAN 1, and
a hybrid port is an untagged
member of VLAN 1.
By default, VLAN mapping is
not configured on an interface.
56.
56.
Figure
55)