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:

  1. 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_address
    • For a loopback address on a Layer 2 configuration:

      [edit]user@host# edit interfaces lo0 unit logical_interface family inet address ipv4_address primary
    • For 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
  2. 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 mpls
  3. Configure 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_type
  4. Commit the configuration if you are finished configuring the device.

    [edit]user@host# commit

Related Topics