Configures Border Gateway Protocol flow specification (BGP flowspec) route validation at address-family level.
Flowspec validation is enabled.
BGP address-family IPv4 flowspec configuration mode
Flowspec validation can be configured at neighbor, peer-group, or address-family level with the neighbor-level configuration prioritized over peer-group level configuration and the peer-group level configuration prioritized over the address-family level configuration.
Use the flowspec validation command to configure flowspec validation at address-family level. To configure flowspec validation at neighbor or peer-group level, refer to the neighbor flowspec validation command.
By default, flowspec validation is enabled. Use the no form of the flowspec validation command to completely disable flowspec validation at address-family level. To only disable redirect IP nexthop validation at address-family level, use the no form of the flowspec validation command specifying the redirect opton.
The following example shows how to disable IPv4 flowspec validation. In this example and because the redirect option is specified, only redirect IP nexthop validation is disabled for the IPv4 address-family in the default VRF.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 flowspec device(config-bgp-ipv4fs)# no flowspec validation redirectWhen flowspec validation is already completely disabled, issuing the no flowspec validation specifying the redirect option does not change the configuration. The following example shows how to completely disable flowspec validation for the IPv4 address family in a VRF named red and to verify the configuration. The no flowspec validation command is then issued specifying the redirect option, and the configuration is again displayed to show that flowspec validation remains completely disabled.
device(config)# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 flowspec vrf red device(config-bgp-ipv4fs-vrf)# no flowspec validation !completely disables flowspec validation! device(config-bgp-ipv4fs-vrf)# end device(config)# show running-configuration router bgp address-family ipv4 flowspec vrf red ! router bgp address-family ipv4 flowspec vrf red no flowspec validation ! device(config)# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 flowspec vrf red device(config-bgp-ipv4fs-vrf)# no flowspec validation redirect device(config-bgp-ipv4fs-vrf)# end device(config)# show running-configuration router bgp address-family ipv4 flowspec vrf red ! router bgp address-family ipv4 flowspec vrf red no flowspec validation !flowspec validation remains completely disabled! !