LDP Pseudowire
LDP pseudowire provides support for emulating Ethernet connections over a Multiprotocol Label Switching (MPLS) network, and controlled using the extension of the MPLS Label Distribution Protocol (LDP) specified in RFC4447.
The patch panel command allows "patching” a local interface “connector” to an LDP pseudowire “connector”, terminating on the local switch. The LDP pseudowire itself is defined under the pseudowires configuration mode, under the mpls ldp configuration mode.
LDP pseudowire also supports locally patching traffic between two interfaces and is configured under the patch panel command.
Configuring LDP Pseudowire
Local-Remote Patch Configuration
To configure an LDP pseudowire,complete the following task.
Local-Local Patch Configuration
switch(config-patch)# patch example
switch(config-patch-example)# connector conn1 ethernet1
switch(config-patch-example)# connector conn2 ethernet2
switch(config-patch)# patch example2
switch(config-patch-example2)# connector conn1 ethernet1 dot1q vlan 100
switch(config-patch-example2)# connector conn2 ethernet2 dot1q vlan 200
switch(config)# ip routing
switch(config)# interface ethernet1
switch(config-if-Et1)# no switchport
switch(config)# interface ethernet2
switch(config-if-Et2)# no switchport
Additional Patch Configuration Commands
The shutdown configuration command can be used to disable a pseudowire patch.
switch(config-patch-example)# shutdown
Forwarding Behavior For Layer 2 Control Packets
Ethernet Tagged Mode (type 4) | Ethernet Raw Mode (type 5) | |
---|---|---|
STP | When STP is enabled, STP packets are terminated. Otherwise, they are forwarded. | Forwarded |
LLDP | Terminated | Forwarded |
LACP | Terminated | Terminated |
MACsec | Not supported | Forwarded |
In addition, custom Layer 2 Control Packet forwarding behavior for type 5 pseudowire can be configured using the Layer 2 Protocol Forwarding functionality.
LDP Pseudowire Limitations
When a subinterface has been configured with the same VLAN tag as a pseudowire connector on the same parent interface, or vice versa, only the first configured feature will be active.
When a port-based connector is used for a pseudowire or local cross-connect patch, dot1q-tagged packets will have the outer tag incorrectly removed on ingress/encap if any one of several other features are configured on the switch (on any interface) including Layer 2 subinterfaces, Dot1q Tunnel, VLAN Mapping, and VXLAN. The only workaround is to unconfigure these other features.
When a VLAN-based connector (or subinterface with dot1q encapsulation) is used for a pseudowire or local cross-connect patch, tagged packets will have incorrect tags after forwarding if any one of several other features are configured on the switch (on any interface) including Layer 2 subinterfaces, Dot1q Tunnel, VLAN Mapping, and VXLAN. The only workaround is to unconfigure these other features.
LDP Pseudowire Show Commands
Use the show patch panel command to display the overall status of the configured pseudowire patches.
switch# show patch panel
Patch Connector Status
--------- ------------------------------------ ----------
example 1: Ethernet3 Up
2: Port-Channel2
example2 1: Ethernet1 802.1Q VLAN 100 Up
2: LDP neighbor 1.1.1.1 PW ID 1111
example3 1: LDP neighbor 4.4.4.4 PW ID 1040 Up
2: Ethernet2
Use the show patch panel detail command to display the detailed status of the configured pseudowire patches.
switch# show patch panel detail
PW Fault Legend:
ET-IN - Ethernet receive fault
ET-OUT - Ethernet transmit fault
TUN-IN - Tunnel receive fault
TUN-OUT - Tunnel transmit fault
NF - Pseudowire not forwarding (other reason)
Patch: example, Status: Up
Connector 1: Ethernet3
Status: Up
Connector 2: Port-Channel2
Status: Up
Patch: example2, Status: Up
Connector 1: Ethernet1 802.1Q VLAN 100
Status: Up
Connector 2: LDP neighbor 1.1.1.1 PW ID 1111
Status: Up
Local MPLS label: 100032, Group ID: 0
MTU: 9000, 802.1Q VLAN request sent: -
Neighbor MPLS label: 900000, Group ID: 0x0
MTU: 9000, 802.1Q VLAN request received: -
PW type: 4 (tagged), Control word: N
Tunnel type: LDP, Tunnel index: 198
Patch: example3, Status: Up
Connector 1: LDP neighbor 4.4.4.4 PW ID 1040
Status: Up
Local MPLS label: 100002, Group ID: 0x0
MTU: 1500, 802.1Q VLAN request sent: -
Neighbor MPLS label: 400000, Group ID: 0x0
MTU: 9213, 802.1Q VLAN request received: -
PW type: 5 (raw), Control word: N
Tunnel type: LDP, Tunnel index: 2
Connector 2: Ethernet2
Status: Up
Use the show patch panel forwarding command to display the forwarding information for configured pseudowire connectors.
switch# show patch panel forwarding
Legend:
Type - Pseudowire type: 4 (tagged)
5 (raw)
CW - Control word used
In/Out Type CW VLAN Status Patch
---------------------------- ---- -- ---- ------ ------------
Et1 802.1Q VLAN 100 4 Up example2
Label 900000, LDP Tun 198
Et2 5 Up example3
Label 400000, LDP Tun 2
Et3 Up example
Po2
Po2 Up example
Et3
PW Label Out Source Type CW Status Patch
-------- --------------------- ------ ---- -- ------ ----------
100002 Et2 LDP 5 Up example3
100032 Et1 802.1Q VLAN 100 LDP 4 Up example2