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