route-target

Configures route-target for distribution of routes between VPN routing tables.

Syntax

route-target { import | export | both } ASN-nn
no route-target

Parameters

import
Specifies export.
export
Specifies export.
both
Specifies both export and import.
ASN-nn
Composed of the local ASN number followed by a colon ":" and a unique arbitrary number. For example 3:6.

Modes

VRF configuration mode

Usage Guidelines

The no form of the command to delete configuration for the route-target for distribution.

Examples

The following example shows how to configures route-target for distribution of routes between VPN routing tables.

device# configure terminal
device(config)# vrf vpn1
device#(config-vrf-vpn1)# rd1 1:2
device#(config-vrf-vpn1)# vpn-statistics
device#(config-vrf-vpn1)# address-family ipv4 unicast
device#(config-vrf-vpn1-ipv4-unicast)# route-target-import 100:1
device#(config-vrf-vpn1-ipv4-unicast)# route-target-export 100:1