To generate fewer installation requests in the hardware when you make updates to a previously distributed BGP flowspec route map, you can configure a delay period before applying the updates.
By default, updates to a previously distributed BGP flowspec route map are applied after a delay of 10 seconds. To send fewer changes to the hardware when making multiple updates, you can configure a longer delay.
The following task shows how to configure a delay of 500 seconds and updates a selection of rules. Your configuration may involve different combinations of match criteria and traffic filtering actions.
device# configure terminal
device(config)# filter-change-update-delay 500
device(config)# route-map flowspec_map permit 56
device(config-route-map-flowspec_map/permit/56)# match ipv4 source-address 10.3.2.0/24
device(config-route-map-flowspec_map/permit/56)# match port lt 40
This example specifies that matching occurs when the source or destination port number is less than 40.
device(config-route-map-flowspec_map/permit/56)# match port neq 30 67 89
This example specifies that matching occurs when the source or destination port number is not equal to 30, 67, and 89.
device(config-route-map-flowspec_map/permit/56)# match fragment-type all first-fragment
This example specifies that matching occurs when the traffic fragment type is first-fragment.
device(config-route-map-flowspec_map/permit/56)# match fragment-type any dont-fragment not-last-fragment
This example specifies that matching occurs when the traffic fragment type is either dont-fragment or not-last-fragment.
device(config-route-map-flowspec_map/permit/56)# set sflow
device(config-route-map-flowspec_map/permit/56)# set ip nexthop 10.89.89.7
device(config-route-map-flowspec_map/permit/56)# end
device# clear filter-change-update
The following example summarizes the commands in this task.
device# configure terminal device(config)# route-map flowspec_map permit 56# filter-change-update-delay 500 device(config)# route-map flowspec_map permit 56# route-map flowspec_map permit 56 device(config-route-map-flowspec_map/permit/56)# match ipv4 source-address 10.3.2.0/24 device(config-route-map-flowspec_map/permit/56)# match port neq 30 67 89 device(config-route-map-flowspec_map/permit/56)# match port lt 40 device(config-route-map-flowspec_map/permit/56)# match fragment-type all first-fragment device(config-route-map-flowspec_map/permit/56)# match fragment-type any dont-fragment not-last-fragment device(config-route-map-flowspec_map/permit/56)# set set sflow device(config-route-map-flowspec_map/permit/56)# set ip nexthop 10.89.89.7 device(config-route-map-flowspec_map/permit/56)# end device# clear filter-change-update