OcNOS-SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : Virtual Private Wire Service Configuration : Service Template Configuration
Service Template Configuration
PE-1
 
#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.
PE-2
 
#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.
Validation
PE1
PE1#show ldp mpls-l2-circuit detail
PW ID: 10, VC state is up
Access IF: xe2,up,AC state is up
Session IF: xe1, state is up
Destination: 2.2.2.2, Peer LDP Ident: 2.2.2.2
Local vctype: vlan, remote vctype :vlan
Local groupid: 0, remote groupid: 0
Local label: 24322, remote label: 52482
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
 
 
 
PE1#show mpls l2-circuit detail
MPLS Layer-2 Virtual Circuit: vc1, id: 10 PW-INDEX: 1 service-tpid: dot1.ad
Endpoint: 2.2.2.2
Control Word: 0
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe2
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : template1
Match criteria : 204/203
Action type : Pop
Outgoing tpid : dot1.ad
 
 
PE1#show mpls vc-table
VC-ID Vlan-ID Inner-Vlan-ID Access-Intf Network-Intf Out Label Tunnel-Label Nexthop Status
10 N/A N/A xe2 xe1 52482 52480 2.2.2.2 Active
 
Last modified date: 10/17/2023