OcNOS-DC : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : LDP-VPLS Service Mapping Configuration
LDP-VPLS Service Mapping Configuration
Overview
This chapter includes step-by-step configurations for LDP VPLS. It also contains an overview of the concepts of LDP VPLS. Virtual Private LAN Service (VPLS) is a way to provide Ethernet-based multipoint-to-multipoint communication over IP- MPLS networks. It allows geographically-dispersed sites to share an Ethernet broadcast domain by connecting sites through pseudowires.
Topology
The diagram depicts the topology for the configuration examples that follow.
LDP-VPLS SM
Configuration
PE-1
Loopback Interface
 
#configure terminal
Enter configuration mode.
(config)#interface lo
Enter the Interface mode for the loopback interface.
(config-if)#ip address 21.21.21.21/32 secondary
Configure IP address on loopback interface.
(config-if)#exit
Exit interface mode
Global LDP
 
(config)#router ldp
Enter the Router LDP mode.
(config-router)#transport-address ipv4 21.21.21.21
Configure transport address
(config-router)#targeted-peer ipv4 23.23.23.23
Configure targeted peer
(config-router-targeted-peer)#end
Exit from router target peer and LDP mode
 
 
 
 
Interface Configuration
 
(config)#interface eth2
Enter the Interface mode for eth2.
(config-if)# ip address 10.10.23.21/24
Configure IP address on the interface.
(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
(config-if)# label-switching
Enable label switching on the interface.
(config-if)#exit
Exit interface mode
OSPF Configuration
 
(config)#router ospf 100
Enter the Router OSPF mode.
(config-router)#ospf router-id 21.21.21.21
Router-id configurations
(config-router)#network 21.21.21.21/32 area 0
Advertise loopback address in OSPF.
(config-router)#network 10.10.23.0/24 area 0
Advertise network address in OSPF.
(config-router)#exit
Exit Router OSPF mode and return to Configure mode.
LDP VPLS Configuration
 
(config)#mpls vpls v1 25
Enter VPLS config mode
(config-vpls)#service-tpid dot1.ad
Service tp-id configuration.
(config-vpls)#signaling ldp
Define Signaling as LDP
(config-vpls-sig)#vpls-type vlan
Type VLAN configuration for VPLS
(config-vpls-sig)#vpls-peer 23.23.23.23
Configure VPLS Peer
(config-vpls-sig)#exit-signaling
Exit Signaling LDP mode
(config-vpls)#exit
Exit VPLS mode
(config)#mpls vpls v2 26
Enter VPLS config mode
(config-vpls)#service-tpid dot1.ad
Service tp-id configuration.
(config-vpls)#signaling ldp
Define Signaling as LDP
(config-vpls-sig)#vpls-type vlan
Type VLAN configuration for VPLS
(config-vpls-sig)#vpls-peer 23.23.23.23
Configure VPLS Peer
(config-vpls-sig)#exit-signaling
Exit Signaling LDP mode
(config-vpls)#exit
Exit VPLS mode
(config)#mpls vpls v3 27
Enter VPLS config mode
(config-vpls)#signaling ldp
Define Signaling as LDP
(config-vpls-sig)#vpls-type vlan
Type VLAN configuration for VPLS
(config-vpls-sig)#vpls-peer 23.23.23.23
Configure VPLS Peer
(config-vpls-sig)# exit-signaling
Exit Signaling LDP mode
(config-vpls)#exit
Exit VPLS mode
P1
Loopback Interface
 
#configure terminal
Enter configuration mode.
(config)#interface lo
Enter the Interface mode for the loopback interface.
(config-if)#ip address 22.22.22.22/32 secondary
Configure IP address on loopback interface.
(config-if)#exit
Exit interface mode
Global LDP
 
(config)#router ldp
Enter the Router LDP mode.
(config-router)#transport-address ipv4 22.22.22.22
Configure transport address
(config-router-targeted-peer)#end
Exit from router target peer and LDP mode
Interface Configuration
 
(config)#interface eth1
Enter the Interface mode for eth1.
(config-if)# ip address 10.10.23.22/24
Configure IP address on the interface.
(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
(config-if)# label-switching
Enable label switching on the interface.
(config-if)#exit
Exit interface mode
(config)#interface eth2
Enter the Interface mode for eth2.
(config-if)# ip address 10.10.21.22/24
Configure IP address on the interface.
(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
(config-if)# label-switching
Enable label switching on the interface.
(config-if)#exit
Exit interface mode
OSPF Configuration
 
(config)#router ospf 100
Enter the Router OSPF mode.
(config-router)#network 22.22.22.22/32 area 0
Advertise loopback address in OSPF.
(config-router)#network 10.10.23.0/24 area 0
Advertise network address in OSPF.
(config-router)#network 10.10.21.0/24 area 0
Advertise network address in OSPF.
(config-router)#exit
Exit Router OSPF mode and return to Configure mode.
PE-2
Loopback Interface
 
#configure terminal
Enter configuration mode.
(config)#interface lo
Enter the Interface mode for the loopback interface.
(config-if)#ip address 23.23.23.23/32 secondary
Configure IP address on loopback interface.
(config-if)#exit
Exit interface mode
Global LDP
 
(config)#router ldp
Enter the Router LDP mode.
(config-router)#transport-address ipv4 23.23.23.23
Configure transport address
(config-router)#targeted-peer ipv4 21.21.21.21
Configure targeted peer
(config-router-targeted-peer)#end
Exit from router target peer and LDP mode
Interface Configuration
 
(config)#interface eth1
Enter the Interface mode for eth1.
(config-if)# ip address 10.10.21.23/24
Configure IP address on the interface.
(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
(config-if)# label-switching
Enable label switching on the interface.
(config-if)#exit
Exit interface mode
OSPF Configuration
 
(config)#router ospf 100
Enter the Router OSPF mode.
(config-router)#network 23.23.23.23/32 area 0
Advertise loopback address in OSPF.
(config-router)#network 10.10.21.0/24 area 0
Advertise network address in OSPF.
(config-router)#exit
Exit Router OSPF mode and return to Configure mode.
LDP VPLS Configuration
 
(config)#mpls vpls v1 25
Enter VPLS config mode
(config-vpls)#service-tpid dot1.ad
Service tp-id configuration.
(config-vpls)#signaling ldp
Define Signaling as LDP
(config-vpls-sig)#vpls-type vlan
Type VLAN configuration for VPLS
(config-vpls-sig)#vpls-peer 21.21.21.21
Configure VPLS Peer
(config-vpls-sig)# exit-signaling
Exit Signaling LDP mode
(config-vpls)#exit
Exit VPLS mode
(config)#mpls vpls v2 26
Enter VPLS config mode
(config-vpls)#service-tpid dot1.ad
Service tp-id configuration.
(config-vpls)#signaling ldp
Define Signaling as LDP
(config-vpls-sig)#vpls-type vlan
Type VLAN configuration for VPLS
(config-vpls-sig)#vpls-peer 21.21.21.21
Configure VPLS Peer
(config-vpls-sig)# exit-signaling
Exit Signaling LDP mode
(config-vpls)#exit
Exit VPLS mode
(config)#mpls vpls v3 27
Enter VPLS config mode
(config-vpls)#signaling ldp
Define Signaling as LDP
(config-vpls-sig)#vpls-type vlan
Type VLAN configuration for VPLS
(config-vpls-sig)#vpls-peer 21.21.21.21
Configure VPLS Peer
(config-vpls-sig)# exit-signaling
Exit Signaling LDP mode
(config-vpls)#exit
Exit VPLS mode
LDP VPLS Service Mapping Configuration
PE1
POP
 
#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
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
PUSH
 
(config)#service-template template3
Template configuration
(config-svc)# rewrite ingress push 300
Action to be performed for the default match .
(config-svc)#exit
Exit template configuration mode
Access port Configuration
 
(config)#interface eth1
Enter the Interface mode for ethernet1.
(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
Exit VPLS attachment-circuit mode
(config-if)#mpls-vpls v2 service-template template2
Bind the VPLS to the Access Interface.
(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)#exit
Exit VPLS attachment-circuit mode
(config-if)#exit
Exit Interface mode and return to Configure mode.
PE2
POP
 
#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
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
PUSH
 
(config)#service-template template3
Template configuration
(config-svc)# rewrite ingress push 300
Action to be performed for the default match .
(config-svc)#exit
Exit template configuration mode
Access port Configuration
 
(config)#interface eth2
Enter the Interface mode for ethernet1.
(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
Exit VPLS attachment-circuit mode
(config-if)#mpls-vpls v2 service-template template2
Bind the VPLS to the Access Interface.
(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)#exit
Exit VPLS attachment-circuit mode
(config-if)#exit
Exit Interface mode and return to Configure mode.
Validation
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 24320 24322 eth2 24320 2/Up 1 LDP Active N/A
26 23.23.23.23 24320 24320 eth2 24321 2/Up 2 LDP Active N/A
27 23.23.23.23 24320 24321 eth2 24322 2/Up 3 LDP Active N/A
 
#show ldp vpls
VPLS-ID Peer Address State Type Label-Sent Label-Rcvd
25 23.23.23.23 Up vlan 24322 24320
26 23.23.23.23 Up vlan 24320 24321
27 23.23.23.23 Up vlan 24321 24322
 
#show ldp vpls detail
VPLS Identifier : 25
Peer IP : 23.23.23.23
VC State : UP
VC Type : vlan
VC Label Sent : 24322
VC Label Received : 24320
 
VPLS Identifier : 26
Peer IP : 23.23.23.23
VC State : UP
VC Type : vlan
VC Label Sent : 24320
VC Label Received : 24321
 
VPLS Identifier : 27
Peer IP : 23.23.23.23
VC State : UP
VC Type : vlan
VC Label Sent : 24321
VC Label Received : 24322
 
#show mpls vpls detail
Virtual Private LAN Service Instance: v1, ID: 25
SIG-Protocol: LDP
Attachment-Circuit :UP
Learning: Enabled
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: eth1
Service-template : template1
Match criteria : 2024/2023
 
Mesh Peers:
23.23.23.23 (Up)
 
 
Virtual Private LAN Service Instance: v2, ID: 26
SIG-Protocol: LDP
Attachment-Circuit :UP
Learning: Enabled
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: 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: LDP
Attachment-Circuit :UP
Learning: Enabled
Group ID: 0, VPLS Type: Ethernet VLAN, Configured MTU: 1500
Description: none
service-tpid: dot1.q
Operating mode: Tagged
Svlan Id: 0
Svlan Tpid: 8100
Configured interfaces:
Interface: eth1
Service-template : template3
Match criteria : Accept all
Action type : Push
Action value : 300
 
Mesh Peers:
23.23.23.23 (Up)