[Confirm]To add a VNI to BGP EVPN routing, run the command set protocol bgp evpn vni. Optional parameter vrf can be used to specify a VRF, if no VRF is specified the command takes effect on the default VRF. The other optional parameter is l2vpn to specify that the command only affects layer 2 EVPN.
The command delete protocol bgp evpn vni can be used to remove this configuration.
Command Syntax
set protocol bgp [vrf <text>] [l2vpn] evpn vni <1-16777215>
delete protocol bgp [vrf <text>] [l2vpn] evpn vni <1-16777215>
Parameter
Parameter | Description |
vrf <vrf-name> | Specifies the name of the VRF. |
l2vpn | Specifies that the configuration applies to layer 2 EVPN. |
vni <1-16777215> | Specifies the VNI to add to the BGP EVPN routing. The value is an integer that ranges from 1 to 16777215. |
Example
- Configure the device to add VNI 20 to layer 2 EVPN BGP routing in the VRF BLUE.
Code Block |
---|
admin@Xorplus# set protocol bgp vrf BLUE l2vpn evpn vni 20
admin@Xorplus# commit |