This chapter describes the commands that you will use to configure and use Multiprotocol Label
Switching (MPLS) forwarding.
For detailed information about MPLS concepts, configuration tasks, and examples, refer to the
Cisco IOS XR Multiprotocol Label Switching Configuration Guide.
To clear (set to zero) the MPLS forwarding counters, use the clear mpls forwarding counters command
in EXEC mode.
clear mpls forwarding counters
Syntax DescriptionThis command has no arguments or keywords.
Command ModesEXEC
MPLS Forwarding Commands on Cisco IOS XR Software
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2No modification.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the clear mpls forwarding counters command to set all MPLS forwarding counters to zero so that
you can easily see future changes.
To configure the behavior controlling the propagation of the IP Time-To-Live (TTL) field to and from
the MPLS header, use the mpls ip-ttl-propagate command in global configuration mode. To return to
the default behavior, use the no form of this command.
mpls ip-ttl-propagate disable
no mpls ip-ttl-propagate
MPLS Forwarding Commands on Cisco IOS XR Software
Syntax Description
DefaultsEnabled
Command ModesGlobal configuration
Command History
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
disableStops the propagation of IP TTL to and from the MPLS header.
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
By default, the IP TTL is propagated to the MPLS header when IP packets enter the MPLS domain.
Within the MPLS domain, the MPLS TTL is decremented at each MPLS hop. When an MPLS
encapsulated IP packet exits the MPLS domain, the MPLS TTL is propagated to the IP header. When
propagation is disabled, the MPLS TTL is set to 255 during the label imposition phase and the IP TTL
is not altered.
Task ID
ExamplesThe following example shows how to disable IP TTL propagation:
To configure the range of local labels available for use on packet interfaces, use the mpls label range
command in global configuration mode. To return to the default behavior, use the no form of this
command.
mpls label range [table table-id] minimummaximum
no mpls label range [table table-id] minimum maximum
mpls label range
Syntax Description
Defaultstable-id: 0
Command ModesGlobal configuration
Command History
tabletable-id(Optional) Identifies a specific label table; the global label table has table-id = 0. If
no table is specified, the global table is assumed. Currently, you can specify table 0
only.
minimumSmallest allowed label in the label space. Default is 16.
maximumLargest allowed label in the label space. Default is 1048575.
minimum: 16
maximum: 1048575
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
The label range defined by the mpls label range command is used by all MPLS applications that allocate
local labels (for dynamic label switching Label Distribution Protocol [LDP], MPLS traffic engineering,
and so on).
Labels 0 through 15 are reserved by the Internet Engineering Task Force (IETF) (see
draft-ietf-mpls-label-encaps-07.txt for details) and cannot be included in the range using the mpls label range command.
ExamplesThe following example shows how to configure the size of the local label space using a minimum of 200
and a maximum of 120000. The new range takes effect immediately. Labels outside the current range and
which are allocated by MPLS applications remain in circulation until released.
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# mpls label range 200 120000
Related CommandsCommandDescription
show mpls label rangeDisplays the range of the MPLS local label space.
Syntax Descriptiondebug(Optional) Displays the failure reason if “?” is displayed in the “Byte
Switched” field of output. The typical reasons for failure to obtain statistics
include Communication Error b/w global and per-node forwarding process,
No such entry in per-node forwarding, and H/W stats error.
detail(Optional) Displays information in long form (includes length of
encapsulation, length of Media Access Control [MAC] string, maximum
transmission unit [MTU], Packet switched, and label stack).
interface(Optional) Displays information for the specified interface.
type Interface type. For more information, use the question mark (?) online help
function.
instanceEither a physical interface instance or a virtual interface instance as follows:
• Physical interface instance. Naming notation is rack/slot/module/port
and a slash between values is required as part of the notation.
–
rack: Chassis number of the rack.
–
slot: Physical slot number of the modular services card or line card.
–
module: Module number. A physical layer interface module
(PLIM) is always 0.
–
port: Physical port number of the interface.
NoteIn references to a Management Ethernet interface located on a route
processor card, the physical slot number is alphanumeric (RP0 or
RP1) and the module is CPU0.
Example: interface MgmtEth0/RP1/CPU0/0.
• Virtual interface instance. Number range varies depending on interface
type.
For more information about the syntax for the router, use the question mark
(?) online help function.
labels value(Optional) Entries with a local labels range.
location node-id(Optional) Displays hardware resource counters on the designated node.
The node-id argument is entered in the rack/slot/module notation.
prefix network/mask |
length
(Optional) Destination address and mask/prefix length.
NoteThe forward slash (/) between network and mask is required.
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
The optional keywords and arguments described allow specification of a subset of the entire MPLS
forwarding table.
Task ID
Task IDOperations
mpls-te or mpls-ldp or mpls-staticread, read, read
ExamplesThe following is sample output from the show mpls forwarding command:
RP/0/RP0/CPU0:router# show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes T
Label Label or ID Interface Switched O
Table 37show mpls forwarding Field Descriptions (continued)
FieldDescription
TOTimeout: Indicates by an “*” if entry is being timed out in forwarding.
Mac/EncapsLength in bytes of Layer 2 header, and length in bytes of packet
encapsulation, including Layer 2 header and label header.
MTUMaximum transmission unit (MTU) of labeled packet.
Label StackAll the outgoing labels on the forwarded packet.
Packets SwitchedNumber of packets switched with this incoming label.
Label switchingNumber of Label switching (LFIB) forwarding entries.
IPv4 label impositionNumber of IPv4 label imposition forwarding entries (installed at ingress
LSR).
MPLS TE tunnel headNumber of forwarding entries (installed at ingress LSR) on MPLS TE
tunnel head.
MPLS TE fast-rerouteNumber of forwarding entries (installed at PLR) for MPLS
traffic-engineering (TE) fast reroute.
Forwarding updatesNumber of forwarding updates sent from LSD (RP/DRP) to LFIB/MPLS
(RP/DRP/LC) using BCDL mechanism, indicating the total number of
updates and total number of BCDL messages.
Labels in useLocal labels in use (installed in LFIB). These usually indicate the lowest
and highest label in use (allocated by applications). Furthermore, some
reserved labels (range: 0-15), such as explicit-nullv4, explicit-nullv6, are
installed in the forwarding plane.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on
Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide..
This command displays MPLS information about a specific interface or about all interfaces where MPLS
is configured.
Task ID
Task IDOperations
mpls-te or mpls-ldp or mpls-staticread, read, read
ExamplesThe following is sample output from the show mpls interfaces command:
To display the range of local labels available for use on packet interfaces, use the show mpls label range
command in EXEC mode.
show mpls label range
Syntax DescriptionThis command has no arguments or keywords.
Command ModesEXEC
MPLS Forwarding Commands on Cisco IOS XR Software
Command History
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
Task ID
ExamplesThe following is sample output from the show mpls label range command:
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
You can use the show mpls label range command to configure a range for local labels that is different
from the default range.
Task IDOperations
mpls-te or mpls-ldp or mpls-staticread, read, read
label label valueDisplays a selected label based on the label value. Range is 0-1048575.
summaryDisplays a summary of local labels.
Command ModesEXEC
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Task ID
Task IDOperations
mpls-te or mpls-ldp or mpls-staticread, read, read
ExamplesThe following is sample output from the show mpls label table command:
To display the MPLS applications registered with the MPLS Label Switching Database (LSD) server,
use the show mpls lsd applications command in EXEC mode.
show mpls lsd applications
Syntax DescriptionThis command has no arguments or keywords.
Command ModesEXEC
show mpls lsd applications
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
MPLS applications include Traffic Engineering (TE) Control, TE Link Management, and Label
Distribution Protocol (LDP). The application must be registered with MPLS LSD for its features to
operate correctly. All applications are clients (see the show mpls lsd clients command), but not all
clients are applications.
Task ID
Task IDOperations
mpls-te or mpls-ldp or mpls-staticread, read, read
ExamplesThe following is sample output from the show mpls lsd applications command:
RP/0/RP0/CPU0:router# show mpls lsd applications
Type State RecoveryTime Node
------------ -------- ------------ -----------LDP Active 300 0/0/CPU0
TE-Control Active 100 0/0/CPU0
TE-Link Active 600 0/0/CPU0
To display the MPLS clients connected to the MPLS Label Switching Database (LSD) server, use the
show mpls lsd clients command in EXEC mode.
show mpls lsd clients
Syntax DescriptionThis command has no arguments or keywords.
Command ModesEXEC
show mpls lsd clients
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
MPLS clients include Traffic Engineering (TE) Control, TE Link Management, Label Distribution
Protocol (LDP), and Bulk Content Downloader (BCDL) Agent. Not all clients are applications (see the
show mpls lsd applications command), but all applications are clients.
Task ID
Task IDOperations
mpls-te or mpls-ldp or mpls-staticread, read, read
ExamplesThe following is sample output from the show mpls lsd clients command:
Table 42 describes the significant fields shown in the display.
Table 42show mpls lsd applications Field Descriptions
ValueDescription
IdClient identification number.
ServicesA(xxx) means that this client is an application and xxx is the application name, BA(yyy)
means that this client is a BCDL Agent and yyy is expert data. Depending on system
conditions, there can be multiple BCDL Agent clients (this is normal).
NodeNode expressed in standard rack/slot/module notation.
Related Commands
CommandDescription
show mpls lsd applicationsDisplays MPLS applications registered with the MPLS LSD server.
show mpls lsd clientsDisplays MPLS clients connected to the MPLS LSD server.
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Task ID
Task IDOperations
mpls-teread
ExamplesThe following is sample output from the show mpls traffic-eng fast-reroute database command:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast database
Tunnel head FRR information:
Tunnel In-label Out intf/label FRR intf/label Status
---------- -------- ---------------- ---------------- ------tt4000 Tun hd PO0/3/0/0:34 tt1000:34 Ready
tt4001 Tun hd PO0/3/0/0:35 tt1001:35 Ready
tt4002 Tun hd PO0/3/0/0:36 tt1001:36 Ready
Table 43 describes the significant fields shown in the display.
Table 43show mpls traffic-eng fast-reroute database Field Descriptions
FieldDescription
TunnelShort form of tunnel interface name.
In-labelLabel advertised to other routers to signify a particular prefix. The value
“Tun hd” indicates that no label is advertised.
Out intf/labelOut interface—Short name of the physical interface through which traffic
goes to the protected link.
Out label:
• At a tunnel head, this is the label that the tunnel destination device
advertises. The value “Unlabeled” indicates that no such label is
advertised.
• At a tunnel midpoint, this is the label selected by the next hop device.
The value “Pop Label” indicates that the next hop is the final hop for the
tunnel.
175.10.200.253/32 tu4000 Tun hd PO0/3/0/0:34 tt1000:34 Ready
show mpls traffic-eng fast-reroute database
Fast reroute label:
• At a tunnel head, this is the label that the tunnel tail selected to indicate
the destination network. The value “Unlabeled” indicates that no label
is advertised.
• At a tunnel midpoint, this has the same value as the Out label.
NoteThe Prefix field indicates the IP address where packets with this label are headed.
The following command displays filtering of the FRR database using the backup-interface option:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast database backup-interface tunnel-te 1000
Tunnel head FRR information:
Tunnel In-label Out intf/label FRR intf/label Status
---------- -------- ---------------- ---------------- ------tu4000 Tun hd PO0/3/0/0:34 tt1000:34 Ready
The following command displays the FRR database filtered by the primary outgoing interface:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database interface pos0/3/0/0
Tunnel head FRR information:
Tunnel In-label Out intf/label FRR intf/label Status
---------- -------- ---------------- ---------------- ------tt4000 Tun hd PO0/3/0/0:34 tt1000:34 Ready
tt4001 Tun hd PO0/3/0/0:35 tt1001:35 Ready
tt4002 Tun hd PO0/3/0/0:36 tt1001:36 Ready
The following command shows a summary of the FRR database with the role as head:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database role head summary
Status Count
---------- ---------Active 0
Ready 3
Partial 0
Other 0
The following command shows the FRR database filtered according to the state of the entries (note that
FRR is triggered):
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database state active
Tunnel head FRR information:
Tunnel In-label Out intf/label FRR intf/label Status
---------- -------- ---------------- ---------------- ------tt4000 Tun hd tt1000:34 Active
tt4001 Tun hd tt1001:35 Active
tt4002 Tun hd tt1001:36 Active
The following command shows the FRR database with protected midpoints:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database
To display a history of Fast Reroute (FRR) events, use the show mpls traffic-eng fast-reroute log
command in EXEC mode.
show mpls traffic-eng fast-reroute log [interface type instance | node node-id]
show mpls traffic-eng fast-reroute log
Syntax Description
interface(Optional) Displays all FRR events for the selected protected interface.
type Interface type. For more information, use the question mark (?) online help
function.
instanceEither a physical interface instance or a virtual interface instance as follows:
• Physical interface instance. Naming notation is rack/slot/module/port
and a slash between values is required as part of the notation.
–
rack: Chassis number of the rack.
–
slot: Physical slot number of the modular services card or line card.
–
module: Module number. A physical layer interface module (PLIM)
is always 0.
–
port: Physical port number of the interface.
NoteIn references to a Management Ethernet interface located on a route
processor card, the physical slot number is alphanumeric (RP0 or
RP1) and the module is CPU0.
Example: interface MgmtEth0/RP1/CPU0/0.
• Virtual interface instance. Number range varies depending on interface
type.
For more information about the syntax for the router, use the question mark
(?) online help function.
nodenode-idDisplays all FRR events that occurred on the selected node.
Command ModesEXEC
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Release 3.3.0No modification.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.