Enables auto-generation of the import and export route-target community attributes for an Ethernet Virtual Private Network (EVPN) default instance.
Disabled.
EVPN configuration mode
The no form of this command removes configured route target parameters.
The following example configures auto-generation of the import and export route-target community attributes for EVPN default instance.
device# configure terminal device(config)# evpn device(config-evpn-default)# route-target both auto
The following example configures auto-generation of the import route-target community attribute and specifies that the AS path be ignored to the route for EVPN default instance.
device# configure terminal device(config)# evpn device(config-evpn-default)# route-target import auto ignore-as
The following example configures auto-generation of the export route-target community attribute for EVPN myinstance instance.
device# configure terminal device(config)# evpn myinstance device(config-evpn-myinstance)# route-target export auto