Sample for Selective QinQ Follow
Support model: ES3510MA, ES3528MV2, ECS3510-28T, ECS4510 series, ECS4620 series, ECS4210 series, ECS4120 series, ECS4110 series and ECS4100 series
Scenario:

Configuration procedures:
(Start with factory default)
At SW2 and SW3:
1. Enable QinQ
Console(config)#dot1q-tunnel system-tunnel-control
2. Create vlans
Console(config)#vlan database
Console(config-vlan)#vlan 100,200,300 media ethernet state active
3. Configure Q-in-Q access port
Console(config)#interface ethernet 1/1
Console(config-if)#switchport dot1q-tunnel mode access
Console(config-if)#switchport allowed vlan add 100,200,300 untagged
Console(config-if)#switchport allowed vlan add 10,20,30 tagged
Console(config-if)#switchport dot1q-tunnel service 100 match cvid 10
Console(config-if)#switchport dot1q-tunnel service 200 match cvid 20
Console(config-if)#switchport dot1q-tunnel service 300 match cvid 30
4. Configure Q-in-Q uplink port
Console(config)#interface ethernet 1/5
Console(config-if)#switchport dot1q-tunnel mode uplink
Console(config-if)#switchport allowed vlan add 100,200,300 tagged
At SW1 and SW4:
1. Create vlans
Console(config)#vlan database
Console(config-vlan)#vlan 10,20,30 media ethernet state active
2. Configure access ports
Console(config)#interface ethernet 1/1
Console(config-if)#switchport mode access
Console(config-if)#switchport native vlan 10
Console(config-if)#switchport allowed vlan remove 1
Console(config)#interface ethernet 1/2
Console(config-if)#switchport mode access
Console(config-if)#switchport native vlan 20
Console(config-if)#switchport allowed vlan remove 1
Console(config)#interface ethernet 1/3
Console(config-if)#switchport mode access
Console(config-if)#switchport native vlan 30
Console(config-if)#switchport allowed vlan remove 1
3. Configure trunk port
Console(config)#interface ethernet 1/11
Console(config-if)#switchport mode trunk
Console(config-if)#switchport allowed vlan add 10,20,30 tagged
Console(config-if)#switchport allowed vlan remove 1
Result:
Check the status on SW2 and SW3:

Check the status on SW1 and SW4:

At QinQ tunnel:
Capture packets by wireshark.


Comments
0 comments
Please sign in to leave a comment.