/
set protocols bgp evpn vni route-target type
set protocols bgp evpn vni route-target type
If we want the route target (RT) to be configured manually instead of being auto-configured, run the command set protocols bgp evpn vni route-target type. The command specifies the route target and its type as well. Parameter type can have three possible values, export, import or both. If you choose both then the RT can be used as both an import and export route target.
Run the command delete protocols bgp evpn vni route-target to delete this configuration.
Command Syntax
set protocols bgp evpn vni <vni-id> route-target <route-target> type <both | export | import>
delete protocols bgp evpn vni <vni-id> route-target <route-target> type <both | export | import>
Parameter
Parameter | Description |
vni <vni-id> | Specifies the VNI ID. The value is an integer that ranges from 1 to 16777215. |
route-target <route-target> | Specifies the route target. The value of route target follows the format AS:VNI, e.g. 65100:20 |
type <both | export | import> | Specifies the RT type as either import, export or both. |
Example
- Configure the route target value 65100:20 for VNI 20 and apply this RT for both export and import of routes.
admin@Xorplus# set protocols bgp evpn vni 20 route-target 65100:20 type both admin@Xorplus# commit
Copyright © 2025 Pica8 Inc. All Rights Reserved.