address family ipv4 unicast (mpls-static)
To enable static MPLS label binding on a specific IPv4 unicast destination address prefix and on the forwarding next-hop address, use the address-family ipv4 unicast command in MPLS static configuration mode. To remove MPLS static binding, use the no form of this command.
address-family ipv4 unicast local-label label_value allocate [ per-prefix ipv4_prefix_value ] forward path path_value nexthop nexthop_information interface-type interface-path-id out-label { label_value | pop | exp-null }
Syntax Description
local-label label_value |
Specifies MPLS local-label value for static binding and forwarding. The range is from 16 to 1048575. |
allocate |
Displays local-label allocation options. |
per-prefix ipv4_prefix_value |
Specifies IPv4 prefix value to which the specified MPLS label will be statically bound. |
forward |
Configure forwarding for traffic with static MPLS label. |
path path-value |
Specifies path-ID for MPLS cross-connect path. |
nexthop nexthop_information |
Specifies the next-hop information that is either an IP address or interface. |
interface-type interface-id |
Interface type. For more information, use the question mark (?) online help function. |
out-label label_value |
Specifies mpls local-label value for static binding on the egress packet. |
pop |
Removes label from egress packet. |
exp-null |
Applies explicit null label on the egress packet. |
Command Default
None
Command Modes
MPLS static configuration
Command History
Release | Modification |
---|---|
Release 5.1.1 |
This command was introduced. |
Task ID
Task ID | Operation |
---|---|
mpls-static |
read |
Examples
The following command sequence shows how to specify local label for an ip-prefix and define LSP.
RP/0/RP0/CPU0:router#configure
RP/0/RP0/CPU0:router(config)#mpls static
RP/0/RP0/CPU0:router(config-mpls-static)#address-family ipv4 unicast
RP/0/RP0/CPU0:router(config-mpls-static-af)#local-label 30500 allocate per-prefix 10.1.1.1/24 forward path 1 nexthop 12.2.2.2 out-label 30600