Enabling the BGP flowspec IPv4 address family and activating neighbors under this address family supports propagation of a BGP flowspec policy.
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 666
device(config-bgp-router)# neighbor 10.61.61.6 remote-as 666
device(config-bgp-router)# address-family ipv4 unicast vrf red
Note
The IPv4 unicast address family is always configured on the default VRF.device(config-bgp-router)# address-family ipv4 flowspec vrf red
Note
When a VRF instance is not specified, IPv4 flowspec address family is enabled in the default VRF.device(config-bgp-ipv4fs)# neighbor 10.61.61.6 activate
device(config-bgp-ipv4fs)# neighbor 10.61.61.6 flowspec redirect holder nrli next-hop type 0x0800
The following example summarizes the commands in this task.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 666 device(config-bgp-router)# neighbor 10.61.61.6 remote-as 666 device(config-bgp-router)# address-family ipv4 unicast vrf red device(config-bgp-router)# address-family ipv4 flowspec vrf red device(config-bgp-ipv4fs)# neighbor 10.61.61.6 activate device(config-bgp-ipv4fs)# neighbor 10.61.61.6 flowspec redirect holder nlri next-hop type 0x0800