device# configure terminal
device(config)# route-map flowspec_map permit 56
Note
Route-map deny sequences are not advertised as flowspec rules and deny configurations are ignored.device(config-route-map-flowspec_map/permit/56)# match ip destination-address 10.2.3.0/24
device(config-route-map-flowspec_map/permit/56)# match protocol eq 30
device(config-route-map-flowspec_map/permit/56)# match protocol range 40 50
device(config-route-map-flowspec_map/permit/56)# match tcp-flags all not-fin ack
device(config-route-map-flowspec_map/permit/56)# match tcp-flags any cwr urg
device(config-route-map-flowspec_map/permit/56)# match ip icmp-type neq 5
device(config-route-map-flowspec_map/permit/56)# set police cir 0
device(config-route-map-flowspec_map/permit/56)# set ip mirror 10.67.67.9
device(config-route-map-flowspec_map/permit/56)# end
The following example summarizes the commands in this task.
device# configure terminal device(config)# route-map flowspec_map permit 56 device(config-route-map-flowspec_map/permit/56)# match ip destination-address 10.2.3.0/24 device(config-route-map-flowspec_map/permit/56)# match protocol eq 30 device(config-route-map-flowspec_map/permit/56)# match protocol range 40 50 device(config-route-map-flowspec_map/permit/56)# match tcp-flags all not-fin ack device(config-route-map-flowspec_map/permit/56)# match tcp-flags any cwr urg device(config-route-map-flowspec_map/permit/56)# match ip icmp-type neq 5 device(config-route-map-flowspec_map/permit/56)# set police cir 0 device(config-route-map-flowspec_map/permit/56)# set ip mirror 10.67.67.9