Hardware Module Commands

This module lists the Cisco IOS XR hardware module commands for MPLS on the Cisco 8000 Series Routers.

For detailed information about the hardware module configuration tasks and examples, refer to the MPLS Configuration Guide for Cisco 8000 Series Routers.

hw-module label-allocation bvi-routes disable

To disable label allocation for prefixes whose next hop is over bridge-group virtual interface (BVI), use the hw-module label-allocation bvi-routes disable command in System Admin Config mode. To enable label allocation over BVI, use the no form of this command.

hw-module label-allocation bvi-routes disable

no hw-module label-allocation bvi-routes disable

This command has no keywords or arguments.

Command Default

Label allocation is enabled and LDP is configurable for BVI.

Command Modes

System Admin Config

Command History

Release

Modification

Release 7.0.12

This command was introduced.

Usage Guidelines


Note


This configuration is required only when ASR 9000 Ethernet Line Cards are used as the MPLS-core facing cards. This configuration is not required on ASR 9000 Enhanced Ethernet Line Cards. MPLS LDP over BVI is not supported on ASR 9000 Ethernet Line Cards.

You need to unconfigure and reconfigure MPLS LDP for both the hw-module label-allocation bvi-routes disable and the no hw-module label-allocation bvi-routes disable configurations to take effect. The hw-module label-allocation bvi-routes disable configuration disables label allocation for BVI routes. The BVI routes should also be explicitly mentioned as static and dynamic. This configuration does not prevent labels being assigned to Recursive Static routes that point to the gateway on the BVI interface. Such recursive static routes have to be modified to include the BVI interface modifier to turn those into non-recursive routes.

When this configuration is committed, it will be present in the admin mode running configuration. However, labels already advertised need to be withdrawn by LDP. To withdraw the previously advertised routes, first unconfigure MPLS LDP and then reconfigure MPLS LDP (to advertise labels for non-BVI routes).

Note


The no hw-module label-allocation bvi-routes disable will not appear in the admin mode running configuration, once committed.


If LDP was enabled on BVI, it needs to be removed before unconfiguring/configuring MPLS LDP. Otherwise, LDP configuration will be rejected as the hw-module label-allocation bvi-routes disable configuration prevents LDP to be configured for BVI. When this command is configured, if the same route is reachable over ECMP paths and one of the paths is BVI, a label will not be allocated.

Task ID

Task ID Operation

root-lr

read, write

Examples

This example shows how to disable label allocation for BVI routes:


RP/0/RP0/CPU0:router#admin
RP/0/RP0/CPU0:router(admin)#configure 
RP/0/RP0/CPU0:router(admin-config)#hw-module label-allocation bvi-routes disable

hw-module profile cef te-tunnel highscale-ldp-over-te-no-sr-over-srte

To increase the TE tunnel capacity to 4000 tunnels, use the hw-module profile cef te-tunnel highscale-ldp-over-te-no-sr-over-srte command in global configuration mode. To revert to a 1000 TE tunnel capacity, and enable the LDP over TE feature, use the no form of the command.

hw-module profile cef te-tunnel highscale-ldp-over-te-no-sr-over-srte

This command has no keywords or arguments.

Command Default

A TE tunnel capacity of 4000 tunnels is supported.

Command Modes

Global configuration (config)

Command History

Release

Modification

Release 7.5.3

This command was introduced.

Usage Guidelines

LDP can be run over an RSVP TE network through a targeted LDP session between the edge routers of the RSVP TE network. The LDP over TE function is automatically enabled with support for 1000 TE tunnels.

If you need 4000 tunnels without losing LDP over TE feature, enable this command on the edge routers.

Task ID

Task ID Operation

mpls ldp

read, write

Examples

The following example shows how to increase the TE tunnel capacity to 4000 tunnels:


Router# configure
Router(config)# hw-module profile cef te-tunnel highscale-ldp-over-te-no-sr-over-srte
Router(config)# commit
Router# reload

hw-module profile cef te-tunnel highscale-no-ldp-over-te

To increase the TE tunnel capacity to more than 1000 tunnels, use the hw-module profile cef te-tunnel highscale-no-ldp-over-te command in global configuration mode. To revert to a 1000 TE tunnel capacity, and enable the LDP over TE feature, use the no form of the command.

hw-module profile cef te-tunnel highscale-no-ldp-over-te

This command has no keywords or arguments.

Command Default

A TE tunnel capacity of 1000 tunnels is supported.

Command Modes

Global configuration (config)

Command History

Release

Modification

Release 7.3.1

This command was introduced.

Release 7.5.3

A TE tunnel capacity of was increased from 1000 to 8000 tunnels.

Usage Guidelines

LDP can be run over an RSVP TE network through a targeted LDP session between the edge routers of the RSVP TE network. In the Cisco IOS XR Release 7.3.1, LDP over TE function is automatically enabled, with support for 1000 TE tunnels.

If you need to run more than 1000 tunnels, enable this command on the edge routers. However, the LDP over TE feature gets disabled with this configuration.

Starting from Cisco IOS XR Release 7.5.3, there is an increase in the number of TE tunnels. You can now run up to 8000 TE tunnels. However, when you use 8000 tunnels, the LDP over TE feature is disabled.

Task ID

Task ID Operation

mpls ldp

read, write

Examples

This example shows how to increase the TE tunnel capacity:


Router# configure terminal
Router(config)# hw-module profile cef te-tunnel highscale-no-ldp-over-te
Router(config)# commit
Router# reload

hw-module profile cef cbf forward-class-list

To optimize hardware resource usage for forward-class, use the hw-module profile cef cbf forward-class-list command in global configuration mode. To return to the default configuration, use the no form of this command.

hw-module profile cef cbf forward-class-list id

Syntax Description

id

Specifies the forward-class ID.

Command Default

This command is disabled.

Command Modes

Global configuration

Command History

Release Modification
Release 7.5.3

This command was introduced.

Usage Guidelines

You must reload the router for the configuration to take effect.

Use this command to optimize the hardware resource usage. Each forward-class mentioned in forward-class list is expected to have specific egress TE tunnels associated with it.

Examples

This example shows how to enable forward-class for policy based tunnel selection:

Router(config)# hw-module profile cef cbf forward-class-list 0 1 2 3 5
Router# reload

hw-module profile cef stats label app-default dynamic

To increase MPLS per path statistics collection to more than 4K counters, use the hw-module profile cef stats label app-default dynamic command in global configuration mode. To return to the default configuration, use the no form of this command.

hw-module profile cef stats label app-default dynamic

This command has no keywords or arguments.

Command Default

This command is disabled.

Command Modes

Global configuration

Command History

Release Modification
Release 7.0.14

This command was introduced.

The per-path statistics collection is not supported for SR-TE, MPLS-TE, L3VPN, 6PE, and BGP-LU technologies.

Usage Guidelines

The MPLS per-path statistics are reported for IPv4 IGP (LDP/SR) paths. For each outgoing labeled path, a counter is allocated. By default, 4K counters are supported. You can increase it up to 96K counters (thereby extending statistics collection to as many IPv4 IGP (LDP/SR) paths), by enabling this command. You can view the statistics in the show mpls forwarding labels command output.

After you execute the hw-module profile cef stats label app-default dynamic command, or use its no form, you must execute the reload command. It loads the device image afresh, and restarts the device. Else, the command will not come into effect.

Examples

This example shows how to increase MPLS per path statistics collection to more than 4K IPv4 IGP (LDP/SR) counters:

Router(config)# hw-module profile cef stats label app-default dynamic
..
Router# reload

hw-module profile cef te-tunnel label-over-te-counters

To change how MPLS-labeled traffic is accounted when it is forwarded over an RSVP-TE tunnel or SR-TE policy, use the hw-module profile cef te-tunnel label-over-te-counters command in XR configuration mode. To restore the default accounting behavior, use the no form of this command.

hw-module profile cef te-tunnel label-over-te-counters

Syntax Description

This command has no arguments or keywords.

Command Default

By default, the profile is not configured.

Command Modes

XR configuration mode

Usage Guidelines

On Cisco 8000 series routers, MPLS-labeled traffic forwarded over an RSVP-TE tunnel or SR-TE policy can be counted in hardware at only one of the following points:

  • the LFIB label entry in show mpls forwarding , or

  • the tunnel-te interface or SR-TE policy counters.

The hardware cannot count the same labeled traffic at both points simultaneously.

When this profile is configured and active:

  • incoming MPLS-labeled traffic forwarded over a tunnel-te or SR-TE policy is counted on the LFIB label entry.

  • the Bytes Switched counters increase in show mpls forwarding for label entries whose outgoing interface is the tunnel-te or SR-TE policy.

  • tunnel-te and SR-TE policy counters reflect only incoming IP traffic forwarded through that TE path.

When this profile is not configured:

  • both IP and MPLS-labeled traffic forwarded through the tunnel-te or SR-TE policy are counted on the tunnel or policy counters.

  • LFIB entries whose outgoing interface is the tunnel-te or SR-TE policy show 0 Bytes Switched.

This behavior applies to:

  • LDP over RSVP-TE

  • SR over RSVP-TE

  • SR over SR-TE

LFIB entries that point directly to physical or bundle interfaces retain their Bytes Switched counters whether or not this profile is configured. The profile is therefore not required for MPLS label accounting in general.

A chassis reload is required after the profile is configured or removed.

Use this profile based on monitoring needs:

  • If accurate tunnel-te or SR-TE policy utilization is required, do not configure the profile.

  • If per-label accounting is required for labeled traffic forwarded over TE tunnels or SR-TE policies, configure the profile and use the underlying physical or bundle interface counters as the utilization reference.

Examples

This example shows how to configure hw-module profile cef te-tunnel label-over-te-counters .

Router# config
Router(config)# hw-module profile cef te-tunnel label-over-te-counters