Configuring MPLS on Provider Switches

 

To implement MPLS, you must configure at least one provider switch as a transit switch for the MPLS packets.

MPLS requires the configuration of an interior gateway protocol (OSPF) and a signaling protocol (RSVP) on the core interfaces and the loopback interface of all the switches. This procedure includes the configuration of OSPF on the provider switch.

To configure the provider switch, complete the following tasks:

  1. Configure OSPF on the loopback and core interfaces:Note

    You can use the switch address as an alternative to the loopback interface.

    [edit protocols ospf]

    user@switch# set area 0.0.0.0 interface lo0.0

    user@switch# set area 0.0.0.0 interface xe-0/0/5.0

    user@switch# set area 0.0.0.0 interface xe-0/0/6.0

    user@switch# set area 0.0.0.0 interface ae0

  2. Configure MPLS on the core interfaces:
    [edit protocols mpls]

    user@switch# set interface xe-0/0/5.0

    user@switch# set interface xe-0/0/6.0

    user@switch# set interface ae0

  3. Configure RSVP on the loopback interface and the core interfaces:
    [edit protocols rsvp]

    user@switch# set interface lo0.0

    user@switch# set interface xe-0/0/5.0

    user@switch# set interface xe-0/0/6.0

    user@switch# set interface ae0

  4. Configure an IP address for the loopback interface and the core interfaces:
    [edit interfaces]

    user@switch# set lo0 unit 0 family inet address 127.1.1.1/32

    user@switch# set xe-0/0/5 unit 0 family inet address 10.1.5.1/24

    user@switch# set xe-0/0/6 unit 0 family inet address 10.1.6.1/24

    user@switch# set ae0 unit 0 family inet address 10.1.9.2/24


  5. Configure family mpls on the logical units of the core interfaces, thereby identifying the interfaces that will be used for forwarding MPLS packets:
    [edit interfaces]

    user@switch# set xe-0/0/5 unit 0 family mpls

    user@switch# set xe-0/0/6 unit 0 family mpls

    user@switch# set ae0 unit 0 family mpls