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