The set protocol protocols 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 protocols bgp evpn advertise-default-gw can be used to delete the configuration.
Command Syntax
set protocol protocols bgp [vrf <text>] [l2vpn] <vrf-name>] evpn advertise-default-gw
delete protocol protocols bgp [vrf <vrf<text>] [l2vpn] -name>] evpn advertise-default-gw
Parameter
Parameter | Description |
vrf <vrf |
-name> | Optional. Specifies the name of the VRF |
l2vpn
. |
Example
- Configure BGP layer 2 EVPN to advertise default gateway for VRF BLUE.
Code Block |
---|
admin@Xorplus# set protocolprotocols bgp vrf BLUE l2vpnevpn advertise-default-gw admin@Xorplus# commit |