Example: Enabling MPLS (CLI)

To include a device running JUNOS Software in an MPLS network, you must enable MPLS on the device. Perform these tasks on all of the devices running JUNOS Software.

The following example shows how to enable MPLS for packet-based processing. It also shows how to enable the MPLS family and MPLS process on the ge-1/0/0 transit interface.

  1. Navigate to the security forwarding options level of the configuration hierarchy.
    [edit]user@host# edit security forwarding-options
  2. Enable MPLS for packet-based processing.
    [edit security forwarding-options]user@host# set family mpls mode packet-based
  3. Navigate to the interfaces level of the configuration hierarchy.
    [edit security forwarding-options]user@host# topuser@host# edit interfaces
  4. Enable the MPLS family on each transit interface that you want to include in the MPLS network. For example:
    [edit interfaces]user@host# set interfaces ge-1/0/0 unit 0 family mpls
  5. Navigate to the protocols mpls level of the configuration hierarchy.
    [edit interfaces]user@host# topuser@host# edit protocols mpls
  6. Enable the MPLS process on all of the transit interfaces in the MPLS network. For example:
    [edit protocols mpls]user@host# set interface all
  7. If you are finished configuring the device, commit the configuration.
    [edit]user@host# commit
  8. Reboot the device.

Caution: If you disable MPLS and switch back to using the security services (flow-based processing), we recommend that you restart your router. Management sessions are reset, and transit traffic is interrupted.