
Example:
RP/0/RP0/CPU0:router(config-mpls-static)# vrf vrf1 address-family ipv4 unicast
Applies the static configuration to an IPv4 address family in the VRF named
vrf1
.
Step 4
local-label label-value allocate per-prefix IPv4_prefix_entry
•
•
local-label label-value allocate per-vrf
forward
path path-id pop-and-lookup
Example:
RP/0/RP0/CPU0:router(config-mpls-static-vrf-af)# local-label 30500 allocate per-prefix 100.1.1.0/24
The MPLS protocol requests label 30500 to be statically bound as a local label for the prefix 100.1.1.0/24 in the VRF
named
vrf1
.
Example:
RP/0/RP0/CPU0:router(config-mpls-static-vrf-af)# local-label 30500 allocate per-vrf forward path 1
pop-and-lookup
The MPLS protocol requests single label 30500 to be statically bound as a local label for all the prefixes in the VRF
named
vrf1
. When the router receives packets with VRF label 30500, it removes the label and then performs IP-based
lookup to forward the packets.
Step 5
Use the
commit
or
end
command.
commit
—
Saves the configuration changes and remains within the configuration session.
end
—
Prompts user to take one of these actions:
•
Yes
—
Saves configuration changes and exits the configuration session.
•
No
—
Exits the configuration session without committing the configuration changes.
•
Cancel
—
Remains in the configuration session, without committing the configuration changes.
Verify MPLS Static Bindings
These are the show commands that can be used to verify MPLS static bindings and LSPs.
SUMMARY STEPS
1.
show mpls static local-label label_value
2.
show mpls label range
3.
show mpls lsd forwarding
DETAILED STEPS
Step 1
show mpls static local-label label_value
Cisco IOS XR MPLS Configuration Guide for the Cisco CRS Router, Release 5.1.x
108
Implementing MPLS Static Labeling
Verify MPLS Static Bindings