route-target
Syntax
route-target {import | export | both} {auto | <AS-NUMBER:ID> | <IP-ADDRESS:ID>}
no route-target {import | export | both} {auto | <AS-NUMBER:ID> | <IP-ADDRESS:ID>}
Description
Controls the import and export of VPN routes only to the systems in the network for which routes are needed. The default value is NULL. Route Targets (RT) have to be manually configured by a user.
The
no
form of this command removes the currently configured value.
Command context
config-evpn-vlan
Parameters
import
Configures the route-target to import EVPN routes.
export
Configures the route-target to export EVPN routes.
both
Configures the route-target to import and export EVPN routes.
auto
Specifies automatic route filtering.
<AS-NUMBER:ID>
Specifies the AS number. It can be a 1-byte or 4-byte value. If the AS number is a 2-byte value, the administrative number is a 4-byte value and if the AS number is 4-byte value, the administrative number is a 2-byte value.
<IP-ADDRESS:ID>
Specifies the IP address. It is a 4-byte value and the id is 2 bytes.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Configuring Route Targets for EVPN VLAN:
switch(config-evpn)# vlan 10 switch(config-evpn-vlan-10)# route-target import 6800:1 switch(config-evpn-vlan-10)# route-target export 6800:1 switch(config-evpn)# vlan 20 switch(config-evpn-vlan-20)# route-target both 6900:1