Configuring MPLS on Provider Switches (CLI Procedure)
JUNOS MPLS for EX Series switches supports Layer 2 protocols and Layer 2 virtual private networks (VPNs). You can configure MPLS on your switches to increase transport efficiency in your network. MPLS services can be used to connect various sites to a backbone network or 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.
To configure the provider switch, complete the following tasks:
- Enabling the OSPF Routing Protocol on the Loopback and Core Interfaces
- Enabling Traffic Engineering for the Routing Protocol
- Enabling MPLS and Applying MPLS to the Core Interfaces
- Enabling RSVP and Applying It to the Loopback and Core Interfaces
- Configuring IP Addresses for the Loopback and Core Interfaces
- Enabling Family MPLS on the Core Interfaces
Enabling the OSPF Routing Protocol on the Loopback and Core Interfaces
Enable OSPF on the loopback address and on the core interface addresses.
![]() | Note: You can use the switch address as an alternative to the loopback address. |
- Configure OSPF on the loopback and core interfaces:
[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
Enabling Traffic Engineering for the Routing Protocol
Enable traffic engineering for the routing protocol (OSPF) on the loopback address and on the core interface addresses.
- Enable traffic engineering for the routing
protocol:
[edit protocols]
user@switch# set ospf traffic-engineering
Enabling MPLS and Applying MPLS to the Core Interfaces
Enable MPLS within the protocols stanza and apply it to the core interfaces.
- Configure MPLS on the core interface addresses:
Enabling RSVP and Applying It to the Loopback and Core Interfaces
Enable RSVP and apply it to the loopback and the core interfaces.
- Configure RSVP on the loopback address and
the core interface addresses:
[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
Configuring IP Addresses for the Loopback and Core Interfaces
Configure IP addresses for the loopback and core interfaces.
- 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
Enabling Family MPLS on the Core Interfaces
On the logical unit of the core interface addresses, configure these interfaces to belong to family mpls. This configuration identifies the interfaces used for forwarding MPLS packets.
- 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. |