OcNOS-RON : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Virtual Private Network Commands : route-target
route-target
Use this command to add a list of import and export route-target extended communities to the VRF.
This command creates lists of import and export route-target extended communities for the VRF. It specifies a target VPN extended community. Execute the command once for each community. All routes with the specific route-target extended community are imported into all VRFs with the same extended community as an import route-target.
Use the no parameter with this command to delete a route target.
Route-target values on a MAC-VRF can be manually configured or auto derived from BGP.
Note: Auto-RT is supported only with ASN of 2bytes.
Command Syntax
route-target (import|export|both) (ASN:nn_or_IP-address:nn|evpn-auto-rt)
no route-target (import|export|both) (ASN:nn_or_IP-address:nn|evpn-auto-rt)
Parameters
import
Import routing information
export
Export routing information
both
Import and export routing information
ASN:nn_or_IP-address:nn
 
AS number and an arbitrary number (for example, 100:1). Otherwise, specify a 32-bit IP address and an arbitrary number (for example, 192.16.10.1:1).
evpn-auto-rt
route-target auto-derived from BGP
Default
No default value is specified
Command Mode
VRF mode
Applicability
This command was introduced before OcNOS version 1.3 and evpn-auto-rt option for mac-vrf is introduced from in OcNOS version 6.0.0.
Examples
(config)#ip vrf VRF_A
(config-vrf)#route-target both 100:10
 
(config)#ip vrf VRF_A
(config-vrf)#route-target import 100:20
 
(config)#mac vrf l2vrf1
(config-vrf)#route-target both evpn-auto-rt
 
Last modified date: 08/28/2023