Cisco NCS 5500 Series Configuration Manual page 28

Mpls ios xr release 6.2.x
Hide thumbs Also See for NCS 5500 Series:
Table of Contents

Advertisement

Define Label Range and Enable MPLS Encapsulation
Also, the dynamic label range needs to be defined. Any label that falls outside this dynamic range is available
for manually allocating as static labels. The router does not verify statically-configured labels against the
specified label range. Therefore, to prevent label discrepancy, ensure that you do not configure static MPLS
labels that fall within the dynamic label range.
Configuration Example
You have to accomplish the following to complete the MPLS static labeling configuration. Values are provided
as an example.
1 Define a dynamic label range, which in this task is set between 17000 and 18000.
2 Enable MPLS encapsulation on the required interface.
3 Setup a static MPLS LSP for a specific ingress label 24035.
4 Specify the forwarding information so that for packets that are received with the label, 24035, the MPLS
protocol swaps labels and applies the label, 24036. After applying the new label, it forwards the packets
to the next hop, 10.2.2.2, through the specified interface.
RP/0/RP0/CPU0:router(config)#mpls label range table 0 17000 18000
RP/0/RP0/CPU0:router(config)#commit
RP/0/RP0/CPU0:router(config)#mpls static
RP/0/RP0/CPU0:router(config-mpls-static)# interface HundredGigE 0/0/0/3
RP/0/RP0/CPU0:router(config-mpls-static)#address-family ipv4 unicast
RP/0/RP0/CPU0:router(config-mpls-static-af)#local-label 24035 allocate
RP/0/RP0/CPU0:router(config-mpls-static-af-lbl)#forward
RP/0/RP0/CPU0:router(config-mpls-static-af-lbl-fwd)#
path 1 nexthop HundredGigE 0/0/0/1 10.2.2.2 out-label 24036
RP/0/RP0/CPU0:router(config-mpls-static-af-lbl-fwd)# commit
Verification
Verify the interfaces on which MPLS is enabled
RP/0/RP0/CPU0:router# show
Mon May 12 06:21:30.937 DST
Interface
-------------------------- -------- -------- -------- --------
TenGigE0/0/0/5
Verify that the status is "Created" for the specified label value.
RP/0/RP0/CPU0:router#show mpls static local-label all
Tue Apr 22 18:21:55.764 UTC
Label
------- --------------- ------------ ---------------- --------------- --------
24035
Check the dynamic range and ensure that the specified local-label value is outside this range.
RP/0/RP0/CPU0:router#show mpls label range
Mon Apr 28 19:56:00.596 IST
Range for dynamic labels: Min/Max: 17000/18000
Verify that the MPLS static configuration has taken effect, and the label forwarding is taking place.
RP/0/RP0/CPU0:router#show mpls lsd forwarding
Wed Nov 25 21:40:57.918 UTC
In_Label, (ID), Path_Info: <Type>
24035, (Static), 1 Paths
1/1: IPv4, 'default':4U, BE1.2, nh=10.20.3.1, lbl=35001, flags=0x0, ext_flags=0x0
MPLS Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x
20
mpls interfaces
LDP
No
VRF
Type
default
X-Connect
Tunnel
Static
Enabled
No
Yes
Yes
Prefix
RW Configured
NA
Yes
Implementing MPLS Static Labeling
Status
Created

Advertisement

Table of Contents
loading

Table of Contents