# Defining Route Targets for VRFs

To define route targets for VRFs, do the following:

1. Allocate one route-target extended-community value per VPN.
2. Define the route-target import list and a route-target export list to include only the route-target extended-community values for the VPN(s) to which the VRF belongs:
   host1:vr1(config-vrf)#route-target export 777:100 host1:vr1(config-vrf)#route-target import 777:100

   If the import and export lists are identical, you can use the both keyword to define the lists simultaneously:

   host1:vr1(config-vrf)#route-target both 777:105

A route-target export list can be modified on the sending PE router by an export map or outbound routing policy. It can be modified on the receiving PE router by an import map or inbound routing policy.

#### Related Documentation

- Definition of Route Targets for VRFs Overview
- route-target