#configure terminal | Enter configure mode. |
(config)#mpls l2-circuit vc1 10 2.2.2.2 | Configure the VC |
(config-pseudowire)# service-tpid dot1.ad | Configure Service-TPID as dot1.ad (0x88a8) |
(config-pseudowire)#exit | Exit pseudowire config mode. |
(config)# service-template template1 | Configure the service template. |
(config-svc)# match double-tag outer-vlan 204 inner-vlan 203 | Matching criteria for service template. |
(config-svc)#rewrite ingress pop outgoing-tpid dot1.ad | Action performed for service template. |
(config-svc)#exit | Exit configure SVC mode |
(config)#interface xe2 | Specify the interface (xe2) to be configured. |
(config-if)#switchport | Switch to Layer-2 mode. |
(config-if)#dot1ad ethertype 0x88a8 | Configure interface ethertype as dot1.ad (0x88a8) |
(config-if)#mpls-l2-circuit vc1 service-template template1 | Bind the interface to the VC with service template. |
(config-if)#commit | Commit the transaction. |
(config-if)#end | End of Interface and configurations mode. |
#configure terminal | Enter configure mode. |
(config)#mpls l2-circuit vc1 10 1.1.1.1 | Configure the VC. |
(config-pseudowire)#service-tpid dot1.ad | Configure Service-TPID as dot1.ad (0x88a8) |
(config-pseudowire)#exit | Exit pseudowire config mode. |
(config)# service-template template1 | Configure the service template. |
(config-svc)# match double-tag outer-vlan 204 inner-vlan 203 | Matching criteria for service template. |
(config-svc)# rewrite ingress pop outgoing-tpid dot1.ad | Action performed for service template. |
(config-svc)#exit | Exit configure SVC mode |
(config)#interface xe2 | Specify the interface (xe2) to be configured. |
(config-if)#switchport | Switch to Layer-2 mode. |
(config-if)#dot1ad ethertype 0x88a8 | Configure interface ethertype as dot1.ad (0x88a8) |
(config-if)#mpls-l2-circuit vc1 service-template template1 | Bind the interface to the VC with service template. |
(config-if)#commit | Commit the transaction. |
(config-if)#end | End of interface and configurations mode. |