CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure Basic QinQ

Network Requirements

  • Intranet users CE1 and CE2, and CE3 and CE4 communicate with each other through the carrier network. CE1 and CE2 uses the Intranet VLAN10-VLAN20, CE3 and CE4 uses Intranet VLAN15-VLAN30, and PE1 and PE2 are two edge devices in the carrier network.
  • The basic QinQ is configured on PE1 and PE2. Then, CE1 and CE2 can communicate with each other through VLAN00 of the carrier public network, CE3 and CE4 can communicate with each other through VLAN101 of the carrier public network, and the packets that are transmitted in the carrier public network contain two layers of tags.

Network Topology

Networking for Configuring Basic QinQ

Figure 4-1 Networking for Configuring Basic QinQ

Configuration Steps

Step 1: Configure PE1.

#On PE1, create VLAN10-VLAN30 and VLAN100-VLAN101.

PE1#configure terminal
PE1(config)#vlan 10-30,100-101

#On PE1, configure the link type of port gigabitethernet0/1 to Trunk and allow services of VLAN10-VLAN20 and VLAN100 to pass, and set PVID to 100.

PE1(config)#interface gigabitethernet 0/1
PE1(config-if-gigabitethernet0/1)#switchport mode trunk
PE1(config-if-gigabitethernet0/1)#switchport trunk allowed vlan add 10-20,100
PE1(config-if-gigabitethernet0/1)#switchport trunk pvid vlan 100
PE1(config-if-gigabitethernet0/1)#exit

#On PE1, configure the link type of port gigabitethernet0/2 to Trunk and allow services of VLAN15-VLAN30 and VLAN 101 to pass, and set PVID to 101.

PE1(config)#interface gigabitethernet 0/2
PE1(config-if-gigabitethernet0/2)#switchport mode trunk
PE1(config-if-gigabitethernet0/2)#switchport trunk allowed vlan add 15-30,101
PE1(config-if-gigabitethernet0/2)#switchport trunk pvid vlan 101
PE1(config-if-gigabitethernet0/2)#exit

#On PE1, configure the link type of port gigabitethernet0/3 to Trunk and allow services of VLAN100 and VLAN101 to pass, and set PVID to 1.

PE1(config)#interface gigabitethernet0/3
PE1(config-if-gigabitethernet0/3)#switchport mode trunk
PE1(config-if-gigabitethernet0/3)#switchport trunk allowed vlan add 100,101
PE1(config-if-gigabitethernet0/3)#switchport trunk pvid vlan 1
PE1(config-if-gigabitethernet0/3)#exit

#On ports gigabitethernet0/1 and gigabitethernet0/2 of PE1, enable the basic QinQ function.

PE1(config)#interface gigabitethernet 0/1
PE1(config-if-gigabitethernet0/1)#vlan dot1q-tunnel enable
PE1(config-if-gigabitethernet0/1)#exit
PE1(config)#interface gigabitethernet 0/2
PE1(config-if-gigabitethernet0/2)#vlan dot1q-tunnel enable
PE1(config-if-gigabitethernet0/2)#exit

Step 2: Configure PE2.

#On PE2, create VLAN10-VLAN30 and VLAN100-VLAN101.

PE2#configure terminal
PE2(config)#vlan 10-30,100-101

#On PE2, configure the link type of port gigabitethernet0/1 to Trunk and allow services of VLAN10-VLAN20 and VLAN100 to pass, and set PVID to 100.

PE2(config)#interface gigabitethernet 0/1
PE2(config-if-gigabitethernet0/1)#switchport mode trunk
PE2(config-if-gigabitethernet0/1)#switchport trunk allowed vlan add 10-20,100
PE2(config-if-gigabitethernet0/1)#switchport trunk pvid vlan 100
PE2(config-if-gigabitethernet0/1)#exit

#On PE2, configure the link type of port gigabitethernet0/2 to Trunk and allow services of VLAN15-VLAN30 and VLAN 101 to pass, and set PVID to 101.

PE2(config)#interface gigabitethernet 0/2
PE2(config-if-gigabitethernet0/2)#switchport mode trunk
PE2(config-if-gigabitethernet0/2)#switchport trunk allowed vlan add 15-30,101
PE2(config-if-gigabitethernet0/2)#switchport trunk pvid vlan 101
PE2(config-if-gigabitethernet0/2)#exit

#On PE2, configure the link type of port gigabitethernet0/3 to Trunk and allow services of VLAN100 and VLAN101 to pass, and set PVID to 1.

PE2(config)#interface gigabitethernet 0/3
PE2(config-if-gigabitethernet0/3)#switchport mode trunk
PE2(config-if-gigabitethernet0/3)#switchport trunk allowed vlan add 100,101
PE2(config-if-gigabitethernet0/3)#switchport trunk pvid vlan 1
PE2(config-if-gigabitethernet0/3)#exit

#On ports gigabitethernet0/1 and gigabitethernet0/2 of PE2, enable the basic QinQ function.

PE2(config)#interface gigabitethernet 0/1
PE2(config-if-gigabitethernet0/1)#vlan dot1q-tunnel enable
PE2(config-if-gigabitethernet0/1)#exit
PE2(config)#interface gigabitethernet 0/2
PE2(config-if-gigabitethernet0/2)#vlan dot1q-tunnel enable
PE2(config-if-gigabitethernet0/2)#exit

Step 3: Check the result.

#Through PE1 and PE2, the services of Intranet users CE1 and CE2 can be transmitted in VLAN100 of the carrier network with two layers of tags. Through PE1 and PE2, the services of Intranet users CE3 and CE4 can be transmitted in VLAN101 of the carrier network with two layers of tags.