MPLS Static Labels
Table of Contents
Introduction
Usual labels are automatically distributed using LDP, RSPV or BGP. If a LSR is connected to a device that supports MPLS forwarding but does not support LDP, static labels can be used to maintain forwarding.
MPLS Static Labels
- LDP, RSVP or BGP can be used to dynamically distribute label bindings. After an LSR receives labels, it installs the bindings into LFIB for MPLS forwarding.
- Using Static Labels, an LSR can install label bindings for either one of the following:
- Static labels to IPv4 prefix binding.
- Static crossconnects of labels.
- To configure static label binding, define a static label range.
- Can't configure static labels for IPv4 VPN prefixes.
- Bindings remain in LFIB even if the next hop LSR is down.
Static Label to IPv4 Prefix Binding
- Static bindings between labels and IPv4 prefixes can be configured to support MPLS hop-by-hop forwarding through neighbor routers that do not implement LDP label distribution.
Static Crossconnect of Labels
- Static crossconnects can be configured to support MPLS Label Switched Path (LSP) midpoints when neighbor routers do not implement either the LDP or RSVP label distribution, but do implement an MPLS forwarding path.
Relevant Commands
mpls label range static
To enable static label bindings, a static label range is necessary.
R1(config)# mpls label range (min) (max) static (min-label) (max-label)
mpls static bindings ipv4
Configures a static MPLS label binding. First and second configures local label, while third configures outgoing label/remote label.
R1(config)# mpls static binding ipv4 (a.b.c.d) (mask) (label)
R1(config)# mpls static binding ipv4 (a.b.c.d) (mask) input (local-label)
R1(config)# mpls static binding ipv4 (a.b.c.d) (mask) output (dst-ip) { (lable) | explicit-null | implicit-null }
mpls label range static
To enable static label bindings, a static label range is necessary.
R1(config)# mpls label range (min) (max) static (min-label) (max-label)
show mpls static bindings
show mpls static bindings
Additional Resources
MPLS Static Labels - MPLS Basic MPLS Configuration Guide, Cisco IOS Release 12.2SR