Related Documentation
- EX Series
- Example: Configuring MPLS on EX Series Switches
- Example: Configuring MPLS-Based Layer 2 VPNs
- Verifying That MPLS Is Working Correctly
- Understanding Junos OS MPLS Components for EX Series Switches
- M Series
- Example: Configuring MPLS-Based Layer 2 VPNs
- MX Series
- Example: Configuring MPLS-Based Layer 2 VPNs
- T Series
- Example: Configuring MPLS-Based Layer 2 VPNs
Configuring an MPLS-Based VLAN CCC Using the Connection Method (CLI Procedure)
You can configure an 802.1Q VLAN as an MPLS-based connection using EX8200 sand EX4500 switches to interconnect multiple customer sites with Layer 2 technology.
This topic describes configuring provider edge (PE) switches in an MPLS network using a circuit cross-connect (CCC) on a tagged VLAN interface (802.1Q VLAN) rather than a simple interface.
![]() | Note: You do not need to make any changes to existing provider switches in your MPLS network to support this type of configuration. For information on configuring provider switches, see Configuring MPLS on Provider Switches (CLI Procedure). |
![]() | Note: You can send any kind of traffic over a CCC, including nonstandard bridge protocol data units (BPDUs) generated by other vendors’ equipment. |
![]() | Note: If you configure a physical interface as VLAN-tagged and with the vlan-ccc encapsulation, you cannot configure the associated logical interfaces with the inet family. Doing so could cause the logical interfaces to drop packets. |
To configure a PE switch with a VLAN CCC and an MPLS-based connections:
- Configure OSPF (or IS-IS) on the loopback (or switch address)
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 interface-name
user@switch# set ospf area 0.0.0.0 interface interface-name
user@switch# set ospf area 0.0.0.0 interface interface-name
- Enable traffic engineering for the routing protocol:
[edit protocols]
user@switch# set ospf traffic-engineering
- Configure an IP address for the loopback interface and
for the core interfaces:
[edit]
user@switch# set interfaces lo0 unit logical-unit-number family inet address address
user@switch# set interfaces interface-name unit logical-unit-number family inet address address
user@switch# set interfaces interface-name unit logical-unit-number family inet address address
user@switch# set interfaces interface-name unit logical-unit-number family inet address address - Enable the MPLS protocol with cspf disabled:

Note: CSPF is a shortest-path-first algorithm that has been modified to take into account specific restrictions when the shortest path across the network is calculated. You need to disable CSPF for link protection to function properly on interarea paths.
- Enable VLAN tagging on the customer edge interface of
the local PE switch:
[edit]
user@switch# set interfaces interface-name vlan-tagging - Configure the customer edge interface to use encapsulation vlan-ccc:
[edit]
user@switch# set interfaces interface-name encapsulation vlan-ccc - Configure the logical unit of the customer edge interface
with a VLAN ID:

Note: The VLAN ID cannot be configured on logical interface unit 0.
The same VLAN ID must be used when configuring the customer edge interface on the other PE switch.
[edit ]
user@switch# set interfaces interface-name logical-unit-numbervlan-id vlan-id - Define the label switched path (LSP):
[edit protocols]
user@switch# set mpls label-switched-path lsp-name from address
user@switch# set mpls label-switched-path lsp-name to address

Tip: You will need to use the specified LSP name again when configuring the CCC.
- Configure the connection between the two circuits in the
CCC connection
[edit protocols]
user@switch# set connections remote-interface-switch interface-switch interface local-interface
user@switch# set connections remote-interface-switch interface-switch transmit-lsp destination-lsp
user@switch# set connections remote-interface-switch interface-switch receive-lsp source-lsp
Related Documentation
- EX Series
- Example: Configuring MPLS on EX Series Switches
- Example: Configuring MPLS-Based Layer 2 VPNs
- Verifying That MPLS Is Working Correctly
- Understanding Junos OS MPLS Components for EX Series Switches
- M Series
- Example: Configuring MPLS-Based Layer 2 VPNs
- MX Series
- Example: Configuring MPLS-Based Layer 2 VPNs
- T Series
- Example: Configuring MPLS-Based Layer 2 VPNs

