Cisco CRS Configuration Manual page 124

Ios xr mpls configuration guide
Hide thumbs Also See for CRS:
Table of Contents

Advertisement

Allocate Static MPLS Label to an IP Prefix and Configure a LSP
SUMMARY STEPS
1. configure
2. mpls static
3. address-family ipv4 unicast
4. local-label label-value allocate per-prefix IPv4_prefix_entry
5. forward path path_id nexthop nexthop_address out-label outgoing_label
6. Use the commit or end command.
DETAILED STEPS
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Enters global configuration mode.
Step 2
mpls static
Example:
RP/0/RP0/CPU0:router(config)# mpls static
Enters MPLS-static configuration mode.
Step 3
address-family ipv4 unicast
Example:
RP/0/RP0/CPU0:router(config-mpls-static)# address-family ipv4 unicast
Applies the static configuration to an IPv4 address family in the default VRF.
Step 4
local-label label-value allocate per-prefix IPv4_prefix_entry
Example:
RP/0/RP0/CPU0:router(config-mpls-static-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.
Step 5
forward path path_id nexthop nexthop_address out-label outgoing_label
Example:
RP/0/RP0/CPU0:router(config-mpls-static-af-lbl)# forward path 1 nexthop 10.2.2.2 out-label 30501
For packets that are received with the label, 30500, the MPLS protocol swaps labels and applies the label, 30501. After
applying the new label, it forwards the packets to the next hop, 10.2.2.2.
Example:
RP/0/RP0/CPU0:router(config-mpls-static-af-lbl)# forward path 1 nexthop gigabitEthernet 0/0/0/4
out-label pop
For packets that are received with the label, 30500, the MPLS protocol removes the existing label. After removing the
label, it forwards the packets to the next hop through the egress interface, GigabitEthernet 0/0/0/4.
Step 6
Use the commit or end command.
Cisco IOS XR MPLS Configuration Guide for the Cisco CRS Router, Release 5.1.x
106
Implementing MPLS Static Labeling

Advertisement

Table of Contents
loading

Table of Contents