Table Of Contents
MPLS Forwarding Commands on Cisco IOS XR Software
clear mpls forwarding counters
show mpls forwarding exact-route
show mpls traffic-eng fast-reroute database
show mpls traffic-eng fast-reroute log
MPLS Forwarding Commands on Cisco IOS XR Software
This chapter describes the commands used 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 MPLS Configuration Guide.clear mpls forwarding counters
To clear (set to zero) the MPLS forwarding counters, use the clear mpls forwarding counters command in EXEC mode.
clear mpls forwarding counters
Syntax Description
This command has no arguments or keywords.
Command Modes
EXEC
Command History
Usage Guidelines
To 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.
Task ID
Examples
The following example shows sample output before and after clearing all counters:
RP/0/RP0/CPU0:router# show mpls forwardingLocal Outgoing Prefix Outgoing Next Hop Bytes TLabel Label or ID Interface Switched O----- -------- ------------- ---------- ------------ --------- -18 Exp-Null-v4 33.33.33.33/32 PO0/2/0/0 10.1.2.3 16762RP/0/RP0/CPU0:router# clear mpls forwarding countersRP/0/RP0/CPU0:router# show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes TLabel Label or ID Interface Switched O----- -------- ------------- ---------- ------------ --------- -18 Exp-Null-v4 33.33.33.33/32 PO0/2/0/0 10.1.2.3 17000Related Commands
mpls ip-ttl-propagate
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
Syntax Description
Defaults
Enabled
Command Modes
Global configuration
Command History
Usage Guidelines
To 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.
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
Examples
The following example shows how to disable IP TTL propagation:
RP/0/RP0/CPU0:router(config)# mpls ip-ttl-propagate disable
mpls label range
To configure the dynamic 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] minimum maximum
no mpls label range [table table-id] minimum maximum
Syntax Description
Defaults
table-id: 0
minimum: 16000
maximum: 1048575
Command Modes
Global configuration
Command History
Usage Guidelines
To 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.
Labels 16 through 15999 are reserved for L2VPN static pseudowires. You should not configure L2VPN static pseudowires which fall within the dynamic range. If more L2VPN static pseudowires are required, restrict the dynamic label range using this configuration.
Note Labels outside the current range and which are allocated by MPLS applications remain in circulation until released.
Task ID
Examples
The following example shows how to configure the size of the local label space using a minimum of 16200 and a maximum of 120000:
RP/0/RP0/CPU0:router# configureRP/0/RP0/CPU0:router(config)# mpls label range 16200 120000Related Commands
mpls label range
To configure the dynamic 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] minimum maximum
no mpls label range [table table-id] minimum maximum
Syntax Description
Defaults
table-id: 0
minimum: 16000
maximum: 1048575
Command Modes
Global configuration
Command History
Usage Guidelines
To 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.
Labels 16 through 15999 are reserved for L2VPN static pseudowires. You should not configure L2VPN static pseudowires which fall within the dynamic range. If more L2VPN static pseudowires are required, restrict the dynamic label range using this configuration.
Note Labels outside the current range and which are allocated by MPLS applications remain in circulation until released.
Task ID
Examples
The following example shows how to configure the size of the local label space using a minimum of 16200 and a maximum of 120000:
RP/0/RP0/CPU0:router# configureRP/0/RP0/CPU0:router(config)# mpls label range 16200 120000Related Commands
mpls mtu
To configure the maximum packet size or maximum transmission unit (MTU) size on an MPLS interface, use the mpls mtu command in global configuration mode. To disable this feature, use the no form of this command.
mpls mtu bytes
no mpls mtu bytes
Syntax Description
Defaults
The default MTU value is 1500.
Command Modes
Global configuration
Command History
Release ModificationRelease 3.6.0
This command was introduced on the Cisco XR 12000 Series Router.
Release 3.7.0
No modification.
Usage Guidelines
To 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.
Each interface has a default maximum packet size or MTU size. This number generally defaults to the largest size possible for that interface type. On serial interfaces, the MTU size varies, but cannot be set smaller than 68 bytes.
Task ID
Examples
The following example specifies an MTU of 70 bytes on an MPLS interface:
RP/0/0/CPU0:router# configureRP/0/0/CPU0:router(config-if)# mpls mtu 70
Related Commands
Commands DescriptionAdjusts the maximum packet size or maximum transmission unit (MTU) size for a bridge domain.
show mpls forwarding
To display the contents of the MPLS Label Forwarding Information Base (LFIB), use the show mpls forwarding command in EXEC mode.
show mpls forwarding [detail | {label label number} | interface interface-id | labels value | location | prefix [network/mask | length] | private | summary | tunnels tunnel-id]
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
To 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
Examples
The following is sample output from the show mpls forwarding command using the location keyword and a specific node ID:
RP/0/RP0/CPU0:router# show mpls forwarding location 0/1/CPU0
Local Outgoing Outgoing Next Hop BytesLabel Label Interface Switched------ ----------- ------------ --------------- ------------22 Pop Label PO0/1/0/0 10.1.1.2 023 Pop Label PO0/1/0/0 10.1.1.2 024 Pop Label PO0/1/0/0 10.1.1.2 025 Unlabeled tt13 point2point 0The following is sample output from the show mpls forwarding command using the tunnels keyword:
RP/0/RP0/CPU0:router# show mpls forwarding tunnels
Tunnel Outgoing Outgoing Next Hop BytesName Label Interface Switched-------- ----------- ------------ --------------- ------------tt13 18 PO0/1/0/0 10.1.1.2 13200Table 17 describes the significant fields shown in the display.
Related Commands
show mpls forwarding exact-route
To display the exact path for the source and destination address pair, use the show mpls forwarding exact-route command in EXEC mode.
show mpls forwarding exact-route label label number {bottom label value | ipv4 {source-address destination-address} | ipv6 {source-address destination-address}} [protocol protocol name] [source-port source-port] [destination-port destination-port] [ingress-interface type instance]
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
To 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 show mpls forwarding exact-route command displays information in long form and includes the following information:
•encapsulation length
•Media Access Control (MAC) string length
•maximum transmission unit (MTU)
•packet switching information
•label stacking information
Task ID
Examples
The following is sample output from the show mpls forwarding exact-route command:
RP/0/RP0/CPU0:router# show mpls forwarding exact-route label 16000 ipv4 10.74.1.6 127.0.0.15 prot tcp source 3503 dest 3503 ingress pos 0/3/4/3
Local Outgoing Prefix Outgoing Next Hop BytesLabel Label or ID Interface Switched------ ----------- ------------------ ------------ --------------- ------------16000 16001 5.5.5.5/32 PO0/1/5/1 1.24.1.192 N/AVia: PO0/1/5/1, Next Hop: point2pointMAC/Encaps: 4/8, MTU: 1500Label Stack (Top -> Bottom): { 16001 }Table 18 describes the significant fields shown in the display.
Related Commands
show mpls interfaces
To display information about one or more interfaces that have been configured for MPLS, use the show mpls interfaces command in EXEC mode.
show mpls interfaces [type interface-id] [location node-id] | [detail]
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
To 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
Examples
The following is sample output from the show mpls interfaces command:
RP/0/RP0/CPU0:router# show mpls interfaces
Interface LDP Tunnel Enabled-------------------------- -------- -------- --------POS0/4/0/0 Yes Yes YesPOS0/4/0/1 Yes Yes YesPOS0/4/0/2 Yes Yes YesThe following is sample output from the show mpls interfaces command using the detail keyword:
RP/0/RP0/CPU0:router# show mpls interfaces detail
Interface POS0/4/0/0:LDP labelling enabledLSP labelling enabled (TE-Control)MPLS enabledMTU = 4474Interface POS0/4/0/1:LDP labelling enabledLSP labelling enabled (TE-Control)MPLS enabledMTU = 4474Interface POS0/4/0/2:LDP labelling enabledLSP labelling enabled (TE-Control)MPLS enabledMTU = 4474The following is sample output from the show mpls interfaces command using the location keyword:
RP/0/RP0/CPU0:router# show mpls interfaces location pos 0/4/0/0
Interface LDP Tunnel Enabled-------------------------- -------- -------- --------POS0/4/0/0 Yes Yes YesRP/0/0/CPU0:tops2-4#show mpls interfaces poS 0/4/0/0 detailInterface POS0/4/0/0:LDP labelling enabledLSP labelling enabled (TE-Control)MPLS enabledMTU = 4474Table 19 describes the significant fields shown in the display.
show mpls label range
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 range
Syntax Description
This command has no arguments or keywords.
Command Modes
EXEC
Command History
Usage Guidelines
To 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.
You can use the show mpls label range command to configure a range for local labels that is different from the default range.
Task ID
Examples
The following is sample output from the show mpls label range command:
RP/0/RP0/CPU0:router# show mpls label range
Range for dynamic labels: Min/Max: 16000/1048575Table 20 describes the significant fields shown in the display.
Table 20 show mpls label range Field Descriptions
Field DescriptionRange for dynamic labels
Minimum and maximum allowable range for local labels (which differs from the default range).
Related Commands
show mpls label table
To display the local labels contained in the MPLS label table, use the show mpls label table command in EXEC mode.
show mpls label table table-index [application application | label label value | summary]
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
To 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.
Note Labels 16 to 15999 are reserved for static L2VPN pseudowires.
Task ID
Examples
The following is sample output from the show mpls label table command:
RP/0/RP0/CPU0:router# show mpls label table 17001
Table Label Owner State Rewrite----- ------- ---------- ------ -------0 0 LSD InUse Yes0 1 LSD InUse Yes0 2 LSD InUse Yes0 3 LSD InUse Yes0 16 TE-Link InUse YesTable 21 describes the significant fields shown in the display.
Related Commands
Command DescriptionDisplays entries in the MPLS forwarding table. Label switching entries are indexed by their local label.
Displays MPLS applications that are registered with the MPLS LSD server.
show mpls lsd applications
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 Description
This command has no arguments or keywords.
Command Modes
EXEC
Command History
Usage Guidelines
To 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
Examples
The 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/CPU0TE-Control Active 100 0/0/CPU0TE-Link Active 600 0/0/CPU0Table 22 describes the significant fields shown in the display.
Related Commands
show mpls lsd clients
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 Description
This command has no arguments or keywords.
Command Modes
EXEC
Command History
Usage Guidelines
To 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
Examples
The following is sample output from the show mpls lsd clients command:
RP/0/RP0/CPU0:router# show mpls lsd clients
Id Services Node-- -------------------- ------------0 BA(p=none) 0/0/CPU01 A(TE-Link) 0/0/CPU02 A(LDP) 0/0/CPU03 A(TE-Control) 0/0/CPU0Table 23 describes the significant fields shown in the display.
Related Commands
show mpls traffic-eng fast-reroute database
To display the contents of the fast reroute (FRR) database, use the show mpls traffic-eng fast-reroute database command in EXEC mode.
show mpls traffic-eng fast-reroute database [A.B.C.D. | A.B.C.D./length | afi-all [safi-all {A.B.C.D. | A.B.C.D./length}] | [unicast {A.B.C.D. | A.B.C.D./length}] | backup-interface [tunnel tunnel ID [summary] | unresolved] | interface interface [summary] | ipv4 [safi-all {A.B.C.D. | A.B.C.D./length}] | [unicast {A.B.C.D. | A.B.C.D./length}] | labels number [number [state [active | complete | partial | ready]] | [location node-id] | role [head [summary] | midpoint [summary]] | state [active | complete | partial | ready]] | summary]
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
To 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
Examples
The 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 Readytt4001 Tun hd PO0/3/0/0:35 tt1001:35 Readytt4002 Tun hd PO0/3/0/0:36 tt1001:36 ReadyTable 24 describes the significant fields shown in the display.
The following command displays filtering of the FRR database using the prefix argument:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database 175.10.200.253
Tunnel head FRR information:Prefix Tunnel In-label Out intf/label FRR intf/label Status------------------ ---------- -------- ---------------- ---------------- -------175.10.200.253/32 tu4000 Tun hd PO0/3/0/0:34 tt1000:34 Ready
Note The 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 ReadyThe 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 Readytt4001 Tun hd PO0/3/0/0:35 tt1001:35 Readytt4002 Tun hd PO0/3/0/0:36 tt1001:36 ReadyThe 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 0Ready 3Partial 0Other 0The 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 Activett4001 Tun hd tt1001:35 Activett4002 Tun hd tt1001:36 ActiveThe following command shows the FRR database with protected midpoints:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database
LSP midpoint FRR information:LSP identifier In-label Out intf/label FRR intf/label Status----------------------------- -------- ---------------- ---------------- -------10.10.10.10 5000 [48] 18 PO0/1/0/1:18 tt2001:18 Ready10.10.10.10 8000 [105] 19 PO0/1/0/1:19 tt2000:19 ReadyThe following command shows the FRR database filtered according to the inbound label (this output applies only to LSP midpoint entries):
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database labels 18 18
LSP midpoint FRR information:LSP identifier In-label Out intf/label FRR intf/label Status----------------------------- -------- ---------------- ---------------- -------10.10.10.10 5000 [48] 18 PO0/1/0/1:18 tt2001:18 ReadyThe following output shows summarized information for the FRR database with the role as midpoint:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute database role midpoint summary
Status Count------- -----Active 0Ready 2Partial 0Other 0Related Commands
show mpls traffic-eng fast-reroute log
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 [type interface-id | location node-id]
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
To 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
Examples
The following is sample output from the show mpls traffic-eng fast-reroute log command:
RP/0/RP0/CPU0:router# show mpls traffic-eng fast-reroute log
Node Protected LSPs Rewrites When Switching TimeInterface (usec)-------- --------- ----- -------- ---------------------- --------------0/0/CPU0 PO0/1/0/1 1 1 Feb 27 19:12:29.064000 1470/1/CPU0 PO0/1/0/1 1 1 Feb 27 19:12:29.060093 1650/2/CPU0 PO0/1/0/1 1 1 Feb 27 19:12:29.063814 1290/3/CPU0 PO0/1/0/1 1 1 Feb 27 19:12:29.062861 128Table 25 describes the significant fields shown in the display.
Related Commands