l2vpn Pseudowire Switching Cisco
l2vpn Pseudowire Switching Cisco
l2vpn Pseudowire Switching Cisco
This feature module explains how to configure L2VPN Pseudowire Switching, which extends layer 2 virtual
private network (L2VPN) pseudowires across an interautonomous system (inter-AS) boundary or across two
separate multiprotocol label switching (MPLS) networks.
• Finding Feature Information, on page 1
• Restrictions for L2VPN Pseudowire Switching, on page 1
• Information About L2VPN Pseudowire Switching, on page 2
• How to Configure L2VPN Pseudowire Switching, on page 3
• How to Configure L2VPN Pseudowire Switching using the commands associated with the L2VPN
Protocol-Based CLIs feature, on page 6
• Configuration Examples for L2VPN Pseudowire Switching, on page 11
• Additional References, on page 14
• Feature Information for L2VPN Pseudowire Switching, on page 15
• You can ping the adjacent next-hop PE router. End-to-end LSP pings are not supported.
• Do not configure IP or Ethernet interworking on a router where L2VPN Pseudowire Switching is enabled.
Instead, configure interworking on the routers at the edge PEs of the network.
• The control word negotiation results must match. If either segment does not negotiate the control word,
the control word is disabled for both segments.
• AToM Graceful Restart is negotiated independently on each pseudowire segment. If there is a transient
loss of the LDP session between two AToM PE routers, packets continue to flow.
• Per-pseudowire quality of service (QoS) is not supported. Traffic Engineering (TE) tunnel selection is
supported.
• Attachment circuit interworking is not supported.
Note In this configuration, you are limited to two neighborcommands after entering the l2 vficommand.
>
SUMMARY STEPS
1. enable
2. configure terminal
3. l2 vfi name point-to-point
4. neighbor ip-address vcid encapsulation mpls | pw-class pw-class-name
5. exit
6. exit
7. show mpls l2transport vc [vcid [vc-id | [vc-id-min vc-id-max]] [interface name[local-circuit-id]]
[destination ip-address | name] [detail]
8. show vfi [vfi-name]
9. ping [protocol] [tag] {host-name| system-address}
DETAILED STEPS
Router> enable
Step 3 l2 vfi name point-to-point Creates a point-to-point Layer 2 virtual forwarding interface
(VFI) and enters VFI configuration mode.
Example:
Step 4 neighbor ip-address vcid encapsulation mpls | Sets up an emulated VC. Specify the IP address and the VC
pw-class pw-class-name ID of the remote router. Also specify the pseudowire class
to use for the emulated VC.
Example:
Note Only two neighborcommands are allowed for
Router(config-vfi)# neighbor 10.0.0.1 100 pw-class each l2 vfi point-to-point command.
mpls
Router(config-vfi)# exit
Router(config)# exit
Step 7 show mpls l2transport vc [vcid [vc-id | [vc-id-min Verifies that the L2VPN Pseudowire Switching session has
vc-id-max]] [interface name[local-circuit-id]] [destination been established.
ip-address | name] [detail]
Example:
Step 8 show vfi [vfi-name] Verifies that a point-to-point VFI has been established.
Example:
Step 9 ping [protocol] [tag] {host-name| system-address} When issued from the CE routers, this command verifies
end-to-end connectivity.
Example:
Examples
The following example displays the output of the show mpls l2transport vc command:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface pseudowire number
4. encapsulation mpls
5. neighbor peer-address vcid-value
6. exit
7. interface pseudowire number
8. encapsulation mpls
9. neighbor peer-address vcid-value
10. exit
11. l2vpn xconnect context context-name
12. member pseudowire interface-number
13. member ip-address vcid encapsulation mpls
14. member pseudowire interface-number
15. member ip-address vcid encapsulation mpls
16. exit
17. exit
18. show l2vpn atom vc [vcid [vc-id | vc-id-min vc-id-max]] [interface type number [local-circuit-id]]
[destination ip-address | name] [detail]
19. ping [protocol] [tag] {hostname| system-address}
DETAILED STEPS
Device> enable
Step 3 interface pseudowire number Specifies the pseudowire interface and enters interface
configuration mode.
Example:
Step 5 neighbor peer-address vcid-value Specifies the peer IP address and virtual circuit (VC) ID
value of the Layer 2 VPN (L2VPN) pseudowire.
Example:
Router(config-if)# exit
Step 7 interface pseudowire number Specifies the pseudowire interface and enters interface
configuration mode.
Example:
Step 9 neighbor peer-address vcid-value Specifies the peer IP address and virtual circuit (VC) ID
value of the Layer 2 VPN (L2VPN) pseudowire.
Example:
Router(config-if)# exit
Step 12 member pseudowire interface-number Specifies a member pseudowire to form a Layer 2 VPN
(L2VPN) cross connect.
Example:
Step 13 member ip-address vcid encapsulation mpls Specifies the devices that form a point-to-point Layer 2
VPN (L2VPN) virtual forwarding interface (VFI)
Example:
connection.
Device(config-xconnect)# member 10.0.0.1 123 Note Only two member commands are allowed for
encapsulation mpls each l2vpn xconnect context command.
Step 14 member pseudowire interface-number Specifies a member pseudowire to form a Layer 2 VPN
(L2VPN) cross connect.
Example:
Step 15 member ip-address vcid encapsulation mpls Specifies the devices that form a point-to-point Layer 2
VPN (L2VPN) virtual forwarding interface (VFI)
Example:
connection.
Device(config-xconnect)# member 10.0.0.2 124 Note Only two member commands are allowed for
encapsulation mpls each l2vpn xconnect context command.
Device(config-xconnect)# exit
Device(config)# exit
Step 18 show l2vpn atom vc [vcid [vc-id | vc-id-min vc-id-max]] Displays information about Any Transport over MPLS
[interface type number [local-circuit-id]] [destination (AToM) virtual circuits (VCs) and static pseudowires that
ip-address | name] [detail] have been enabled to route Layer 2 packets on a device.
Example:
Step 19 ping [protocol] [tag] {hostname| system-address} When issued from the CE routers, verifies end-to-end
connectivity.
Example:
Configuring
Use the following procedure to configure L2VPN Pseudowire Switching on each of the PE-agg routers.
Note In this configuration, you are limited to two neighborcommands after entering the l2 vficommand.
>
SUMMARY STEPS
1. enable
2. configure terminal
3. l2 vfi name point-to-point
4. neighbor ip-address vcid encapsulation mpls | pw-class pw-class-name
5. exit
6. exit
7. show mpls l2transport vc [vcid [vc-id | [vc-id-min vc-id-max]] [interface name[local-circuit-id]]
[destination ip-address | name] [detail]
8. show vfi [vfi-name]
9. ping [protocol] [tag] {host-name| system-address}
DETAILED STEPS
Router> enable
Step 4 neighbor ip-address vcid encapsulation mpls | Sets up an emulated VC. Specify the IP address and the VC
pw-class pw-class-name ID of the remote router. Also specify the pseudowire class
to use for the emulated VC.
Example:
Note Only two neighborcommands are allowed for
Router(config-vfi)# neighbor 10.0.0.1 100 pw-class each l2 vfi point-to-point command.
mpls
Router(config-vfi)# exit
Router(config)# exit
Step 7 show mpls l2transport vc [vcid [vc-id | [vc-id-min Verifies that the L2VPN Pseudowire Switching session has
vc-id-max]] [interface name[local-circuit-id]] [destination been established.
ip-address | name] [detail]
Example:
Step 8 show vfi [vfi-name] Verifies that a point-to-point VFI has been established.
Example:
Step 9 ping [protocol] [tag] {host-name| system-address} When issued from the CE routers, this command verifies
end-to-end connectivity.
Example:
Examples
The following example displays the output of the show mpls l2transport vc command:
CE1 CE2
CE1 CE2
! !
! !
boot-start-marker boot-start-marker
boot-end-marker boot-end-marker
! !
! !
ip subnet-zero ip subnet-zero
ip cef ip cef
no ip domain-lookup no ip domain-lookup
! !
no ip directed-broadcast no ip directed-broadcast
! !
ip classless ip classless
! !
control-plane control-plane
! !
CE1 CE2
exec-timeout 0 0 exec-timeout 0 0
login login
! !
end end
Additional References
Related Documents
Cisco IOS commands Cisco IOS Master Command List, All Releases
L2VPN pseudowire redundancy “L2VPN Pseudowire Redundancy” feature module in the MPLS Layer 2
VPNs Configuration Guide.
MPLS traffic engineering “MPLS Traffic Engineering Fast Reroute Link and Node Protection” feature
module in the MPLS Traffic Engineering: Path, Link, and Node Protection
Configuration Guide (part of the Multiprotocol Label Switching
Configuration Guide Library)
Standards
Standard Title
Standard Title
MIBs
Pseudowire Emulation Edge-to-Edge MIBs To locate and download MIBs for selected platforms, Cisco
for Ethernet, Frame Relay, and ATM software releases, and feature sets, use Cisco MIB Locator
Services found at the following URL:
http://www.cisco.com/go/mibs
Technical Assistance
Description Link
L2VPN Pseudowire Cisco IOS XE The L2VPN Pseudowire Switching feature extends layer 2 virtual
Switching Release 2.4 private network (L2VPN) pseudowires across an interautonomous
system (inter-AS) boundary or across two separate multiprotocol
label switching (MPLS) networks.
In Cisco IOS XE Release 2.4, The L2VPN Pseudowire Switching
feature is supported with Ethernet over MPLS.
The following commands were introduced or modified: l2 vfi
point-to-point, neighbor(L2VPN Pseudowire Switching), show
vfi.