Configuring MPLS on EX8200 and EX4500 Provider Switches (CLI Procedure)

 

You can configure MPLS on EX8200 and EX4500 switches to increase transport efficiency in your network. MPLS services can be used to connect various sites to a backbone network and to ensure better performance for low-latency applications such as VoIP and other business-critical functions.

To implement MPLS on EX Series switches, you must configure at least one provider switch as a transit switch for the MPLS packets. The configuration of all the provider switches remains the same regardless of whether the provider edge (PE) switches are using circuit cross-connect (CCC) or using MPLS over IP for the customer edge interfaces. Likewise, you do not need to change the configuration of the provider switches if you implement an MPLS-based Layer 2 VPN, Layer 3 VPN, or a Layer 2 circuit configuration.

MPLS requires the configuration of a routing protocol (OSPF or IS-IS) on the core interfaces and the loopback interface of all the switches. This procedure includes the configuration of OSPF on the provider switch. For information on configuring IS-IS as the routing protocol, see Junos OS Routing Protocols Configuration Guide.

To configure the provider switch, complete the following tasks:

  1. Enable the routing protocol (OSPF or IS-IS) on the loopback interface and on the core interfaces:Note

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

    [edit protocols]

    user@switch# set ospf area 0.0.0.0 interface lo0.0

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

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

    user@switch# set ospf area 0.0.0.0 interface ae0

  2. Enable traffic engineering for the routing protocol (traffic engineering must be explicitly enabled for OSPF):
    [edit protocols]

    user@switch# set ospf traffic-engineering

  3. Enable MPLS within the protocols stanza and apply it to the core interfaces:
    [edit protocols]

    user@switch# set mpls interface ge-0/0/5.0

    user@switch# set mpls interface ge-0/0/6.0

    user@switch# set mpls interface ae0

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

    user@switch# set rsvp interface lo0.0

    user@switch# set rsvp interface ge-0/0/5.0

    user@switch# set rsvp interface ge-0/0/6.0

    user@switch# set rsvp interface ae0

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

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

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

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

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


  6. Configure family mpls on the logical units of the core interfaces:
    [edit]

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

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

    user@switch# set interfaces ae0 unit 0 family mpls


    Note

    You can enable family mpls on either individual interfaces or aggregated Ethernet interfaces. You cannot enable it on tagged VLAN interfaces.