OcNOS SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration : Mapping RSVP Tunnel Name to L2VPN Service
Mapping RSVP Tunnel Name to L2VPN Service
This chapter shows configurations of mapping of rsvp tunnel-name to L2VPN service.
An MPLS Layer 2 Virtual Circuit (VC) is a point-to-point Layer 2 connection transported via MPLS on the service provider's network. The Layer 2 circuit is transported over a single Label Switched Path (LSP) tunnel between two Provider Edge (PE) routers
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. A set of Martini circuits is grouped by a common VPLS identifier to achieve this service objective
Overview
This topology will be applicable for both VPWS and VPLS services.
Mapping of RSVP Tunnel-name to L2VPN services
Configuring the VC:
Note: Loopback addresses being used should be advertised through OSPF, or should be statically routed.
1. Configure the IP address and OSPF for the PE1, P (Provider), and PE2 routers.
2. Configure MPLS and LDP on PE1, P, and PE2, and LDP targeted peer for the PE1 and PE2 routers. (If RSVP is used for configuring trunks, LDP must be configured on PE1 and PE2, and RSVP must be configured on PE1, P, and PE2).
3. Configure the VC with trunk-name.
4. Bind the customer interface to the VC.
Configure IP Address and OSPF on Routers
Configure the IP addresses and OSPF on the PE1, P, and PE2 routers.
PE1
 
#configure terminal
Enter configure mode.
(config)#interface lo
Specify the loopback interface (lo0) to be configured.
(config-if)#ip address 1.1.1.1/32 secondary
Set the IP address of the loopback interface to 1.1.1.1/32.
(config-if)#exit
Exit interface mode.
(config)#interface xe1
Specify the interface ( xe1) to be configured.
(config-if)#label-switching
Enable label switching on interface xe1.
(config-if)#ip address 10.1.1.1/24
Set the IP address of the interface to 10.1.1.1/24.
(config-if)#exit
Exit interface mode.
(config)#router ospf 100
Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.
(config-router)#network 10.1.1.0/24 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface.
(config-router)#network 1.1.1.1/32 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface.
(config-router)#commit
Commit the transaction.
P
 
#configure terminal
Enter configure mode.
(config)#interface lo
Specify the loopback interface (lo0) to be configured.
(config-if)#ip address 9.9.9.9/32 secondary
Set the IP address of the loopback interface to 9.9.9.9/32.
(config-if)#exit
Exit interface mode.
(config)#interface xe1
Specify the interface (xe1) to be configured.
(config-if)#label-switching
Enable label switching on interface xe1.
(config-if)#ip address 10.1.1.2/24
Set the IP address of the interface to 10.1.1.2/24.
(config-if)#exit
Exit interface mode.
(config)#interface xe13
Specify the interface (xe13) to be configured.
(config-if)#label-switching
Enable label switching on interface xe13.
(config-if)#ip address 20.1.1.1/24
Set the IP address of the interface to 20.1.1.1/24.
(config-if)#exit
Exit interface mode.
(config)#router ospf 100
Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.
(config-router)#network 10.1.1.0/24 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface.
(config-router)#network 20.1.1.0/24 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface.
(config-router)#network 9.9.9.9/32 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface.
(config-router)#commit
Commit the transaction.
PE2
 
#configure terminal
Enter configure mode.
(config)#interface lo
Specify the loopback interface (lo0) to be configured.
(config-if)#ip address 2.2.2.2/32 secondary
Set the IP address of the loopback interface to 2.2.2.2/32.
(config-if)#exit
Exit interface mode.
(config)#interface xe13
Specify the interface (xe13) to be configured.
(config-if)#label-switching
Enable label switching on interface xe13.
(config-if)#ip address 20.1.1.2/24
Set the IP address of the interface to 20.1.1.2/24.
(config-if)#exit
Exit interface mode.
(config)#router ospf 100
Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.
(config-router)#network 20.1.1.0/24 area 0
Define the interface on which OSPF runs, and associate the area ID (0) with the interface.
(config-router)#network 2.2.2.2/32 area 0
Define the interface on which OSPF runs, and associate the area ID (0) with the interface.
(config-router)#commit
Commit the transaction.
Configure MPLS, RSVP, and LDP Targeted Peer on Routers
Configure MPLS and LDP on PE1, P, and PE2, and LDP targeted peers on PE1 and PE2.
Note: If RSVP is used for configuring trunks, LDP must be configured on PE1 and PE2, and RSVP must be configured on PE1, P, and PE2.
PE1
 
#configure terminal
Enter configure mode.
(config)#router ldp
Enter the Router mode.
(config-router)#router-id 1.1.1.1
Configure the router-id
(config-router)#transport-address ipv4 1.1.1.1
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface.
(config-router)#targeted-peer ipv4 2.2.2.2
Specify the targeted LDP peer on PE1.
(config-router-targeted-peer)# exit
Exit the Router targeted peer mode.
(config-router)#exit
Exit the Router mode.
(config)#router rsvp
Enter RSVP configuration mode for the router.
(config-router)#exit
Exit configuration mode of the router.
(config)#interface xe1
Specify the interface (xe1) to be configured.
(config-if)#enable-ldp ipv4
Enable LDP on interface xe1.
(config-if)#enable-rsvp
Enable RSVP on the interface.
(config-if)#exit
Exit interface mode.
(config)#rsvp-trunk t2
Configure RSVP trunk t2
(config-trunk)#to 2.2.2.2
Configure PE2 as the end of trunk
(config-trunk)#commit
Commit the transaction.
P
 
#configure terminal
Enter configure mode.
(config)#router rsvp
Enter RSVP configuration mode for the router.
(config)#exit
Exit configuration mode.
(config)#interface xe1
Specify the interface (xe1) to be configured.
(config-if)#enable-rsvp
Enable RSVP on the interface.
(config-if)#exit
Exit interface mode.
(config)#interface xe13
Specify the interface (xe13) to be configured.
(config-if)#enable-rsvp
Enable RSVP on the interface.
(config-if)#exit
Exit interface mode.
(config)#rsvp-trunk t5
Configure RSVP trunk t5
(config-trunk)#to 2.2.2.2
Configure PE2 as the end of trunk
(config-trunk)#exit
Exit configuration mode
(config)#rsvp-trunk t6
Configure RSVP trunk t6
(config-trunk)#to 1.1.1.1
Configure PE2 as the end of trunk
(config-trunk)#commit
Commit the transaction.
PE2
 
#configure terminal
Enter configure mode.
(config)#router ldp
Enter the Router mode.
(config-router)#router-id 2.2.2.2
Configure the router-id
(config-router)#transport-address ipv4 2.2.2.2
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface.
(config-router)#targeted-peer ipv4 1.1.1.1
Specify the targeted LDP peer on PE2.
(config-router-targeted-peer)# exit
Exit the Router targeted peer mode.
(config-router)#exit
Exit the Router mode.
(config)#router rsvp
Enter RSVP configuration mode for the router.
(config-router)#exit
Exit configuration mode of the router.
(config)#interface xe13
Specify the interface(xe13) to be configured.
(config-if)#enable-ldp ipv4
Enable LDP on interface xe13.
(config-if)#enable-rsvp
Enable RSVP on the interface.
(config-if)#exit
Exit interface mode.
(config)#rsvp-trunk t3
Configure RSVP trunk t3
(config-trunk)#to 1.1.1.1
Configure PE1 as the end of trunk
(config-trunk)#commit
Commit the transaction.
Configure VC
Configure the VC. Each VC ID uniquely identifies the Layer-2 circuit among all the Layer-2 circuits.
Note: Both PE routers (endpoints) must be configured with the same VC-ID (100 in this example).
PE1
 
#configure terminal
Enter configure mode.
(config)#mpls l2-circuit t2 100 2.2.2.2
Configure the VC for PE2. In this example, t2 is the VC name, 200 is the VC ID, and 2.2.2.2 is the VC endpoint IP address
(config-pseudowire)#tunnel-name t2
Configure the RSVP Trunk name as t2
(config-pseudowire)#exit
Exit pseudowire config mode.
(config)#mpls l2-circuit t3 300 2.2.2.2 mode
raw
Configure the VC for PE2. In this example, t3 is the VC-name, 300 is the VC ID and 2.2.2.2 is the VC endpoint IP address
(config-pseudowire)#tunnel-name t2
Configure RSVP Trunk name as t2
(config-pseudowire)#commit
Commit the transaction.
PE2
 
#configure terminal
Enter configure mode.
(config)#mpls l2-circuit t2 100 1.1.1.1
Configure the VC for PE1. In this example, t2 is the VC name, 200 is the VC ID, and 1.1.1.1 is the VC endpoint IP address
(config-pseudowire)#tunnel-name t3
Configure RSVP Tunnel name as t3
(config-pseudowire)#exit
Exit pseudowire config mode.
(config)#mpls l2-circuit t2 100 1.1.1.1
Configure the VC for PE1. In this example, t2 is the VC name, 200 is the VC ID, and 1.1.1.1 is the VC endpoint IP address using rsvp trunk name t2
(config-pseudowire)#tunnel-name t3
Configure RSVP Tunnel name as t2
(config-pseudowire)#exit
Exit pseudowire config mode.
(config)#mpls l2-circuit t3 300 1.1.1.1 mode raw
Configure the VC for PE1. In this example, t3 is the VC name, 300 is the VC ID, and 1.1.1.1 is the VC endpoint IP address
(config-pseudowire)#tunnel-name t3
Configure RSVP Tunnel name as t3
(config-pseudowire)#commit
Commit the transaction.
Bind Customer Interface to VC
The following configuration allows only VLAN 2 and 3 traffic.
PE1
 
(config)#service-template ST1
Create a service template ST1
(config-svc)#match outer-vlan 2
Allow VLAN 2 traffic on this VC.
(config-svc)#exit
Exit the service template mode
(config)#service-template ST2
Create a service template ST2
(config-svc)#match outer-vlan 3
Allow VLAN 3 traffic on this VC.
(config-svc)#exit
Exit the service template mode
(config)#interface xe15
Specify the interface (xe15) to be configured.
(config-if)#switchport
Switch to Layer-2 mode.
(config-if)#mpls-l2-circuit t2 service-template ST1
Bind the interface to the VC with service template.
(config-if)#mpls-l2-circuit t3 service-template ST2
Bind the interface to the VC with service template.
(config-if)#commit
Commit the transaction.
PE2
 
(config)#service-template ST1
Create a service template ST1
(config-svc)#match outer-vlan 2
Allow VLAN 2 traffic on this VC.
(config-svc)#exit
Exit the service template mode
(config)#service-template ST2
Create a service template ST2
(config-svc)#match outer-vlan 3
Allow VLAN 3 traffic on this VC.
(config-svc)#exit
Exit the service template mode
(config)#interface xe12
Specify the interface (xe12) to be configured.
(config-if)#switchport
Switch to Layer-2 mode.
(config-if)#mpls-l2-circuit t2 service-template ST1
Bind the interface to the VC with service template.
(config-if)#mpls-l2-circuit t3 service-template ST2
Bind the interface to the VC with service template.
(config-if)#commit
Commit the transaction.
Validation
Use the show ldp mpls-l2-circuit (Control Plane) command, and the show mpls vc-table (Forwarding Plane) command, to display complete information about the Layer 2 VC.
If the VC State is UP in the output from the show ldp mpls-l2 circuit command, and the Status is Active in the output of the show mpls vc-table command, a ping from CE1 to CE2 should be successful.
Below are the sample output for VPWS service with Tunnel name:
PE1#show mpls vc-table
VC-ID Vlan-ID Inner-Vlan-ID Access-Intf Network-Intf Out Label Tunnel-Label Nexthop Status
100 N/A N/A xe15 xe1 24320 24321 2.2.2.2 Active
300 N/A N/A xe15 xe1 24321 24321 2.2.2.2 Active
PE1#
 
PE1#show ldp mpls-l2-circuit
Transport Client VC VC Local Remote Destination
VC ID Binding State Type VC Label VC Label Address
300 xe15 UP Ethernet 24321 24321 2.2.2.2
100 xe15 UP Ethernet VLAN 24320 24320 2.2.2.2
PE1#
 
PE1#show mpls l2-circuit
MPLS Layer-2 Virtual Circuit: t2, id: 100 PW-INDEX: 1 Tunnel-Name: t2
Endpoint: 2.2.2.2
Control Word: 0
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe15
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST1
Match criteria : 2
 
 
MPLS Layer-2 Virtual Circuit: t3, id: 300 PW-INDEX: 2 Tunnel-Name: t2
Operating mode: Raw
Endpoint: 2.2.2.2
Control Word: 0
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe15
Virtual Circuit Type: Ethernet
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST2
Match criteria : 3
 
PE1#show ldp mpls-l2-circuit detail
PW ID: 300, VC state is up
Access IF: xe5,up,AC state is up
Session IF: xe2, state is up
Destination: 2.2.2.2, Peer LDP Ident: 2.2.2.2
Local vctype: ethernet, remote vctype :ethernet
Local groupid: 0, remote groupid: 0
Local label: 26881, remote label: 53760
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:02:12
 
PW ID: 100, VC state is up
Access IF: xe5,up,AC state is up
Session IF: xe2, 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: 26880, remote label: 53761
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:02:12
 
PE2
 
PE2#sh mpls vc-table
VC-ID Vlan-ID Inner-Vlan-ID Access-Intf Network-Intf Out Label Tunnel-Label Nexthop Status
100 N/A N/A xe12 xe3 26880 25600 1.1.1.1 Active
300 N/A N/A xe12 xe3 26881 25600 1.1.1.1 Active
PE2#sh ldp mpls-l2-circuit
Transport Client VC VC Local Remote Destination
VC ID Binding State Type VC Label VC Label Address
300 xe12 UP Ethernet 53760 26881 1.1.1.1
100 xe12 UP Ethernet VLAN 53761 26880 1.1.1.1
 
PE2#sh mpls l2-circuit
MPLS Layer-2 Virtual Circuit: t2, id: 100 PW-INDEX: 1 service-tpid: dot1.q
Tunnel-Name: t3
Endpoint: 1.1.1.1
Control Word: 0
Flow Label Status: Disabled, Direction: None, Static: No
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST1
Match criteria : 2
 
MPLS Layer-2 Virtual Circuit: t3, id: 300 PW-INDEX: 2 service-tpid: dot1.q
Tunnel-Name: t3
 
Operating mode: Raw
Endpoint: 1.1.1.1
Control Word: 0
Flow Label Status: Disabled, Direction: None, Static: No
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST2
Match criteria : 3
 
PE2#show ldp mpls-l2-circuit detail
PW ID: 300, VC state is up
Access IF: xe12,up,AC state is up
Session IF: xe3, state is up
Destination: 1.1.1.1, Peer LDP Ident: 1.1.1.1
Local vctype: ethernet, remote vctype :ethernet
Local groupid: 0, remote groupid: 0
Local label: 53760, remote label: 26881
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:05:34
 
PW ID: 100, VC state is up
Access IF: xe12,up,AC state is up
Session IF: xe3, state is up
Destination: 1.1.1.1, Peer LDP Ident: 1.1.1.1
Local vctype: vlan, remote vctype :vlan
Local groupid: 0, remote groupid: 0
Local label: 53761, remote label: 26880
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:05:34
 
 
 
These additional commands can also be used to display information about the Layer 2 virtual circuits.
show ldp mpls-l2-circuit detail
show ldp mpls-l2-circuit VC-ID
show ldp mpls-l2-circuit VC-ID detail
show mpls l2-circuit
 
Configuring a MPLS Static Layer-2 VC
1. Configure the VC with the manual option using tunnel name
2. Configure the VC FIB entry.
3. Bind the VC; all steps are in the configurations that follow.
PE1
 
#configure terminal
Enter configure mode.
PE1(config)#mpls l2-circuit t5 500 2.2.2.2
Configure the VC for PE1
PE1(config-pseudowire)#tunnel-name t2
Configure the RSVP Tunnel name as t2
PE1(config-pseudowire)#manual-pseudowire
Configure the VC as manual (no signaling is used)
PE1(config-pseudowire)#exit
Exit pseudowire config mode.
PE1(config)#service-template ST5
Create a service template ST5
PE1(config-svc)#match outer-vlan 5
Configure single match criteria vlan 5
PE1(config-svc)#exit
Exit the service template mode
PE1(config)#interface xe15
Access interface xe15
(config-if)#switchport
Switch to Layer-2 mode.
PE1(config-if)#mpls-l2-circuit t5 service-template ST5
Bind the interface to the VC with service template.
PE1(config-if)#exit
Exit interface mode
PE1(config-if)#commit
Commit the transaction.
PE1(config)#mpls l2-circuit-fib-entry 500 1000 2000 2.2.2.2 xe1 xe15
Add an FTN entry; where 1000 is the incoming label, 2000 is the outgoing label, 2.2.2.2 is the endpoint, xe1 is the Provider facing interface name, and xe15 is access interface name
PE1(config)#commit
Commit the transaction.
PE2
 
#configure terminal
Enter configure mode.
PE2(config)#mpls l2-circuit t5 500 1.1.1.1
Configure the VC for PE2
PE2(config-pseudowire)#tunnel-name t3
Configure RSVP Tunnel name as t3
PE2(config-pseudowire)#manual-pseudowire
Configure VC as manual (no signaling used)
PE2(config-pseudowire)#exit
Exit pseudowire config mode.
PE2(config)#service-template ST5
Create a service template ST5
PE2(config-svc)#match outer-vlan 5
Configure single match criteria vlan 5
PE2(config-svc)#exit
Exit the service template mode
PE2(config)#interface xe12
Access interface xe12
(config-if)#switchport
Switch to Layer-2 mode.
PE2(config-if)#mpls-l2-circuit t5 service-template ST5
Bind the interface to the VC with service template.
PE2(config-if)#exit
Exit interface mode.
PE2(config-if)#commit
Commit the transaction.
PE1(config)#mpls l2-circuit-fib-entry 500 2000 1000 1.1.1.1 xe13 xe12
Add an FTN entry; where 2000 is the incoming label, 1000 is the outgoing label, 1.1.1.1 is the endpoint, xe12 is the Provider facing interface name, and xe13 access interface name
PE1(config)#commit
Commit the transaction.
PE2(config)#exit
Exit configure mode
Validation
This example shows number of configured VCs and its status.
PE1#show mpls vc-table
VC-ID Vlan-ID Inner-Vlan-ID Access-Intf Network-Intf Out Label Tunnel-Label Nexthop Status
100 N/A N/A xe15 xe1 24320 24321 2.2.2.2 Active
300 N/A N/A xe15 xe1 24321 24321 2.2.2.2 Active
500 N/A N/A xe15 xe1 2000 24321 2.2.2.2 Active
 
PE1#show mpls l2-circuit
MPLS Layer-2 Virtual Circuit: t2, id: 100 PW-INDEX: 1 Tunnel-Name: t2
Endpoint: 2.2.2.2
Control Word: 0
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe15
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST1
Match criteria : 2
 
 
MPLS Layer-2 Virtual Circuit: t3, id: 300 PW-INDEX: 2 Tunnel-Name: t2
Operating mode: Raw
Endpoint: 2.2.2.2
Control Word: 0
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe15
Virtual Circuit Type: Ethernet
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST2
Match criteria : 3
 
 
MPLS Layer-2 Virtual Circuit: t5, id: 500 PW-INDEX: 3 Tunnel-Name: t2
Endpoint: 2.2.2.2
Control Word: 0
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe15
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST5
Match criteria : 5
 
PE1#show ldp mpls-l2-circuit detail
PW ID: 300, VC state is up
 
Access IF: xe15,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: ethernet, remote vctype :ethernet
Local groupid: 0, remote groupid: 0
Local label: 26881, remote label: 53760
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:15:48
PW ID: 100, VC state is up
Access IF: xe5,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: 26880, remote label: 53761
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:15:48
 
PE2
OcNOS#sh mpls vc-table
 
VC-ID Vlan-ID Inner-Vlan-ID Access-Intf Network-Intf Out Label Tunnel-Label Nexthop Status
100 N/A N/A xe12 xe3 26880 25600 1.1.1.1 Active
300 N/A N/A xe12 xe3 26881 25600 1.1.1.1 Active
500 N/A N/A xe12 xe3 1000 25600 1.1.1.1 Active
PE2#sh mpls l2-circuit
 
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST1
Match criteria : 2
 
MPLS Layer-2 Virtual Circuit: t3, id: 300 PW-INDEX: 2 service-tpid: dot1.q
Tunnel-Name: t3
Operating mode: Raw
Endpoint: 1.1.1.1
Control Word: 0
Flow Label Status: Disabled, Direction: None, Static: No
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST2
Match criteria : 3
 
MPLS Layer-2 Virtual Circuit: t5, id: 500 PW-INDEX: 3 service-tpid: dot1.q
Tunnel-Name: t3
Endpoint: 1.1.1.1
Control Word: 0
Flow Label Status: Disabled, Direction: None, Static: No
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST5
Match criteria : 5
 
OcNOS#show ldp mpls-l2-circuit detail
PW ID: 300, VC state is up
Access IF: xe12,up,AC state is up
Session IF: xe3, state is up
Destination: 1.1.1.1, Peer LDP Ident: 1.1.1.1
Local vctype: ethernet, remote vctype :ethernet
Local groupid: 0, remote groupid: 0
Local label: 53760, remote label: 26881
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
 
MPLS Layer-2 Virtual Circuit: t2, id: 100 PW-INDEX: 1 service-tpid: dot1.q
Tunnel-Name: t3
Endpoint: 1.1.1.1
Control Word: 0
Flow Label Status: Disabled, Direction: None, Static: No
 
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST1
Match criteria : 2
 
MPLS Layer-2 Virtual Circuit: t3, id: 300 PW-INDEX: 2 service-tpid: dot1.q
Tunnel-Name: t3
Operating mode: Raw
Endpoint: 1.1.1.1
Control Word: 0
Flow Label Status: Disabled, Direction: None, Static: No
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST2
 
Match criteria : 3
MPLS Layer-2 Virtual Circuit: t5, id: 500 PW-INDEX: 3 service-tpid: dot1.q
Tunnel-Name: t3
Endpoint: 1.1.1.1
Control Word: 0
Flow Label Status: Disabled, Direction: None, Static: No
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe12
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : ST5
 
Match criteria : 5
OcNOS#show ldp mpls-l2-circuit detail
PW ID: 300, VC state is up
Access IF: xe12,up,AC state is up
Session IF: xe3, state is up
Destination: 1.1.1.1, Peer LDP Ident: 1.1.1.1
Local vctype: ethernet, remote vctype :ethernet
Local groupid: 0, remote groupid: 0
Local label: 53760, remote label: 26881
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:17:41
 
PW ID: 100, VC state is up
Access IF: xe12,up,AC state is up
Session IF: xe3, state is up
Destination: 1.1.1.1, Peer LDP Ident: 1.1.1.1
Local vctype: vlan, remote vctype :vlan
Local groupid: 0, remote groupid: 0
Local label: 53761, remote label: 26880
Local MTU: 1500, Remote MTU: 1500
Local Control Word: disabled Remote Control Word: Not-Applicable Current use: disabled
Local Flow Label Direction: Disabled, Static: Disabled
Remote Flow Label Direction: Disabled, Static: Disabled
Local PW Status Capability : disabled
Remote PW Status Capability : disabled
Current PW Status TLV : disabled
MPLS VC UpTime : 00:17:41
 
These additional commands can also be used to display information about the Layer 2 virtual circuits.
show ldp mpls-l2-circuit detail
show ldp mpls-l2-circuit VC-ID
show ldp mpls-l2-circuit VC-ID detail
show mpls l2-circuit
Configure Dynamic VPLS
PE1: 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 2.2.2.2 tunnel-name t2
Configure VPLS Peer with trunk-name t2
(config-vpls-sig)#exit
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 ethernet
Type ethernet configuration for VPLS
(config-vpls-sig)#vpls-peer 2.2.2.2 tunnel-name t2
Configure VPLS Peer
(config-vpls-sig)#commit
Commit the transaction.
(config-vpls)#exit
Exit VPLS mode
PE2: 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 1.1.1.1 tunnel-name t3
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 ethernet
Type ethernet configuration for VPLS
(config-vpls-sig)#vpls-peer 1.1.1.1 tunnel-name t3
Configure VPLS Peer with tunnel-name t2
(config-vpls-sig)#commit
Commit the transaction.
(config-vpls)#exit
Exit VPLS mode
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)#split-horizon group access1
Configure split-horizon group on VPLS
(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)#split-horizon group access1
Configure split-horizon group on VPLS
(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
Configure Static VPLS
PE1: LDP VPLS Configuration
 
(config)#mpls vpls v3 27
Enter VPLS config mode
(config-vpls)#vpls-peer 2.2.2.2 tunnel-name t2 manual
Configure VPLS Peer with trunk-name t2 with manual option
(config-vpls)#exit
Exit VPLS mode
(config)#service-template vpls1
Template configuration
(config-svc)# match outer-vlan 1000
Allow VLAN 1000 traffic on this VC
(config-svc)#exit
Exit service template mode
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 v3 service-template vpls1
Bind the VPLS to the Access Interface.
(config-if-vpls)#split-horizon group access1
Configure split-horizon group on VPLS
(config-if-vpls)#exit-if-vpls
Exit VPLS attachment-circuit mode
(config-if)#exit
Exit from the interface mode
(config)#vpls fib-entry 27 peer 2.2.2.2 3000 xe1 4000
Configure VPLS FIB entry for VPLS peer PE2
(config)#commit
Commit the transaction.
PE2: LDP VPLS Configuration
 
(config)#mpls vpls v3 27
Enter VPLS config mode
(config-vpls)#vpls-peer 1.1.1.1 tunnel-name t3 manual
Configure static VPLS Peer with tunnel-name t3
(config-vpls)#exit
Exit VPLS mode
(config)#service-template vpls1
Template configuration
(config-svc)# match outer-vlan 1000
Allow VLAN 1000 traffic on this VC
(config-svc)#exit
Exit service template mode
PE2: Access port Configuration
 
(config)#interface xe12
Enter the access interface xe12
(config-if)#switchport
Configure interface as a layer 2 port.
(config-if)#mpls-vpls v3 service-template vpls1
Bind the VPLS to the Access Interface.
(config-if-vpls)#split-horizon group access1
Configure split-horizon group on VPLS
(config-if-vpls)#exit-if-vpls
Exit VPLS attachment-circuit mode
(config-if)#exit
Exit interface mode.
(config)#vpls fib-entry 27 peer 1.1.1.1 4000 xe13 3000
Configure VPLS FIB entry for VPLS peer PE1.
(config)#commit
Commit the transaction.
Validation
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
27 2.2.2.2 24321 3000 xe1 4000 2/Up 6 STATIC Active
 
PE1#show mpls vpls v3 detail
Virtual Private LAN Service Instance: v3, ID: 27
SIG-Protocol: STATIC
Attachment-Circuit :UP
Learning: Enabled
Control-Word: Disabled
Group ID: 0, Configured MTU: 1500
Description: none
service-tpid: dot1.q
Operating mode: Raw
Configured interfaces:
Interface: xe15
Service-template : vpls1
Match criteria : 1000
 
Mesh Peers:
2.2.2.2 (Up)
Tunnel-Name: t2
 
PE2#
 
PE2#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
27
2.2.2.2
24321
3000
xe1
4000
2/Up
6
STATIC
Active
PE2#
PE2#sh mpls vpls v3 detail
Virtual Private LAN Service Instance: v3, ID: 27 SIG-Protocol: STATIC
Attachment-Circuit :UP Learning: Enabled Control-Word: Disabled
Group ID: 0, Configured MTU: 1500 Description: none
service-tpid: dot1.q Operating mode: Raw Configured interfaces:
Interface: xe15
Service-template : vpls1 Match criteria : 1000
 
Mesh Peers:
2.2.2.2 (Up) Tunnel-Name: t2