#configure terminal | Configure mode |
(config)#service-template template1 | Template configuration |
(config-svc)# match double-tag outer-vlan 2024 inner-vlan 2023 | Match criteria under template configuration |
(config-svc)# rewrite ingress pop outgoing-tpid dot1.q | Action to be performed for the match. |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template4 | Template configuration |
(config-svc)# match outer-vlan 700 | Allow VLAN 700 traffic on this VC |
(config-svc)# match double-tag outer-vlan 1200 inner-vlan 3200 | Allow double tag match with s+c tags |
(config-svc)# match untagged | Allow untagged traffic |
(config-svc)# rewrite ingress push 300 | Push Action performed for service template |
(config-svc)#commit | Commit the transaction. |
(config)#interface xe15 | Enter the access interface xe15. |
(config-if)#switchport | Configure interface as a layer 2 port. |
(config-if)#mpls-vpls v1 service-template template1 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#exit-if-vpls | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v2 service-template template4 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#commit | Commit the transaction. |
(config-if)#exit | Exit Interface mode and return to Configure mode. |
#configure terminal | Configure mode |
(config)#service-template template1 | Template configuration |
(config-svc)# match double-tag outer-vlan 2024 inner-vlan 2023 | Match criteria under template configuration |
(config-svc)# rewrite ingress pop outgoing-tpid dot1.q | Action to be performed for the match. |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template4 | Template configuration |
(config-svc)# match outer-vlan 700 | Allow VLAN 700 traffic on this VC |
(config-svc)# match double-tag outer-vlan 1200 inner-vlan 3200 | Allow double tag match with s+c tags |
(config-svc)# match untagged | Allow untagged traffic |
(config-svc)# rewrite ingress push 300 | Push Action performed for service template |
(config-svc)#commit | Commit the transaction. |
(config)#interface xe12 | Enter access Interface xe12 |
(config-if)#switchport | Configure interface as a layer 2 port. |
(config-if)#mpls-vpls v1 service-template template1 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#exit-if-vpls | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v2 service-template template4 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#commit | Commit the transaction. |
(config-if)#exit | Exit Interface mode and return to Configure mode. |
VPLS-ID | Peer Addr | Tunnel-Label | In-Label | Network-Intf | Out-Label | Lkps/St | PW-INDEX | SIG-Protocol | Status |
25 | 2.2.2.2 | 24321 | 24322 | Xe1 | 24322 | 2/Up | 4 | LDP | Active |
26 | 2.2.2.2 | 24321 | 24323 | Xe1 | 24323 | 2/Up | 5 | LDP | Active |
PE1# |