1
An Attachment Circuit (AC)
2
An second AC or a pseudowire
The pseudowire is identified by two keys: neighbor and pseudowire ID. There may be multiple pseudowires
going to the same neighbor. It is not possible to configure only a neighbor.
Note
All L2VPN configurations can be deleted using the no l2vpn command.
Task ID
OperationsTask ID
read, writel2vpn
Examples
This example shows a point-to-point cross-connect configuration (including pseudowire configuration):
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# l2vpn xconnect group l2vpn
RP/0/0/CPU0:router(config-l2vpn-xc)# p2p rtrA_to_rtrB
RP/0/0/CPU0:router(config-xc-p2p)# neighbor 10.1.1.2 pw-id 1000 pw-class class12
RP/0/0/CPU0:router(config-xc-p2p)# neighbor 10.1.1.3 pw-id 1001 pw-class class13
RP/0/0/CPU0:router(config-xc)# p2p rtrC_to_rtrD
RP/0/0/CPU0:router(config-xc-p2p)# neighbor 10.2.2.3 pw-id 200 pw-class class23
RP/0/0/CPU0:router(config-xc-p2p)# neighbor 10.2.2.4 pw-id 201 pw-class class24
This example shows a point-to-point cross-connect configuration (including pseudowire configuration):
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# l2vpn xconnect group l2vpn
RP/0/0/CPU0:router(config-l2vpn-xc)# p2p rtrA_to_rtrB
RP/0/0/CPU0:router(config-xc-p2p)# neighbor 10.1.1.2 pw-id 1000 pw-class foo
RP/0/0/CPU0:router(config-xc)# p2p rtrC_to_rtrD
RP/0/0/CPU0:router(config-xc-p2p)# neighbor 20.2.2.3 pw-id 200 pw-class bar1
Related Commands
DescriptionCommand
Enters L2VPN configuration mode.l2vpn, on page 49
Enters p2p configuration submode to configure point-to-point
cross-connects.
p2p, on page 74
Enters pseudowire class submode to define a pseudowire class
template.
pw-class (L2VPN), on page 65
Configures cross-connect groups.xconnect group, on page 151
Cisco IOS XR Virtual Private Network Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
60 OL-28460-01
Virtual Private Network Commands
neighbor (L2VPN)