OcNOS-SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : Mapping RSVP Tunnel Name to L2VPN Service : LDP VPLS Service Mapping Configuration
LDP VPLS Service Mapping Configuration
PE1
 
#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.
PE1: Access port Configuration
 
(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.
PE2
 
#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.
PE2: Access port Configuration
 
(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.
Validation
Below are the example outputs of mpls vpls with tunnel-name
 
PE1#show mpls vpls mesh
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#
 
PE1#show mpls vpls detail
Virtual Private LAN Service Instance: v1, ID: 25
SIG-Protocol: LDP
Attachment-Circuit :UP
Learning: Enabled
Control-Word: Disabled
Group ID: 0, VPLS Type: Ethernet VLAN, Configured MTU: 1500
Description: none
service-tpid: dot1.ad
Operating mode: Tagged
Svlan Id: 0
Svlan Tpid: 88a8
Configured interfaces:
Interface: xe15
Service-template : template1
Match criteria : 2024/2023
Action type : Pop
Outgoing tpid : dot1.q
 
Mesh Peers:
2.2.2.2 (Up)
Tunnel-Name: t2
 
 
Virtual Private LAN Service Instance: v2, ID: 26
SIG-Protocol: LDP
Attachment-Circuit :UP
Learning: Enabled
Control-Word: Disabled
Group ID: 0, VPLS Type: Ethernet, Configured MTU: 1500
Description: none
service-tpid: dot1.ad
Operating mode: Raw
Configured interfaces:
Interface: xe15
Service-template : template4
Match criteria : 700,
1200/3200,
Untagged
Action type : Push
Action value : 300
 
Mesh Peers:
2.2.2.2 (Up)
Tunnel-Name: t2
 
PE2#
PE1#sh mpls vpls mesh
 
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#
PE2#sh mpls vpls detail
Virtual Private LAN Service Instance: v1, ID: 25 SIG-Protocol: LDP
Attachment-Circuit :UP Learning: Enabled Control-Word: Disabled
Group ID: 0, VPLS Type: Ethernet VLAN, Configured MTU: 1500 Description: none
service-tpid: dot1.ad Operating mode: Tagged Svlan Id: 0
Svlan Tpid: 88a8 Configured interfaces:
Interface: xe15
Service-template : template1 Match criteria : 2024/2023 Action type : Pop
Outgoing tpid : dot1.q
Mesh Peers:
2.2.2.2 (Up) Tunnel-Name: t2
 
Virtual Private LAN Service Instance: v2, ID: 26 SIG-Protocol: LDP
Attachment-Circuit :UP Learning: Enabled Control-Word: Disabled
Group ID: 0, VPLS Type: Ethernet, Configured MTU: 1500 Description: none
service-tpid: dot1.ad Operating mode: Raw Configured interfaces:
Interface: xe15
Service-template : template4 Match criteria : 700,
1200/3200,
Untagged
Action type : Push Action value : 300
Mesh Peers:
2.2.2.2 (Up) Tunnel-Name: t2
Last modified date: 07/17/2023