BGP VPLS SUBINTERFACE ATTACHMENT
PE1: POP
(config)#interface xe2.105 switchport |
Create an L2 sub-interface xe2.105 on the physical interface xe2. |
(config-if)# encapsulation dot1ad 3001 inner-dot1q 2001 |
Configure encapsulation using the outer VLAN ID 3001 (dot1ad) and the inner VLAN ID 2001 (dot1q). |
(config-if)# rewrite pop |
Configure rewrite with action pop. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v105 |
Associate the VPLS instance with the attachment circuit interface. |
(config -acc-if-vpls)#exit |
Exit from access mode. |
PE1: XLATE
(config)# interface xe2.106 switchport |
Create L2 sub-interface xe2.106 on the physical interface xe2. |
(config-if)# encapsulation dot1ad 510 inner-dot1q 511 |
Configure encapsulation with the outer VLAN ID 510 (dot1ad) and the inner VLAN ID 511 (dot1q). |
(config-if)# rewrite translate 2-to-1 dot1q 251 |
Configure VLAN tag (251) translation on the interface. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v106 |
Associate the VPLS instance with the attachment circuit interface. |
(config-acc-if-vpls )#exit |
Exit from access mode. |
PE1: PUSH
(config)#interface xe2.107 switchport |
Create L2 sub-interface xe2.107 on the physical interface xe2. |
(config-if)# encapsulation dot1ad 301 inner-dot1q 310 |
Configure encapsulation with the outer VLAN ID 301 (dot1ad) and the inner VLAN ID 310 (dot1q). |
(config-if)# rewrite push dot1q 321 |
Configure the interface to push a single VLAN tag with VLAN ID 321. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v107 |
Associate the VPLS instance with the attachment circuit interface. |
(config-acc-if-vpls)#exit |
Exit from access mode. |
PE1: POP-2TAG
(config)#interface xe2.108 switchport |
Create L2 sub-interface xe2.108 on the physical interface xe2. |
(config-if)# encapsulation dot1ad 105 inner-dot1q 115 |
Configure encapsulation with the outer VLAN ID 105 (dot1ad) and the inner VLAN ID 115 (dot1q). |
(config-if)# rewrite pop-2tag |
Configure rewrite with action pop-2tag. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v108 |
Associate the VPLS instance with the attachment circuit interface. |
(config-acc-if-vpls)#exit |
Exit from access mode. |
PE2: POP
(config)#interface xe0.105 switchport |
Create L2 sub-interface xe0.105 on the physical interface xe0. |
(config-if)# encapsulation dot1ad 3001 inner-dot1q 2001 |
Configure encapsulation with outer VLAN ID 3001 (dot1ad) and inner VLAN ID 2001 (dot1q). |
(config-if)# rewrite pop |
Configure rewrite with action pop. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v105 |
Associate the VPLS instance with the attachment circuit interface. |
(config -acc-if-vpls)#exit |
Exit from access mode. |
PE2: XLATE
(config)# interface xe0.106 switchport |
Create L2 sub-interface xe0.106 on the physical interface xe0. |
(config-if)# encapsulation dot1ad 510 inner-dot1q 511 |
Configure encapsulation with outer VLAN ID 510 (dot1ad) and inner VLAN ID 511(dot1q). |
(config-if)# rewrite translate 2-to-1 dot1q 251 |
Configure VLAN tag (251) translation on the interface. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v106 |
Associate the VPLS instance with the attachment circuit interface. |
(config-acc-if-vpls )#exit |
Exit from access mode. |
PE2: PUSH
(config)#interface xe0.107 switchport |
Create L2 sub-interface xe0.107 on the physical interface xe0. |
(config-if)# encapsulation dot1ad 301 inner-dot1q 310 |
Configure encapsulation with the outer VLAN ID 301 (dot1ad) and the inner VLAN ID 310 (dot1q). |
(config-if)# rewrite push dot1q 321 |
Configure the interface to push a single VLAN tag with VLAN ID 321. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v107 |
Associate the VPLS instance with the attachment circuit interface. |
(config-acc-if-vpls)#exit |
Exit from access mode. |
PE2: POP-2TAG
(config)#interface xe0.108 switchport |
Create L2 sub-interface xe0.108 on the physical interface xe0. |
(config-if)# encapsulation dot1ad 105 inner-dot1q 115 |
Configure encapsulation with the outer VLAN ID 105 (dot1ad) and the inner VLAN ID 115 (dot1q). |
(config-if)# rewrite pop-2tag |
Configure rewrite with action pop-2tag. |
(config-if)# access-if-vpls |
Access VPLS under the sub-interface. |
(config-acc-if-vpls)# mpls-vpls v108 |
Associate the VPLS instance with the attachment circuit interface. |
(config-acc-if-vpls)#exit |
Exit from access mode. |