The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This document explains how to configure the MPLS LDP--VRF-Aware Static Labels feature and Multiprotocol Label Switching (MPLS) static labels. Virtual Private Network routing and forwarding (VRF)-aware static labels can be used at the edge of an MPLS Virtual Private Network (VPN), whereas MPLS static labels can be used only in the MPLS VPN provider core.
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Label switch routers (LSRs) dynamically learn the labels they should use to label-switch packets by means of the following label distribution protocols:
The LSR installs the dynamically learned label into its Label Forwarding Information Base (LFIB).
You can configure static labels for the following purposes:
Before you can manually assign labels, you must reserve a range of labels to be used for the manual assignment. Reserving the labels ensures that the labels are not dynamically assigned.
To reserve the labels that are to be statically assigned so that the labels are not dynamically assigned, perform the following task.
To configure MPLS static labels in the MPLS VPN provider core, perform the following task.
MPLS static labels allow you to configure entries in the MPLS forwarding table and assign label values to FECs learned by LDP. You can manually configure an LSP without running a label distribution protocol between the endpoints. In MPLS VPN networks, static labels can be used only in the MPLS VPN provider core.
Command or Action | Purpose | |
---|---|---|
|
Example: Router> enable |
Enables privileged EXEC mode.
|
|
Example: Router# configure terminal |
Enters global configuration mode and returns to privileged EXEC mode. |
|
Example: Router(config)# mpls static binding ipv4 10.2.2.0 255.255.255.255 input 17 |
Specifies static binding of labels to IPv4 prefixes. Specified bindings are installed automatically in the MPLS forwarding table as routing demands. |
|
Example: Router(config)# exit |
Exits global configuration mode and enters privileged EXEC mode. |
|
Example: Router# show mpls static binding ipv4 |
Displays the configured static labels. |
|
Example: Router# show mpls forwarding-table |
Displays the static labels used for MPLS forwarding. |
To configure the MPLS LDP--VRF-Aware Static Labels feature at the edge of the VPN, perform the following task.
You can statically bind a VRF-aware label on a PE router to a customer network prefix (VPN IPv4 prefix). VRF-aware static labels can be used with nonglobal VRF tables, so the labels can be used at the VPN edge.
![]() Note |
The MPLS LDP-VRF-Aware Static Labels feature is supported only with MPLS VPN Carrier Supporting Carrier networks that use MPLS LDP. |
Command or Action | Purpose | |||
---|---|---|---|---|
|
Example: Router> enable |
Enables privileged EXEC mode. |
||
|
Example: Router# configure terminal |
Enters global configuration mode. |
||
|
Example: Router(config)# mpls static binding ipv4 vrf vpn100 10.2.0.0 255.255.0.0 input 17 |
Binds a prefix to a local label. Specified bindings are installed automatically in the MPLS forwarding table as routing demands.
|
||
|
Example: Router(config)# exit |
Exits global configuration mode and enters privileged EXEC mode. |
||
|
Example: Router(config)# show mpls static binding ipv4 vrf vpn100 |
Displays the configured MPLS static bindings. |
To display information related to static binding events, use the debug mpls static binding vrf command.
In the following example, the mpls label range command reserves a generic range of labels from 200 to 100000 and configures a static label range of 16 to 199:
Router(config)# mpls label range 200 100000 static 16 199
% Label range changes take effect at the next reload.
In this example, the output from the show mpls label range command indicates that the new label ranges do not take effect until a reload occurs:
Router# show mpls label range
Downstream label pool: Min/Max label: 16/100000
[Configured range for next reload: Min/Max label: 200/100000]
Range for static labels: Min/Max/Number: 16/199
In the following output, the show mpls label range command, executed after a reload, indicates that the new label ranges are in effect:
Router# show mpls label range
Downstream label pool: Min/Max label: 200/100000
Range for static labels: Min/Max/Number: 16/199
The following example configures input and output labels for several prefixes:
Router(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 55 Router(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 output 10.0.0.66 167 Router(config)# mpls static binding ipv4 10.66.0.0 255.255.0.0 input 17 Router(config)# mpls static binding ipv4 10.66.0.0 255.255.0.0 output 10.13.0.8 explicit-null
The show mpls static binding ipv4command displays the configured static labels:
Router# show mpls static binding ipv4
10.0.0.0/8: Incoming label: 55
Outgoing labels:
10.0.0.66 167
10.66.0.0/24: Incoming label: 17
Outgoing labels:
10.13.0.8 explicit-null
In the following example, the mpls static binding ipv4 vrf commands configure static label bindings. They also configure input (local) labels for various prefixes.
Router(config)# mpls static binding ipv4 vrf vpn100 10.0.0.0 10.0.0.0 55 Router(config)# mpls static binding ipv4 vrf vpn100 10.66.0.0 255.255.0.0 input 17
In the following output, the show mpls static binding ipv4 vrfcommand displays the configured VRF-aware static bindings:
Router# show mpls static binding ipv4 vrf vpn100 10.0.0.0/8: (vrf: vpn100) Incoming label: 55 Outgoing labels: None 10.66.0.0/16: (vrf: vpn100) Incoming label: 17 Outgoing labels: None
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
MPLS commands |
Cisco IOS Multiprotocol Label Switching Command Reference |
MPLS VPN configuration information |
Configuring MPLS Layer 3 VPNs |
Standard |
Title |
---|---|
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature. |
-- |
MIB |
MIBs Link |
---|---|
No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. |
To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFC |
Title |
---|---|
No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. |
-- |
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 1 | Feature Information for MPLS LDP-VRF-Aware Static Labels |
Feature Name |
Releases |
Feature Information |
---|---|---|
MPLS LDP-VRF-Aware Static Labels |
Cisco IOS XE Release 2.1 |
The MPLS LDP-VRF-Aware Static Labels feature explains how to configure the MPLS LDP-VRF-Aware Static Labels feature and MPLS static labels. VRF-aware static labels can be used at the edge of an MPLS VPN, whereas MPLS static labels can be used only in the MPLS VPN provider core. In Cisco IOS XE Release 2.2, this feature was implemented on the Cisco ASR 1000 Series Aggregation Services Routers. The following commands were introduced or modified: debug mpls static binding, mpls label range, mpls static binding ipv4, mpls static binding ipv4 vrf, show mpls label range, show mpls static binding ipv4, and show mpls static binding ipv4 vrf. |
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.