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

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 a VPN routing instance for CLNS , copy the following commands and paste them into the CLI.

[edit]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.

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

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.

Related Topics