Run the command set protocol bgp evpn vni advertise-subnet to advertises BGP EVPN Type-5 prefixes for a specific 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 affects layer 2 VPN.
Run the command delete protocol bgp evpn vni advertise-subnet to remove this configuration.
Command Syntax
set protocol bgp [vrf <text>] [l2vpn] evpn vni <1-16777215> advertise-subnet
delete protocol bgp [vrf <text>] [l2vpn] evpn vni <1-16777215> advertise-subnet
Parameter
Parameter | Description |
vrf <vrf-name> | Specifies the name of the VRF. |
l2vpn | Specifies that the configuration applies to layer 2 EVPN. |
evpn vni <1-16777215> | Specifies the VNI, its value is an integer that ranges from 1 to 16777215. |
Example
- Configure the device to advertise BGP EVPN Type-5 routes in VRF BLUE and VNI 20.
admin@Xorplus# set protocol bgp vrf BLUE l2vpn evpn vni 20 advertise-subnet admin@Xorplus# commit