Run the command set protocol protocols bgp neighbor evpn neighbor activate to activate enable or disable the BGP peer or peer group within the EVPN address family to enable EVPN route exchange with the specified BGP peer.
Optional parameter vrf can be used to identify a VRF, if not defined, the command takes effect on the default VRF. Optional parameter l2vpn can be added to make this command take effect on layer 2 EVPN.
To delete this configuration, run the command delete protocol bgp evpn neighbor activate.
Command Syntax
set protocol protocols bgp [vrf <text>] [l2vpn] evpn neighbor <bgp-peer> activatedelete protocol bgp [vrf <text>] [l2vpn] evpn neighbor <bgp-peer> activate<vrf-name>] neighbor <bgp-peer> evpn activate <true | false>
Parameter
Parameter | Description |
vrf |
<vrf- |
name> | Specifies the name of the VRF. |
l2vpn
Specifies whether the command applies to layer 2 EVPN only.
neighbor <bgp-peer>
neighbor <bgp-peer> | Specifies the BGP neighbor IPv4 or IPv6 address. |
activate <true | false> | Enables or disables the address family for the specified neighbor
|
Example
- Configure the device to enable layer 2 EVPN BGP route exchange with peer 3.3.3.3 in VRF BLUE.
Code Block |
---|
admin@Xorplus# set protocolprotocols bgp vrf BLUE l2vpn neighbor 3.3.3.3 evpn neighboractivate peer1 activatetrue admin@Xorplus# commit |