(config)#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 template2 | Template configuration |
(config-svc)# match double-tag outer-vlan 2030 inner-vlan 2024 | Match criteria under template configuration |
(config-svc)# rewrite ingress translate 2026 outgoing-tpid dot1.q | Action to be performed for the match |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template3 | Template configuration |
(config-svc)# match outer-vlan 500 | Match criteria under template configuration |
(config-svc)# rewrite ingress push 300 | Action to be performed for the default 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)#exit | Exit configure SVC mode |
(config)#interface eth1 | Enter the Interface mode for ethernet1. |
(config-if)switchport | Configure interface as L2 interface |
(config-if)#mpls-vpls v1 service-template template1 | Bind the VPLS to the Access Interface. |
(config-if-vpls)no ac-admin-status | Making Ac-admin-status Up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v2 service-template template2 | Bind the VPLS to the Access Interface. |
(config-if-vpls)no ac-admin-status | Making Ac-admin-status Up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v3 service-template template3 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#no ac-admin-statusv | Making Ac-admin-status Up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v4 service-template template4 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#exit | Exit Interface mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to running configuration |
(config)#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.ad | Action to be performed for the match. |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template2 | Template configuration |
(config-svc)# match double-tag outer-vlan 2030 inner-vlan 2024 | Match criteria under template configuration |
(config-svc)# rewrite ingress translate 2026 outgoing-tpid dot1.q | Action to be performed for the match |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template3 | Template configuration |
(config-svc)# match outer-vlan 500 | Match criteria under template configuration |
(config-svc)# rewrite ingress push 300 | Action to be performed for the default 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)#exit | Exit configure SVC mode |
(config)#interface eth2 | Enter the Interface mode for ethernet1. |
(config-if)switchport | Configure interface as L2 interface |
(config-if)#mpls-vpls v1 service-template template1 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#no ac-admin-status | Making admin status up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v2 service-template template2 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#no ac-admin-status | Making admin status up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v3 service-template template3 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#no ac-admin-status | Making admin status up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#mpls-vpls v4 service-template template4 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#exit | Exit Interface mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to running configuration |