Configuring Interfaces for MPLS VPNs (CLI Procedure)
Configuring the router interfaces that participate in the VPN is similar to configuring them for other uses, with a few requirements for the VPN. Perform the following tasks for each interface involved in the VPN, except Layer 3 loopback interfaces, which do not require other configuration.
To configure an interface for an MPLS VPN:
Configure IPv4 on all of the routers’ interfaces.
For all interfaces except loopback interfaces and Layer 2 VPN interfaces facing a CE router:
[edit]user@host# edit interfaces interface-name unit logical_interface family inet address ipv4_addressFor a loopback address on a Layer 2 configuration:
[edit]user@host# edit interfaces lo0 unit logical_interface family inet address ipv4_address primaryFor a Layer 2 VPN interface facing a CE router:
[edit] user@host# set interfaces interface-name vlan-tagging encapsulation vlan-ccc unit logical_interface encapsulation vlan-ccc vlan-id id-number
Configure the MPLS address family on the PE router or provider router interfaces that communicate with other PE routers or provider routers (and not loopback addresses).
[edit interfaces interface] user@host# set unit logical_interface family mplsConfigure encapsulation for the interfaces on the PE routers that communicate with the CE routers in Layer 2 VPNs and Layer 2 circuits. If multiple logical units are configured, the encapsulation type is needed at the interface level only. It is always required at the unit level.
[edit interfaces interface] user@host# set encapsulation encapsulation_typeuser@host# set unit logical_interface encapsulation encapsulation_typeCommit the configuration if you are finished configuring the device.
[edit]user@host# commit
Related Topics
- Junos OS Feature Support Reference for SRX Series and J Series Devices
- MPLS Layer 2 VPN Configuration Overview
- MPLS Layer 3 VPN Configuration Overview
- MPLS Layer 2 Circuit Configuration Overview
Hide Navigation Pane
Show Navigation Pane
Download
SHA1