Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Example: Configuring VNI Route Targets Automatically

 

This example shows how to automatically derive route targets for multiple VNIs in an EVPN-VXLAN topology.

Requirements

This example uses the following hardware and software components:

  • A QFX Series switch.

  • Junos OS version 15.1X53-D30

Overview

The vrf-target statement can be used to configure specific route targets for each VNI under vni-options. You can configure the vrf-target statement with the auto option to automatically derive route targets for each VNI.

Configuration

To configure the vrf-target statement with the auto option, perform these tasks:

Configuring VNI Route Target Automatic Derivation

Step-by-Step Procedure

To configure the automatic derivation of VNI route targets:

  1. At the [switch-options] hierarchy level, configure the vtep-source-interface, and route-distiguisher statements. Then configure the vrf-import statement with a policy that will be configured in a later step. Next, configure the vrf-target statement with a target and the auto option. The route target configured under vrf-target will be used by type 1 EVPN routes. Type 2 and type 3 EVPN routes will use the auto-derived per-VNI route target for export and import.
  2. At the [evpn] hierarchy level, configure the encapsulation and extended-vni-list statements. For the purposes of this example, the extended-vni-list statement will be configured with all, to apply automatic route targets to all VNIs.
  3. Configure two policies at the [policy-statement] hierarchy level. The first policy will be named comglobal and the next policy will be named import-policy. These policies function as an import filter that accepts routes with the auto-derived route target.

Results

Use the show command to verify the results of your configuration.