Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring a Routing Instance for MPLS VPNs (CLI Procedure)

To configure a VPN routing instance on each PE router:

  1. Create the routing instance.
    [edit] user@host# edit routing-instances routing-instance-name
  2. Create a routing instance description. (This text appears in the output of the show route instance detail command.)
    [edit routing-instances routing-instance-name]user@host# set description “text
  3. Specify the instance type, either l2vpn for Layer 2 VPNs or vrf for Layer 3 VPNs.
    [edit routing-instances routing-instance-name]user@host# set instance-type instance-type
  4. Specify the interface of the remote PE router.
    [edit routing-instances routing-instance-name]user@host# set interface interface-name
  5. Specify the route distinguisher using one of the following commands:
    [edit routing-instances routing-instance-name]user@host# set route-distinguisheras-number:numberuser@host# set route-distinguisher ip-address:number
  6. Specify the policy for the Layer 2 VRF table.
    [edit routing-instances routing-instance-name]user@host# set vrf-import import-policy-name vrf-export export-policy-name
  7. Specify the policy for the Layer 3 VRF table.
    [edit routing-instances routing-instance-name]user@host# set vrf-target target:community-id

    Where community-id is either as-number:number or ip-address:number.

  8. Commit the configuration if you are finished configuring the device.
    [edit]user@host# commit

Modified: 2013-06-12