Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

MPLS Support in cRPD

How MPLS is supported on cRPD

Multiprotocol Label Switching (MPLS) configuration is supported on cRPD for forwarding packets to the destination in MPLS network.

With MPLS, only the first device does a routing lookup. Instead of finding the next hop, the device finds the ultimate destination along with a path to that destination. The path of an MPLS packet is called a label-switched path (LSP). LSPs are unidirectional routes through a network or an autonomous system (AS). MPLS routers within an AS determine paths through a network through the exchange of MPLS traffic engineering information. Using these paths, the routers direct traffic through the network along an established route. Rather than selecting the next hop along the path as in IP routing, each router is responsible for forwarding the packet to a predetermined next hop address.

Routers that are part of the LSP are label-switching routers (LSRs). An MPLS LSP is established using static LSPs. A static LSP requires each router along the path to be configured explicitly. You must manually configure the path and its associated label values.

cRPD supports only a limited number of Junos OS MPLS features. You can configure MPLS interface, ipv6-tunneling, label-history, label-range, and static-label-switched-path in cRPD CLI under the edit protocols mpls hierarchy.

Supported Features

  • BGP configuration

  • MPLS using PRPD API

  • BGP labeled unicast configuration

Example: Configure Static Label Switched Paths for MPLS in cRPD

This example shows how the VPN traffic flows through a v4 MPLS tunnel among PEs by configuring BGP and MPLS static label switched paths.

Requirements

This example uses the following hardware and software components:

  • Ubuntu software version 18.04

  • Linux kernel version 4.5 or later

  • cRPD software Release version 19.4R1 or later

Before you configure a static LSP for MPLS forwarding, you must install the basic components:

Overview

In this example, PE1 acts as a Label Edge Router or ingress node to the MPLS network, which encapsulates the packets by attaching labels. P acts as Label Switching Router that transfers MPLS packets using labels in the MPLS network.

To configure MPLS, you must first create one or more named paths on the ingress and transit routers. For each path, you can specify some or all transit routers in the path.

Configuring static label-switched paths (LSPs) for MPLS is similar to configuring static routes on individual routers.

Topology

Figure 1 shows the topology used in this example.

Figure 1: MPLS Forwarding in cRPDMPLS Forwarding in cRPD

Configuration

To configure static LSP for MPLS on cRPD:

Configuring PE1 Router

Step-by-Step Procedure

To configure the static LSP:

  1. Create the tables inet.0 and mpls.0.

  2. Configure BGP session.

  3. Configure the static label range and ingress static LSP parameters.

  4. Configure a static route from the ingress PE2.

  5. Configure a VRF routing instance on PE1 and other routing instance parameters.

Results

From configuration mode, confirm your configuration by entering the show protocols bgp and run show configuration protocols mpls commands on PE1. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Configuring Provider P Router.

Step-by-Step Procedure

To configure the static LSP:

  1. Configure router ID for router P.

  2. Configure a transit static LSP for swap and pop labels.

Results

From configuration mode, confirm your configuration by entering the show protocols bgp, run show configuration protocols mpls, and run show mpls interface commands on P. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Configuring PE2 Router

Step-by-Step Procedure

To configure the static LSP for MPLS on PE2:

  1. Configure BGP session.

  2. Configure the ingress static LSP parameters.

  3. Configure router ID and a static route from the ingress PE1.

  4. Configure a VRF routing instance on PE2 and other routing instance parameters.

Results

From configuration mode, confirm your configuration by entering the run show configuration protocols mpls and run show mpls interface commands on PE2. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Verification

Verify MPLS forwarding on PE1

Purpose

To verify the configuration for MPLS on PE1.

Action

From operational mode, enter the show route table vrfblue.inet.0 50.5.5.5 command:

From operational mode, enter the show mpls label usage command:

From operational mode, enter the show mpls static-lsp command:

From operational mode, enter the show route table inet.3 command:

From operational mode, enter the show route table mpls.0 command:

From operational mode, enter the ip route list table 5 50.5.5.5 command:

From operational mode, enter the ip -f mpls route command:

Verify MPLS forwarding on P

Purpose

To verify the configuration for MPLS on P.

Action

From shell mode, enter the show route table mpls.0 command:

From bash shell mode, enter the ip -f mpls route command:

Verify MPLS forwarding on PE2

Purpose

To verify the configuration for MPLS on P.

Action

From shell mode, enter the show route table vrfblue.inet.0 10.1.1.1 command:

From bash shell mode, enter the ip -f mpls route command:

From bash shell mode, enter the ip route list table 5 10.1.1.1 command:

Meaning

You can verify the static LSP between PEs are up on all the devices and the routes are populated in the corresponding route tables inet.o and inet.3 and in the Linux FIB.