Enabling MPLS

Before you enable MPLS, perform the following tasks:

To enable MPLS:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Configure an LSR ID for the local node.

mpls lsr-id lsr-id

By default, no LSR ID is configured.

An LSR ID must be unique in an MPLS network and in IP address format. As a best practice, use the IP address of a loopback interface as an LSR ID.

3. Enter the view of the interface that needs to perform MPLS forwarding.

interface interface-type interface-number

N/A

4. Enable MPLS on the interface.

mpls enable

By default, MPLS is disabled on the interface.