The set protocol bgp evpn advertise-default-gw command is used to configure the gateway VTEPs to advertise the IP/MAC address. Optional parameter vrf can be added to identify the VRF for which to advertise the IP/MAC address. The second optional parameter is the l2vpn, to specify only layer 2 EVPN.
The delete protocol bgp evpn advertise-default-gw can be used to delete the configuration.
...
set protocol bgp [vrf <text>] [l2vpn] evpn advertise-default-gw
delete protocol bgp [vrf <text>] [l2vpn] evpn advertise-default-gw
...
Parameter | Description | ||
vrf <text> | Optional. Specifies the name of the VRF. | l2vpn | Optional. Specifies the configuration applies to layer 2 EVPN only. |
Example
- Configure BGP layer 2 EVPN to advertise default gateway for VRF BLUE.
Code Block |
---|
admin@Xorplus# set protocol bgp vrf BLUE l2vpn advertise-default-gw
admin@Xorplus# commit |
...