mpls static binding ipv4 vrf
To bind a prefix to a local label, use the mpls static binding ipv4 vrf command in global configuration mode. To remove static binding between the prefix and label, use the no form of this command.
mpls static binding ipv4 vrf vpn-name prefix mask {input label | label}
no mpls static binding ipv4 vrf vpn-name prefix mask [input label | label]
Syntax Description
vpn-name |
The VPN routing and forwarding (VRF) instance. |
prefix mask |
The destination prefix and mask. |
input label |
A local (incoming) label. This argument is optional for the no form of the command. |
label |
A local label. This argument is optional for the no form of the command. |
Command Default
Label bindings are dynamically assigned.
Command Modes
Global configuration (config)
Command History
Release |
Modification |
---|---|
12.0(26)S |
This command was introduced. |
12.3(14)T |
This command was integrated into Cisco IOS Release 12.3(14)T. |
12.2(33)SRA |
This command was integrated into Cisco IOS Release 12.2(33)SRA. |
12.2(33)SXH |
This command was integrated into Cisco IOS Release 12.2(33)SXH. |
12.2(33)SB |
This command was integrated into Cisco IOS Release 12.2(33)SB. |
Cisco IOS XE Release 2.1 |
This command was integrated into Cisco IOS XE Release 2.1. |
Cisco IOS XE Release 3.5S |
This command was implemented on the Cisco ASR 903 series routers. |
Usage Guidelines
The mpls static binding ipv4 vrf command is used only when you configure input labels.
Depending on how you configure the MPLS LDP VRF-Aware Static Labels feature, static labels are advertised one of the following ways:
-
By Label Distribution Protocol (LDP) between provider edge (PE) and customer edge (CE) routers within a VRF instance.
-
In VPNv4 Border Gateway Protocol (BGP) in the service provider’s backbone.
If you do not specify the input keyword, an input (local) label is assumed.
The no form of the command functions as follows:
-
Omitting the prefix and the subsequent parameters removes all static bindings.
-
Specifying the prefix and mask but no label parameters removes all static bindings for that prefix or mask.
Examples
The following example binds a prefix to local label 17:
Router(config)# mpls static binding ipv4 vrf vpn100 10.66.0.0 255.255.0.0 input 17