1-14
Figure 1-3
Network diagram for one-to-one/many-to-one VLAN mapping configuration
PC
VoD
VoIP
VLAN 1
VLAN 2
VLAN 3
PC
VoD
VoIP
VLAN 1
VLAN 2
VLAN 3
PC
VoD
VoIP
VLAN 1
VLAN 2
VLAN 3
PC
VoD
VoIP
VLAN 1
VLAN 2
VLAN 3
Home gateway
Home gateway
Switch B
……
Switch A
Home gateway
……
Switch C
……
Distribution
network
VLAN 1-> VLAN 101
VLAN 2-> VLAN 201
VLAN 3-> VLAN 301
VLAN 1-> VLAN 102
VLAN 2-> VLAN 202
VLAN 3-> VLAN 302
VLAN 101~200-> VLAN 501
VLAN 201~300-> VLAN 502
VLAN 301~400-> VLAN 503
VLAN 1-> VLAN 111
VLAN 2-> VLAN 211
VLAN 3-> VLAN 311
VLAN 1-> VLAN 112
VLAN 2-> VLAN 212
VLAN 3-> VLAN 312
VLAN 111~210-> VLAN 501
VLAN 211~310-> VLAN 502
VLAN 311~410-> VLAN 503
Home gateway
GE1/0/1
GE1/0/2
GE1/0/3
GE1/0/1
GE1/0/2
GE1/0/3
GE1/0/1
GE1/0/2
GE1/0/3
Switch D
DHCP server
Campus switch
Corridor switch
Corridor switch
GE1/0/1
Configuration procedure
1) Configuration on Switch A
# Create the CVLANs and the SVLANs.
<SwitchA> system-view
[SwitchA] vlan 2 to 3
[SwitchA] vlan 101 to 102
[SwitchA] vlan 201 to 202
[SwitchA] vlan 301 to 302
# Configure uplink policies to map the CVLANs to the SVLANs.
[SwitchA] traffic classifier c1
[SwitchA-classifier-c1] if-match customer-vlan-id 1
[SwitchA-classifier-c1] traffic classifier c2
[SwitchA-classifier-c2] if-match customer-vlan-id 2
[SwitchA-classifier-c2] traffic classifier c3
[SwitchA-classifier-c3] if-match customer-vlan-id 3
[SwitchA-classifier-c3] quit