# MPLS Interface Configuration Tasks

These tasks are performed at the major interface over which you want to run MPLS. Creating or accessing an interface places the CLI in Interface Configuration mode. You can then configure MPLS options on that interface. The following sequence is arbitrary; you can perform these tasks in any order.

| Note: Loop detection is always enabled in the JunosE MPLS implementation.

Your choice of label distribution protocol determines whether the LDP or RSVP-TE interface configuration tasks are appropriate for your network design.

MPLS interface configuration tasks include the following sets of tasks:

- MPLS Interface Tasks
- LDP Interface Tasks
- RSVP-TE Interface Tasks

## MPLS Interface Tasks

To configure MPLS on the interface:

1. Enable MPLS on the interface.
   host1(config-if)#mpls

   or

   host1(config-if)#no mpls disable
2. (Optional) Configure the interface label space with the VPI and VCI ranges.
   host1(config-if)#mpls atm vpi range 10 200 host1(config-if)#mpls atm vci range 33 4000

   Only ATM AAL5 interfaces support the interface label space. For MPLS interfaces using the interface label space, you must configure the both the VPI and VCI range. If you do not, the interface will remain operationally down.

3. (Optional) Specify an interface for signaling for an MPLS major interface in the interface label space.
   host1(config-if)#mpls signaling-interface atm 4/0.5

## LDP Interface Tasks

To configure LDP on the interface:

1. Start LDP on the interface.
   - Using the default values (an implicit default profile):
     host1(config-if)#mpls ldp
   - Using a previously created profile:
     host1(config-if)#mpls ldp profile ldp5
2. (Optional) Suppress transmission of link hello messages to all LSRs.
   host1(config-if)#mpls ldp link-hello disable

## RSVP-TE Interface Tasks

To configure RSVP-TE on the interface:

1. Start RSVP-TE on the interface.
   - Using the default values (an implicit default profile):
     host1(config-if)#mpls rsvp
   - Using a previously created profile:
     host1(config-if)#mpls rsvp profile rsvp4

   To disable RSVP-TE on the interface:

   host1(config-if)#mpls rsvp disable
2. (Optional) Configure total bandwidth available on the interface.
   host1(config-if)#bandwidth 262144
3. (Optional) Configure total bandwidth reservable for MPLS on the interface.
   host1(config-if)#mpls bandwidth 4096
4. (Optional) Specify thresholds that trigger bandwidth flooding when crossed by an increase or decrease in the total reservable bandwidth.
   host1(config-if)#mpls traffic-eng flood thresholds up 15 host1(config-if)#mpls traffic-eng flood thresholds down 15
5. (Optional) Specify the resource attributes for the interface so that tunnels can discriminate among interfaces.
   host1(config-if)#mpls traffic-eng attribute-flags 0x000001f9
6. (Optional) Configure an administrative weight for the interface that overrides the weight assigned by the IGP.
   host1(config-if)#mpls traffic-eng administrative-weight 25