mpls static label (L2VPN)
To configure static labels for MPLS L2VPN, use the mpls static label command in L2VPN cross-connect
P2P pseudowire configuration mode. To have MPLS assign a label dynamically, use the no form of this
command.
mpls static label local label remote value
no mpls static label local label remote value
Syntax Description
Configures a local pseudowire label. Range is 16 to 15999.
local label
Configures a remote pseudowire label. Range is 16 to 15999.
remote value
Command Default
The default behavior is a dynamic label assignment.
Command Modes
L2VPN cross-connect P2P pseudowire configuration
Command History
ModificationRelease
This command was introduced.Release 3.7.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Task ID
OperationsTask ID
read, writel2vpn
Examples
The following example shows how to configure static labels for MPLS L2VPN:
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
RP/0/0/CPU0:router(config-l2vpn-xc-p2p-pw)# mpls static label local 800 remote 500
Cisco IOS XR Virtual Private Network Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28460-01 57
Virtual Private Network Commands
mpls static label (L2VPN)