The set protocol protocols bgp evpn advertise ipv4 unicast command is used to announce IPv4 prefixes in the BGP RIB as EVPN Type-5 routes. Add the optional parameter route-map if you want to add a route map filter to the IPv4 Type-5 route advertisement. If the route map filter is not used, all the IPv4 routes in the BGP RIB are included in the advertisement. Optional parameter vrf can be used if you want the command to take effect on a specific VRF. The other optional parameter is l2vpn to specify only layer 2 EVPN.
The delete protocol delete protocols bgp evpn advertise ipv4 unicast command can be used to remove this configuration.
Command Syntax
set protocol protocols bgp [vrf <text>] [l2vpn] evpn advertise ipv4 unicast [route-map <route-map>]
delete protocol protocols bgp [vrf <text>] [l2vpn] evpn advertise ipv4 unicast [route-map <route-map>]
...
Parameter | Description |
vrf <text> | Optional. Specifies the name of the VRF name. |
l2vpn | Optional. Specifies whether the configuration affects only layer 2 EVPN |
route-map <route-map> | Optional. Specifies the route-map to filter the Type-5 IPv4 routes while advertising. |
...
- Configure the device to announce the IPv4 prefixes in VRF BLUE for layer 2 EVPN and apply the map1 route-map filter.
Code Block |
---|
admin@Xorplus# set protocolprotocols bgp vrf BLUE l2vpn advertise ipv4 unicast route-map map1 admin@Xorplus# commit |
...