Enabling the mpls function, Configuration prerequisites, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual

Page 68: Configuring a static lsp

Advertising
background image

57

Enabling the MPLS function

Enable MPLS on all routers before you can configure other MPLS features.

Configuration prerequisites

Before you enable MPLS, complete the following tasks:

Configure link layer protocols to ensure the connectivity at the link layer.

Assign IP addresses to interfaces so that all neighboring nodes can reach each other at the network
layer.

Configure static routes or an IGP protocol for the LSRs to communicate with each other.

Configuration procedure

Follow these steps to enable MPLS:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the MPLS LSR ID

mpls lsr-id lsr-id

Required
Not configured by default

Enable MPLS globally and enter
MPLS view

mpls

Required
Not enabled by default

Return to system view

quit

Enter interface view

interface interface-type

interface-number

Enable MPLS for the interface

mpls

Required
Not enabled by default

NOTE:

An MPLS LSR ID is in the format of an IP address and must be unique within an MPLS domain. H3C
recommends using the IP address of a loopback interface on an LSR as the MPLS LSR ID.

Configuring a static LSP

The principle of establishing a static LSP is that the outgoing label of an upstream LSR is the incoming

label of its downstream LSR.

Configuration prerequisites

Before you configure a static LSP, complete the following tasks:

Determine the ingress LSR, transit LSRs, and egress LSR for the static LSP.

Enable MPLS on all these LSRs.

Ensure that the ingress LSR has a route to the FEC destination. This is not required on the transit LSRs
and egress LSR.

Advertising