Enabling statistics for BGP flowspec rules

By default, BGP flowspec statistics are disabled.

About this task

Perform the following steps to enable BGP flowspec statistics.

Procedure

  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Enable BGP flowspec statistics.
    device(config)# ip flowspec rules statistics
  3. Return to global configuration mode.
    device(config)# exit
  4. Statistics for BGP flowspec can be displayed by using the show ip flowspec rules detail command.
    device# show ip flowspec rules detail 
    
    VRF :default-vrf 
    Total number of Rules: 1 
    
    1 Origin: Local(flowmap:23) Active: Yes 
      Match: 
         DSCP         <60 
      Actions: 
         Traffic-rate asn 666, rate 125000 bits/sec(operational-rate 132000 bits/sec) 
    
    Statistic         packets/bytes 
    -------------     ------------ 
       Matched           17412786/12589441782 
       Transmitted       1453/1048023
       dropped           17411333/12588393759 
    

Example

The following example shows how to enable BGP flowspec statistics.

device# configure terminal
device(config)# ip flowspec rules statistics