OcNOS-SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : BGP-VPLS Service Mapping Configuration : BGP VPLS Service Mapping Configuration
BGP VPLS Service Mapping Configuration
PE1: POP
 
(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
PE1: XLATE
 
(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
PE1: PUSH
 
(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
PE1: PUSH-service-template with multiple match
This is to validate the multiple match criteria support in a service template. When multiple match statements are configured only rewrite push is supported, rewrite translate and pop are not supported.
 
(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
PE1: Access port Configuration
 
(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
PE2: POP
 
(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
PE2: XLATE
 
(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
PE2: PUSH
 
(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
PE2: PUSH-service-template with multiple match
This is to validate the multiple match criteria support in a service template. When multiple match statements are configured only rewrite push is supported, rewrite translate and pop are not supported.
 
(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
PE2: Access port Configuration
 
(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
Validation
PE1
#show bgp l2vpn vpls
VPLS-ID VE-ID Discovered-Peers Route-Target
25 1 1 100:25
26 1 1 100:26
27 1 1 100:27
28 1 1 100:28
 
#show bgp l2vpn vpls detail
 
VPLS ID: 25
VE-ID: 1
Discovered Peers: 1
Route-Target: 100:25
Local RD: 100:25
Mesh Peers:
Address:23.23.23.23, RD:100:25, VE-ID:2
VC Details: VC-ID:12
Remote (LB:53120,VBO:1,VBS:64) Local (LB:53120,VBO:1,VBS:64)
LB sent on known VEID:Yes
In Label:53121, Out Label:53120
PW Status:Established
 
 
VPLS ID: 26
VE-ID: 1
Discovered Peers: 1
Route-Target: 100:26
Local RD: 100:26
Mesh Peers:
Address:23.23.23.23, RD:100:26, VE-ID:2
VC Details: VC-ID:12
Remote (LB:53120,VBO:1,VBS:64) Local (LB:53184,VBO:1,VBS:64)
LB sent on known VEID:Yes
In Label:53185, Out Label:53120
PW Status:Established
 
 
VPLS ID: 27
VE-ID: 1
Discovered Peers: 1
Route-Target: 100:27
Local RD: 100:27
Mesh Peers:
Address:23.23.23.23, RD:100:27, VE-ID:2
VC Details: VC-ID:12
Remote (LB:53184,VBO:1,VBS:64) Local (LB:53120,VBO:1,VBS:64)
LB sent on known VEID:Yes
In Label:53121, Out Label:53184
PW Status:Established
 
VPLS ID: 28
VE-ID: 1
Discovered Peers: 1
Route-Target: 100:28
Local RD: 100:28
Mesh Peers:
Address:23.23.23.23, RD:100:28, VE-ID:2
VC Details: VC-ID:12
Remote (LB:53184,VBO:1,VBS:64) Local (LB:53120,VBO:1,VBS:64)
LB sent on known VEID:Yes
In Label:53122, Out Label:53186
PW Status:Established
 
#show mpls vpls mesh
VPLS-ID Peer Addr Tunnel-Label In-Label Network-Intf Out-Label Lkps/St PW-INDEX SIG-Protocol Status
Ecmp-Group
25 23.23.23.23 52480 53121 eth2 53120 2/Up 1 BGP Active
N/A
26 23.23.23.23 52480 53185 eth2 53120 2/Up 2 BGP Active N/A
27 23.23.23.23 52480 53121 eth2 53184 2/Up 3 BGP Active N/A
28 23.23.23.23 52480 53122 eth2 53186 2/Up 3 BGP Active N/A
 
#show mpls vpls detail
Virtual Private LAN Service Instance: v1, ID: 25
SIG-Protocol: BGP
Route-Distinguisher :100:25
Route-Target :100:25
VE-ID :1
Attachment-Circuit :UP
Learning: Enabled
Group ID: 0, Configured MTU: 1500
Description: none
service-tpid: dot1.ad
Configured interfaces:
Interface: eth1
Service-template : template1
Match criteria : 2024/2023
Action type : Pop
Outgoing tpid : dot1.ad
 
Mesh Peers:
23.23.23.23 (Up)
 
Virtual Private LAN Service Instance: v2, ID: 26
SIG-Protocol: BGP
Route-Distinguisher :100:26
Route-Target :100:26
VE-ID :1
Attachment-Circuit :UP
Learning: Enabled
Group ID: 0, Configured MTU: 1500
Description: none
service-tpid: dot1.ad
Configured interfaces:
Interface: eth1
Service-template : template2
Match criteria : 2030/2024
Action type : Translate
Action value : 2026
Outgoing tpid : dot1.q
 
Mesh Peers:
23.23.23.23 (Up)
 
Virtual Private LAN Service Instance: v3, ID: 27
SIG-Protocol: BGP
Route-Distinguisher :100:27
Route-Target :100:27
VE-ID :1
Attachment-Circuit :UP
Learning: Enabled
Group ID: 0, Configured MTU: 1500
Description: none
service-tpid: dot1.q
Configured interfaces:
Interface: eth1
Service-template : template3
Match criteria : Accept all
Action type : Push
Action value : 300
 
Mesh Peers:
23.23.23.23 (Up)
 
Virtual Private LAN Service Instance: v4, ID: 28
SIG-Protocol: BGP
Route-Distinguisher :100:28
Route-Target :100:28
VE-ID :1
Attachment-Circuit :UP
Learning: Enabled
Group ID: 0, Configured MTU: 1500
Description: none
service-tpid: dot1.q
Configured interfaces:
Interface: eth1
 
Service-template : template4
Match criteria : 700
1200/3200
untagged
Action type : Push
Action value : 300
 
Mesh Peers:
23.23.23.23 (Up)
 
Last modified date: 07/17/2023