[Enterprise Switch] How to deploy Selective-QinQ environment. Follow
Extend from previous “How to config QinQ tunneling” chpter, we know that QinQ will insert a Service VID in front of preserved Customer VIDs. Selective QinQ could further configure the C-VID map to S-VID.
Support models
ECS4100 series, ECS4120 series, ECS4620 series, etc.
Application
For a company with branch site, they might use VLAN for different service (e.g. VOIP, File sharing). But the VID used in company might not be allowed to use in ISP Network. Selective QinQ could be used to forward different service VLAN traffic map to ISP provided VLAN with priority setting also reflect.
Topology:
Configure Selective QinQ setting at Switch-2 and Switch-3 :
Create S-VLANs:
Console(config)#vlan database
Console(config-vlan)#vlan 100,200,300 media ethernet state active
Console(config-vlan)#exit
Enable dot1q-service in global config
Console(config)#dot1q-tunnel system-tunnel-control
Configure a tagged member of VLANs 100, 200 and 300 using uplink mode
Console(config)#interface ethernet 1/25
Console(config-if)#switchport allowed vlan add 100,200,300 tagged
Console(config-if)#switchport dot1q-tunnel mode uplink
Console(config-if)#exit
Configures an untagged member of VLANs 100, 200 and 300 using access mode.
Console(config)#interface ethernet 1/1
Console(config-if)#switchport allowed vlan add 100,200,300 untagged
Console(config-if)#switchport dot1q-tunnel mode access
Console(config-if)#end
Configure the following selective QinQ mapping entries
Console#config
Console(config)#interface ethernet 1/1
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
Console(config-if)#switchport dot1q-tunnel priority map
Check dot1q-tunnel setting
Console#show dot1q-tunnel
802.1Q Tunnel Status : Enabled
Port Mode TPID (Hex) Priority Mapping
-------- ------ ---------- ----------------
Eth 1/ 1 Access 8100 Enabled
Eth 1/ 2 Normal 8100 Disabled
Eth 1/ 3 Normal 8100 Disabled
Eth 1/ 4 Normal 8100 Disabled
Eth 1/ 5 Normal 8100 Disabled
Eth 1/ 6 Normal 8100 Disabled
Eth 1/ 7 Normal 8100 Disabled
Eth 1/ 8 Normal 8100 Disabled
Eth 1/ 9 Normal 8100 Disabled
Eth 1/10 Normal 8100 Disabled
Eth 1/11 Normal 8100 Disabled
Eth 1/12 Normal 8100 Disabled
Eth 1/13 Normal 8100 Disabled
Eth 1/14 Normal 8100 Disabled
Eth 1/15 Normal 8100 Disabled
Eth 1/16 Normal 8100 Disabled
Eth 1/17 Normal 8100 Disabled
Eth 1/18 Normal 8100 Disabled
Eth 1/19 Normal 8100 Disabled
Eth 1/20 Normal 8100 Disabled
Eth 1/21 Normal 8100 Disabled
Eth 1/22 Normal 8100 Disabled
Eth 1/23 Normal 8100 Disabled
Eth 1/24 Normal 8100 Disabled
Eth 1/25 Uplink 8100 Disabled
Eth 1/26 Normal 8100 Disabled
Eth 1/27 Normal 8100 Disabled
Eth 1/28 Normal 8100 Disabled
Console#
Check dot1q-tunnel VLAN mapping setting
Console#show dot1q-tunnel service
802.1Q Tunnel Service Subscriptions
Port Match C-VID S-VID
-------- ----------- -----
Eth 1/ 1 10 100
Eth 1/ 1 20 200
Eth 1/ 1 30 300
Console#
Configure VLAN setting at Switch-1 and Switch-4
Console(config)#vlan database
Console(config-vlan)#vlan 10,20,30 media ethernet state active
Console(config-vlan)#exit
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)#exit
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)#exit
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
Console(config)#interface ethernet 1/24-25
Console(config-if)#switchport mode trunk
Console(config-if)#switchport allowed vlan 10,20,30
Check the packet received on Uplink port will be specified according to QinQ mapping.
VLAN-10 (S-Vid 100 will be added refer to C-Vid 10, and the priority of C-Vid 5 will also be inherited on S-Vid)
VLAN-20 (S-Vid 200 will be added refer to C-Vid 20)
VLAN-30 (S-Vid 300 will be added refer to C-Vid 30)
Comments
0 comments
Please sign in to leave a comment.