Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 5

Selective QinQ transported by MPLS L2VC simulated on eNSP

The MPLS brings many facilities to ISP promoting the possibility of delivering transports through VPNs, one of which
is the VPWS, which delivers a point to point link that can be configured on a specific VLAN or on a dedicated physical
port for a customer.

When configured on a physical port, the VPWS will transport all data inserted on this port directly to the other side of
the tunnel, including all existent VLAN ID.

But, at some moment, the customer may request that be realized the selection of some VLANs to a specific tunnel and
other VLANs to another tunnel. For this is necessary the utilization of a technique called Selective QinQ, where we
create transport VLANs to linked the tunnel and insert on these VLANs the selected VLAN ID creating a double TAG.

To demonstrate the operation, I created a LAB with the following premises:

Customer A needs to transport the VLANs 1030 and 2030 to router R1 and the VLAN 530 to router R2.

Customer B needs to transport the VLANs 1035 and 2035 to router R1 and the VLAN 535 to router R2.

IPs were placed on the VLANs so that we could realize tests of ping to validate the correct transport work. Following
were the configuration of each equipment of this LAB to be replicated by you.

[CLI_A]
vlan batch 530 1030 2030
interface Vlanif530
ip address 50.50.30.1 255.255.255.0
interface Vlanif1030
ip address 10.10.30.1 255.255.255.0
interface Vlanif2030
ip address 20.20.30.1 255.255.255.0
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 530 1030 2030

[CLI_B]
vlan batch 535 1035 2035
interface Vlanif535
ip address 50.50.35.1 255.255.255.0
interface Vlanif1035
ip address 10.10.35.1 255.255.255.0
interface Vlanif2035
ip address 20.20.35.1 255.255.255.0
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 535 1035 2035

[PE1]
vlan batch 30 35 100 to 101 300 350
mpls lsr-id 1.1.1.1
mpls
mpls l2vpn
mpls ldp
interface Vlanif30
mpls l2vc 2.2.2.2 30
interface Vlanif35
mpls l2vc 2.2.2.2 35
interface Vlanif100
ip address 10.0.0.1 255.255.255.252
ospf network-type p2p
ospf enable 1 area 0.0.0.0
mpls
mpls ldp
interface Vlanif101
ip address 10.0.0.5 255.255.255.252
ospf network-type p2p
ospf enable 1 area 0.0.0.0
mpls
mpls ldp
interface Vlanif300
mpls l2vc 3.3.3.3 300
interface Vlanif350
mpls l2vc 3.3.3.3 350
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
interface GigabitEthernet0/0/2
qinq vlan-translation enable
port hybrid untagged vlan 30 300
port vlan-stacking vlan 10 stack-vlan 30
port vlan-stacking vlan 20 stack-vlan 30
port vlan-stacking vlan 50 stack-vlan 300
interface GigabitEthernet0/0/3
qinq vlan-translation enable
port hybrid untagged vlan 35 350
port vlan-stacking vlan 10 stack-vlan 35
port vlan-stacking vlan 20 stack-vlan 35
port vlan-stacking vlan 50 stack-vlan 350
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 101
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
ospf enable 1 area 0.0.0.0
ospf 1 router-id 1.1.1.1
area 0.0.0.0

[PE2]
vlan batch 30 35 100
mpls lsr-id 2.2.2.2
mpls
mpls l2vpn
mpls ldp
interface Vlanif30
mpls l2vc 1.1.1.1 30
interface Vlanif35
mpls l2vc 1.1.1.1 35
interface Vlanif100
ip address 10.0.0.2 255.255.255.252
ospf network-type p2p
ospf enable 1 area 0.0.0.0
mpls
mpls ldp
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 30 35
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
ospf enable 1 area 0.0.0.0
ospf 1 router-id 1.1.1.1
area 0.0.0.0

[PE3]
vlan batch 300 350 101
mpls lsr-id 3.3.3.3
mpls
mpls l2vpn
mpls ldp
interface Vlanif300
mpls l2vc 1.1.1.1 300
interface Vlanif350
mpls l2vc 1.1.1.1 350
interface Vlanif101
ip address 10.0.0.6 255.255.255.252
ospf network-type p2p
ospf enable 1 area 0.0.0.0
mpls
mpls ldp
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 101
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 300 350
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
ospf enable 1 area 0.0.0.0
ospf 1 router-id 1.1.1.1
area 0.0.0.0

[R1]
interface GigabitEthernet0/0/0.3010
qinq termination pe-vid 30 ce-vid 1030
ip address 10.10.30.2 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/0.3020
qinq termination pe-vid 30 ce-vid 2030
ip address 20.20.30.2 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/0.3510
qinq termination pe-vid 35 ce-vid 1035
ip address 10.10.35.2 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/0.3520
qinq termination pe-vid 35 ce-vid 2035
ip address 20.20.35.2 255.255.255.0
arp broadcast enable

[R2]
interface GigabitEthernet0/0/0.3050
qinq termination pe-vid 300 ce-vid 530
ip address 50.50.30.2 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/0.3550
qinq termination pe-vid 350 ce-vid 535
ip address 50.50.35.2 255.255.255.0
arp broadcast enable

You might also like