Allocate Static Mpls Label To An Ip Prefix And Configure A Lsp - Cisco CRS Configuration Manual

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

Advertisement

Implementing MPLS Static Labeling
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
Example:
RP/0/RP0/CPU0:router(config-mpls-static-af)# local-label 30500 allocate
Specifies the incoming label value as 30500.
Step 5
forward path path_id nexthop nexthop_address interface_type interface_id out-label outgoing_label
Example:
RP/0/RP0/CPU0:router(config-mpls-static-af-lbl)# forward path 1 nexthop 10.2.2.2 gigabitEthernet
0/0/0/1 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, through the GigabitEthernet interface, 0/0/0/1.
Step 6
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.

Allocate Static MPLS Label to an IP Prefix and Configure a LSP

Static MPLS label bindings for IP prefixes are used by MPLS applications such as Label Distribution Protocol
(LDP) or Border Gateway Protocol (BGP) for MPLS switching. It is possible to define a static LSP for the
static label.

Allocate Static MPLS Label to an IP Prefix and Configure a LSP

Cisco IOS XR MPLS Configuration Guide for the Cisco CRS Router, Release 5.1.x
105

Advertisement

Table of Contents
loading

Table of Contents