Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring a VPN Routing Instance for CLNS

    This example shows how to create a CLNS routing instance and set the instance type for Layer 3 VPNs.

    Requirements

    Before you begin, configure the network interfaces. See the Junos OS Interfaces Configuration Guide for Security Devices PDF Document.

    Overview

    The following example shows how to create a CLNS routing instance called aaaa and set the instance type to VRF for Layer 3 VPNs. Within the example, you specify that the lo0.1 interface, e1–2/0/0.0 interface, and t1–3/0/0.0 interface all belong to the routing instance. The route distinguisher is set as 10.255.245.1:1 and the policy for the Layer 3 VRF table is set as target:11111:1.

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

    set routing-instances aaaa instance-type vrfset routing-instances aaaa interface lo0.1 set routing-instances aaaa interface ge-0/0/3 set routing-instances aaaa interface ge-0/0/2set routing-instances aaaa route-distinguisher 10.255.245.1:1 set routing-instances aaaa vrf-target target:11111:1

    Step-by-Step Procedure

    The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide PDF Document.

    To configure a VPN routing instance:

    1. Create the routing instance.
      [edit]user@host# edit routing-instances aaaa
    2. Specify the routing instance type.
      [edit routing-instances aaaa]user@host# set instance-type vrf
    3. Specify the interfaces that belong to the routing instance.
      [edit routing-instances aaaa]user@host# set interface lo0.1user@host# set interface ge-0/0/3user@host# set interface ge-0/0/2
    4. Specify the route distinguisher.
      [edit routing-instances aaaa]user@host# set route-distinguisher 10.255.245.1:1
    5. Specify the policy for the Layer 3 VRF table.
      [edit routing-instances aaaa]user@host# set vrf-target target:11111:1
    6. Enable family ISO on the interfaces edit interfaces interface-name unit-id.
      [edit routing-instances aaaa]user@host# set family ISO

    Results

    From configuration mode, confirm your configuration by entering the show routing-instances command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

    [edit ]user@host# show routing-instancesinstance-type vrf;interface ge-0/0/2.0;interface ge-0/0/3.0;interface lo0.1; route-distinguisher 10.255.245.1:1;vrf-target target:11111:1;

    If you are done configuring the device, enter commit from configuration mode.

    Verification

    To confirm that the configuration is working properly, perform the following task:

    Verifying the Configured CLNS Routing Instance

    Purpose

    Verify that the CLNS routing instance is configured.

    Action

    From operational mode, enter the show routing-instances command.

    Published: 2012-06-29