Distribute BGP Flowspec Rules

BGP distributes flowspec rules when a route map that is configured with flowspec rules is passed to BGP for advertisement by BGP neighbors.

Before you begin

Before configuring distribution, complete the following tasks:

Procedure

  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Enable BGP and enter BGP configuration mode.
    device(config)# router bgp
  3. Enter BGP address-family IPv4 flowspec configuration mode.
    device(config-bgp-router)# address-family ipv4 flowspec
  4. Distribute a route map that is already configured with the BGP flowspec rules.
    device(config-bgp-ipv4fs)# distribute flowspec-map
    This example shows how to distribute a route map named flowspec-map under the BGP flowspec IPv4 address family.

Example

The following example summarizes the commands in this task.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 flowspec
device(config-bgp-ipv4fs)# distribute flowspec-map