OcNOS-RON-6.3.1 : 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.
Command Syntax
route-target (import|export|both) ASN:nn_or_IP-address:nn
no route-target (import|export|both) ASN:nn_or_IP-address:nn
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).
Default
No default value is specified
Command Mode
VRF mode
Applicability
This command was introduced before OcNOS version 1.3.
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
 
Last modified date: 07-13-2023