route-target {evpn}

Syntax

route-target {import | export | both} {auto ||} evpn no route-target {import | export | both} {auto ||} evpn

描述

Configures the route target (RT) for EVPN VRF to control 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 have to be manually configured by a user.

The没有form of this command removes the RT in EVPN VRF.

Command context

config-vrf

Parameters

进口

Imports the VRF routes that match the RT.

export

出口RT in the VRF routes.

both

Configures both import and export of routes for the VRF.

汽车

Specifies automatic route filtering.

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. If the AS number is 4-byte value, the administrative number is a 2-byte value.

Specifies the IP address. It is a 4-byte value and the id is 2 byte value.

权威

Administrators or local user group members with execution rights for this command.

Examples

Configuring Route Targets for EVPN VRF:

switch(config-vrf)#route-target import 6800:1 evpnswitch(config-vrf)#route-target export 6800:1 evpnswitch(config-vrf)#route-target both 6800:1 evpn