/images/Attachment.png)
| PE1#configure terminal |  Enter configure terminal mode | 
| PE1(config)#hardware-profile filter ingress-ipv6 enable |  Enabling Ingress IPv6 group for IPv6 feature support | 
| PE1(config)#hardware-profile filter qos-policer enable | Enabling Ingress extended QOS group for hierarchical policer | 
| PE1(config)#qos enable | Enabling QoS | 
| PE1(config)#qos statistics | Enabling Qos statistics | 
| PE1(config)#mpls l2-circuit VPWS-VLAN-200 2000200 21.21.21.21 agi abc saii xyz taii mmm | Create an instance of an MPLS layer 2 virtual circuit  | 
| (config-pseudowire)#exit | Exit pseudowire config mode. | 
| PE1(config)#mpls l2-circuit VPWS-VLAN-300 2000300 21.21.21.21 | Create an instance of an MPLS layer 2 virtual circuit | 
| (config-pseudowire)#exit | Exit pseudowire config mode. | 
| PE1(config)#mpls lsp-model uniform | Configure the MPLS LSP model as Uniform. | 
| PE1(config)#service-template VPWS-Vlan200-Service | Enabling Service Template | 
| PE1(config-svc)#match outer-vlan 200 | Match outer vlan 200 | 
| PE1(config-svc)#rewrite ingress translate 100 outgoing-tpid dot1.q | Enabling command to configure a match VLAN action for a service template | 
| PE1(config-svc)#exit | Exit mode | 
| PE1(config)#service-template VPWS-Vlan300-Service | Enabling Service Template | 
| PE1(config-svc)#match outer-vlan 300 | Match outer vlan 300<null> | 
| PE1(config-svc)#rewrite ingress translate 4000 outgoing-tpid dot1.q | Enabling command to configure a match VLAN action for a service template | 
| PE1(config-svc)#exit  | Exit mode | 
| PE1(config)#class-map c0 | Enter Class-map mode | 
| PE1(config-cmap-qos)#match cos 0 | Matching cos value inside class map | 
| PE1(config-cmap-qos)#exit | Exit mode | 
| PE1(config)#class-map c1 | Enter Class-map mode | 
| PE1(config-cmap-qos)#match cos 1 | Matching cos value inside class map | 
| PE1(config-cmap-qos)#exit | Exit mode | 
| PE1(config)#class-map c2 | Enter Class-map mode | 
| PE1(config-cmap-qos)#match cos 2 | Matching cos value inside class map | 
| PE1(config-cmap-qos)# exit | Exit mode | 
| PE1(config)#class-map c3 | Enter Class-map mode | 
| PE1(config-cmap-qos)#match cos 3 | Matching cos value inside class map | 
| PE1(config)#class-map cp1 | Enter Class-map mode | 
| PE1(config-cmap-qos)#match vlan 200 | Matching vlan inside class map | 
| PE1(config-cmap-qos)#exit | Exit mode | 
| PE1(config)#class-map cp2 | Enter Class-map mode | 
| PE1(config-cmap-qos)#match vlan 300 | Matching vlan inside class map | 
| PE1(config-cmap-qos)#exit | Exit mode | 
| PE1(config)#policy-map child | Enter policy-map mode | 
| PE1(config-pmap-qos)#class c0 | Assign Class c0 to Policy-map child | 
| PE1(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps  | 
| PE1(config-pmap-c-qos)#exit | Exit mode | 
| PE1(config-pmap-qos)#class c1 | Assign Class c1 to Policy-map child | 
| PE1(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps | 
| PE1(config-pmap-c-qos)#exit | Exit mode | 
| PE1(config-pmap-qos)#class c2 | Assign Class c2 to Policy-map child | 
| PE1(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps | 
| PE1(config-pmap-c-qos)#exit | Exit mode | 
| PE1(config-pmap-qos)#class c3 | Assign Class c3 to Policy-map child | 
| PE1(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps | 
| PE1(config-pmap-c-qos)#exit | Exit mode | 
| PE1(config-pmap-qos)#policy-map parent | Enter policy-map mode | 
| PE1(config-pmap-qos)#class cp1 | Assign Class cp1 to Policy-map parent | 
| PE1(config-pmap-c-qos)#police cir 200 mbps | Police packets @ Committed information rate 200 mbps | 
| PE1(config-pmap-c-qos)#service-policy child | Attaching child policy to Parent | 
| PE1(config-pmap-c-qos)#exit | Exit mode | 
| PE1(config-pmap-qos)#class cp2 | Assign Class cp2 to Policy-map child | 
| PE1(config-pmap-c-qos)#police cir 200 mbps | Police packets @ Committed information rate 200 mbps | 
| PE1(config-pmap-c-qos)#service-policy child | Attaching child policy to Parent | 
| PE1(config-pmap-c-qos)#exit | Exit mode | 
| PE1(config-pmap-qos)#exit | Exit from Policy Map | 
| PE1(config)#router ldp | Enter the Router LDP mode. | 
| PE1(config-router)#targeted-peer ipv4 21.21.21.21 | Configure targeted peer | 
| PE1(config-router-targeted-peer)#<null>exit-targeted-peer-mode | Exit Targeted Peer Mode | 
| PE1(config-router)#transport-address ipv4 11.11.11.11 | Configure transport address | 
| PE1(config-router)#exit | Exit mode | 
| PE1(config)#interface ce45 | Entering Interface Mode | 
| PE1(config-if)#ip address 1.1.1.1/24 | Assigning IP Address to interface | 
| PE1(config-if)#label-switching | Enabling Label Switching on the interface. | 
| PE1(config-if)#enable-ldp ipv4 | Enabling LDP  | 
| PE1(config-if)#exit | Exit mode  | 
| PE1(config)#interface lo | Entering loopback Interface Mode | 
| PE1(config-if)#ip address 11.11.11.11/32 secondary | Assigning IP Address to interface | 
| PE1(config-if)#exit | Exit mode | 
| PE1(config)#interface xe2 | Entering Interface Mode | 
| PE1(config-if)#switchport | Enabling the Interface as Switchport | 
| PE1(config-if)#mpls-l2-circuit VPWS-VLAN-200 service-template VPWS-Vlan200-Service | Bind the interface to the VC and add the service-template. | 
| PE1(config-if)#mpls-l2-circuit VPWS-VLAN-300 service-template VPWS-Vlan300-Service | Bind the interface to the VC and add the service-template. | 
| PE1(config-if)#service-policy type qos input parent | Assign service-policy to interface on in-direction | 
| PE1(config-if)#exit | Exit mode | 
| PE1(config)#router ospf | Configure the routing process and The Process ID should be a unique positive integer identifying the routing process | 
| PE1(config-router)#network 1.1.1.0/24 area 0.0.0.0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. | 
| PE1(config-router)#network 11.11.11.11/32 area 0.0.0.0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. | 
| PE1(config-router)#exit | Exit Router Ospf MOde | 
| PE2#configure terminal | Enter configure terminal mode | 
| PE2(config)#hardware-profile filter ingress-ipv6 enable | Enabling Ingress IPv6 group for IPv6 feature | 
| PE2(config)#hardware-profile filter qos-policer enable | Enabling Ingress extended QOS group for hierarchical policer | 
| PE2(config)#qos enable | Enabling QoS | 
| PE2(config)#qos statistics | Enabling Qos statistics | 
| PE2(config)#mpls l2-circuit VPWS-VLAN-200 2000200 11.11.11.11 agi abc saii xyz taii mmm | Create an instance of an MPLS layer 2 virtual circuit  | 
| (config-pseudowire)#exit | Exit pseudowire config mode. | 
| PE2(config)#mpls l2-circuit VPWS-VLAN-300 2000300 11.11.11.11 | Create an instance of an MPLS layer 2 virtual circuit | 
| (config-pseudowire)#exit | Exit pseudowire config mode. | 
| PE2(config)#mpls lsp-model uniform | Configure the MPLS LSP model as Uniform. | 
| PE2(config)#service-template VPWS-Vlan200-Service | Enabling Service Template | 
| PE2(config-svc)#match outer-vlan 200 | Match outer vlan 200 | 
| PE2(config-svc)#rewrite ingress translate 100 outgoing-tpid dot1.q | Enabling command to configure a match VLAN action for a service template | 
| PE2(config-svc)#exit | Exit mode | 
| PE2(config)#service-template VPWS-Vlan300-Service | Enabling Service Template | 
| PE2(config-svc)#match outer-vlan 300 | Match outer vlan 300 | 
| PE2(config-svc)#rewrite ingress translate 4000 outgoing-tpid dot1.q | Enabling command to configure a match VLAN action for a service template | 
| PE2(config-svc)#exit  | Exit mode | 
| PE2(config)#class-map c0 | Enter Class-map mode | 
| PE2(config-cmap-qos)# match cos 0 | Matching cos value inside class map | 
| PE2(config-cmap-qos)#exit | Exit mode | 
| PE2(config)#class-map c1 | Enter Class-map mode | 
| PE2(config-cmap-qos)#match cos 1 | Matching cos value inside class map | 
| PE2(config-cmap-qos)#exit | Exit mode | 
| PE2(config)#class-map c2 | Enter Class-map mode | 
| PE2(config-cmap-qos)#match cos 2 | Matching cos value inside class map | 
| PE2(config-cmap-qos)#exit | Exit mode | 
| PE2(config)#class-map c3 | Enter Class-map mode | 
| PE2(config-cmap-qos)#match cos 3 | Matching cos value inside class map | 
| PE2(config-cmap-qos)#exit | Exit mode | 
| PE2(config)#class-map cp1 | Enter Class-map mode | 
| PE2(config-cmap-qos)#match vlan 200 | Matching vlan inside class map | 
| PE2(config-cmap-qos)#exit | Exit mode | 
| PE2(config)#class-map cp2 | Enter Class-map mode | 
| PE2(config-cmap-qos)#match vlan 300 | Matching vlan inside class map | 
| PE2(config-cmap-qos)#exit | Exit mode | 
| PE2(config)#policy-map child | Enter policy-map mode | 
| PE2(config-pmap-qos)#class c0 | Assign Class c0 to Policy-map child | 
| PE2(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps  | 
| PE2(config-pmap-c-qos)#exit | Exit mode | 
| PE2(config-pmap-qos)#class c1 | Assign Class c1 to Policy-map child | 
| PE2(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps | 
| PE2(config-pmap-c-qos)#exit | Exit mode | 
| PE2(config-pmap-qos)#class c2 | Assign Class c2 to Policy-map child | 
| PE2(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps | 
| PE2(config-pmap-c-qos)#exit | Exit mode | 
| PE2(config-pmap-qos)#class c3 | Assign Class c3 to Policy-map child | 
| PE2(config-pmap-c-qos)#police cir 50 mbps eir 150 mbps | Police packets @ Committed information rate 50 mbps | 
| PE2(config-pmap-c-qos)#exit | Exit mode | 
| PE2(config-pmap-qos)#policy-map parent | Enter policy-map mode | 
| PE2(config-pmap-qos)#class cp1 | Assign Class cp1 to Policy-map parent | 
| PE2(config-pmap-c-qos)#police cir 200 mbps | Police packets @ Committed information rate 200 mbps | 
| PE2(config-pmap-c-qos)#service-policy child | Attaching child policy to Parent  | 
| PE2(config-pmap-c-qos)#exit | Exit mode | 
| PE2(config-pmap-qos)#class cp2 | Assign Class cp2 to Policy-map child | 
| PE2(config-pmap-c-qos)#police cir 200 mbps | Police packets @ Committed information rate 200 mbps | 
| PE2(config-pmap-c-qos)#service-policy child | Attaching child policy to Parent | 
| PE2(config-pmap-c-qos)#exit | Exit mode | 
| PE2(config-pmap-qos)#exit | Exit from Policy Map | 
| PE2(config)#router ldp | Enter the Router LDP mode | 
| PE2(config-router)#targeted-peer ipv4 11.11.11.11 | Configure targeted peer | 
| PE2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit Targeted Peer Mode | 
| PE2(config-router)# transport-address ipv4 21.21.21.21 | Configure transport address | 
| PE2(config-router)#exit | Exit mode | 
| PE2(config)#interface ce45 | Entering Interface Mode | 
| PE2(config-if)#ip address 1.1.1.2/24 | Assigning IP Address to interface | 
| PE2(config-if)#label-switching | Enabling Label Switching on the interface. | 
| PE2(config-if)#enable-ldp ipv4 | Enabling LDP  | 
| PE2(config-if)#exit | Exit mode  | 
| PE2(config)#interface lo | Entering loopback Interface Mode | 
| PE2(config-if)#ip address 21.21.21.21/32 secondary | Assigning IP Address to interface | 
| PE2(config-if)#exit | Exit interface mode | 
| PE2(config)#interface xe1 | Entering Interface Mode | 
| PE2(config-if)#switchport | Enabling the Interface as Switch port | 
| PE2(config-if)#mpls-l2-circuit VPWS-VLAN-200 service-template VPWS-Vlan200-Service | Bind the interface to the VC and add the service-template. | 
| PE2(config-if)#mpls-l2-circuit VPWS-VLAN-300 service-template VPWS-Vlan300-Service | Bind the interface to the VC and add the service-template. | 
| PE2(config-if)#service-policy type qos input parent | Assign service-policy to interface on in-direction | 
| PE2(config-if)#exit | Exit interface mode | 
| PE2(config)#router ospf | Configure the routing process and The Process ID should be a unique positive integer identifying the routing process | 
| PE2(config-router)#network 1.1.1.0/24 area 0.0.0.0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. | 
| PE2(config-router)#network 21.21.21.21/32 area 0.0.0.0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. | 
| PE2(config-router)#exit | Exit Router OSPF mode |