1.LSW5和LSW6的下行口划分到指定VLAN
[LSW5]vlan 10
[LSW5-GigabitEthernet0/0/1]port link-type access
[LSW5-GigabitEthernet0/0/1]port default vlan 10
[LSW5-GigabitEthernet0/0/3]port link-type trunk
[LSW5-GigabitEthernet0/0/3]port trunk allow-pass vlan 10
[LSW6]vlan 20
[LSW6-GigabitEthernet0/0/1]port link-type access
[LSW6-GigabitEthernet0/0/1]port default vlan 20
[LSW6-GigabitEthernet0/0/4]port link-type trunk
[LSW6-GigabitEthernet0/0/4]port trunk allow-pass vlan 20
2. LSW3和LSW4上配置QinQ,使发往ISP网络的用户报文带有双层VLAN Tag
[LSW3]vlan 30
[LSW3-GigabitEthernet0/0/5]port link-type hybrid
[LSW3-GigabitEthernet0/0/5]port hybrid untagged vlan 30
[LSW3-GigabitEthernet0/0/5]qinq vlan-translation enable
[LSW3-GigabitEthernet0/0/5]port vlan-stacking vlan 10 stack-vlan 30
[LSW3-GigabitEthernet0/0/1]port link-type trunk
[LSW3-GigabitEthernet0/0/1]port trunk allow-pass vlan 30
[LSW4]vlan 40
[LSW4-GigabitEthernet0/0/6]port link-type hybrid
[LSW4-GigabitEthernet0/0/6]port hybrid untagged vlan 20
[LSW4-GigabitEthernet0/0/6]qinq vlan-translation enable
[LSW4-GigabitEthernet0/0/6]port vlan-stacking vlan 20 stack-vlan 40
[LSW4-GigabitEthernet0/0/2]port link-type trunk
[LSW4-GigabitEthernet0/0/2]port trunk allow-pass vlan 40
3. LSW1和LSW2上部署2 to 2的VLAN Mapping功能
[LSW1]vlan batch 100 200
[LSW1-GigabitEthernet0/0/3]port link-type hybrid
[LSW1-GigabitEthernet0/0/3]port hybrid tagged vlan 100
[LSW1-GigabitEthernet0/0/3]qinq vlan-translation enable
[LSW1-GigabitEthernet0/0/3]port vlan-mapping vlan 30 inner-vlan 10 map-vlan 100 map-inner-vlan 200
[LSW1-GigabitEthernet0/0/2]port link-type trunk
[LSW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 100
[LSW2]vlan batch 100 200
[LSW2-GigabitEthernet0/0/4]port link-type hybrid
[LSW2-GigabitEthernet0/0/4]port hybrid tagged vlan 100
[LSW2-GigabitEthernet0/0/4]qinq vlan-translation enable
[LSW2-GigabitEthernet0/0/4]port vlan-mapping vlan 40 inner-vlan 20 map-vlan 100 map-inner-vlan 200
[LSW2-GigabitEthernet0/0/1]port link-type trunk
[LSW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 100
4.配置PC