cisco · IOS XE · 8 pp.
Cisco IOS XE Configuring MPLS Static Labels Configuration — Operation manual
Руководство по настройке функции MPLS Static Labels в Cisco IOS: статическая привязка меток к IPv4-префиксам, предварительные требования, ограничения, команды настройки и проверки (mpls label range, mpls static binding ipv4).
Related manuals
Contents
Document text
Restrictions for MPLS Static Labels
Configuring MPLS Static Labels Prerequisites for MPLS Static Labels, on page 1 Restrictions for MPLS Static Labels, on page 1 Information About MPLS Static Labels, on page 2 How to Configure MPLS Static Labels, on page 2 Configuration Examples for MPLS Static Labels, on page 5 Additional References, on page 6 Feature History for MPLS Static Labels, on page 7 Prerequisites for MPLS Static Labels The network must support the following Cisco IOS features before you enable MPLS Static Labels:
• Multiprotocol Label Switching (MPLS) • Cisco Express Forwarding Restrictions for MPLS Static Labels • On a provider edge (PE) router for MPLS VPNs, there’s no mechanism for statically binding a label to a customer network prefix (VPN IPv4 prefix). • MPLS Static Crossconnect is not supported. • MPLS Static Labels is not supported for label-controlled Asynchronous Transfer Mode (lc-atm). • MPLS static bindings are not supported for local prefixes. • VRF aware Static Labels is not supported, Configuring MPLS Static Labels 1
Configuring MPLS Static Prefix Label Bindings
Information About MPLS Static Labels MPLS Static Labels Overview Generally, label switching routers (LSRs) dynamically learn the labels they should use to label-switch packets. They do this by means of label distribution protocols that include: • Label Distribution Protocol (LDP), the Internet Engineering Task Force (IETF) standard, used to bind labels to network addresses.
• Resource Reservation Protocol (RSVP) used to distribute labels for traffic engineering (TE) • Border Gateway Protocol (BGP) used to distribute labels for Multiprotocol Label Switching (MPLS) Virtual Private Networks (VPNs) To use a learned label to label-switch packets, an LSR installs the label into its Label Forwarding Information Base (LFIB). The MPLS Static Labels feature provides the means to configure the binding between a label and an IPv4 prefix statically.
Benefits of MPLS Static Labels Static Bindings Between Labels and IPv4 Prefixes You can configure static bindings between labels and IPv4 prefixes to support MPLS hop-by-hop forwarding through neighbor routers that don’t implement LDP label distribution. How to Configure MPLS Static Labels Configuring MPLS Static Prefix Label Bindings To configure MPLS static prefix/label bindings, use the following commands beginning in global configuration mode: Procedure Configuring MPLS Static Labels Information About MPLS Static Labels Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example:
Enters global configuration mode. Configuring MPLS Static Labels 2
Verifying MPLS Static Prefix Label Bindings
Verifying MPLS Static Prefix Label Bindings To verify the configuration for MPLS static prefix/label bindings, use this procedure: Procedure Step 1 Enter show mpls label range command. The output shows that the new label ranges do not take effect until a reload occurs: Example: Device# show mpls label range Downstream label pool: Min/Max label: 16/983039 [Configured range for next reload: Min/Max label: 200/100000] Range for static labels: Min/Max/Number: 16/199 The following output from the show mpls label range command, executed after a reload, indicates that the new label ranges are in effect: Example: Device# show mpls label range Downstream label pool: Min/Max label:
200/100000 Range for static labels: Min/Max/Number: 16/199 Step 2 Enter the show mpls static binding ipv4 command to show the configured static prefix/label bindings: Example: Device# show mpls static binding ipv4 10.17.17.17/32: Incoming label: 251 (in LIB) Outgoing labels: Configuring MPLS Static Labels Verifying MPLS Static Prefix Label Bindings Command or Action Purpose Device# configure terminal Step 3 mpls label range min-label max-label [static min-static-label max-static-label] Example: Device(config)# mpls label range 200 100000 static 16 199 Specifies a range of labels for use with MPLS Static Labels feature.
(Default is no labels reserved for static assignment.) Step 4 mpls static binding ipv4 prefix mask [input| output nexthop] label Example: Device(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 55 Specifies static binding of labels to IPv4 prefixes. Bindings specified are installed automatically in the MPLS forwarding table as routing demands. Configuring MPLS Static Labels 3
Monitoring and Maintaining MPLS Static Labels
10.0.0.1 18 10.18.18.18/32: Incoming label: 201 (in LIB) Outgoing labels: 10.0.0.1 implicit-null Step 3 Use the show mpls forwarding-table command to determine which static prefix/label bindings are currently in use for MPLS forwarding. Example: Device# show mpls forwarding-table Local Outgoing Prefix Bytes tag Outgoing Next Hop tag tag or VC or Tunnel Id switched interface 201 Pop tag 10.18.18.18/32 0 PO1/1/0 point2point 2/35 10.18.18.18/32 0 AT4/1/0.1 point2point 251 18 10.17.17.17/32 0 PO1/1/0 point2point Monitoring and Maintaining MPLS Static Labels To monitor and maintain MPLS Static Labels, use one or more of the following commands:
Procedure Configuring MPLS Static Labels Monitoring and Maintaining MPLS Static Labels Command or Action Purpose Step 1 enable Example: Devie> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 show mpls forwarding-table Example: Device# show mpls forwarding-table Displays the contents of the MPLS LFIB. Step 3 show mpls label range Example: Device# show mpls label range Displays information about the static label range. Step 4 show mpls static binding ipv4 Example: Device# show mpls static binding ipv4 Displays information about the configured static prefix/label bindings. Configuring MPLS Static Labels 4