BGP FlowSpec routes are generated by a traffic analysis server in dynamic BGP FlowSpec.
When deploying dynamic BGP FlowSpec, a BGP FlowSpec peer relationship needs to be established between the traffic analysis server and each ingress of the network to transmit BGP FlowSpec routes.
In an AS with multiple ingresses, a BGP Flow route reflector (Flow RR) can be deployed to reduce the number of BGP FlowSpec peer relationships and save CPU resources.
If you want to filter traffic matching a specified address prefix but BGP FlowSpec routes matching the specified address prefix fail to be authenticated, disable the authentication of the BGP FlowSpec routes received from a specified peer.
Before configuring a Flow RR, establish a BGP FlowSpec peer relationship between the Flow RR with the traffic analysis server and every network ingress.
The redirection next-hop attribute ID can be 0x010C (defined in a related RFC) or 0x0800 (defined in a related draft). If a Huawei device needs to communicate with a non-Huawei device that does not support the redirection next-hop attribute ID of 0x010C or 0x0800, set the redirection next-hop attribute ID of BGP Flow Specification routes as required. Perform one of the following configurations based on the ID supported by non-Huawei devices:
Set the redirection next-hop attribute ID to 0x010C (defined in a related RFC) for BGP Flow Specification routes.
The system view is displayed.
The BGP view is displayed.
The BGP-Flow address family view is displayed.
The redirection next-hop attribute ID of the BGP Flow Specification route is set to 0x010C (defined in a related RFC).
The configuration is committed.
Change the redirection next-hop attribute ID of BGP Flow Specification routes to 0x0800 (defined in a related draft).
The system view is displayed.
The BGP view is displayed.
The BGP-Flow address family view is displayed.
The redirection next-hop attribute ID of BGP Flow Specification routes is changed to 0x0800 (defined in a related draft).
The configuration is committed.
Run the following commands to verify the previous configuration.
Run the display bgp flow peer [ [ ipv4-address ] verbose ] command to check information about BGP FlowSpec peers.
Run the display bgp flow routing-table command to check BGP FlowSpec routing information.
Run the display bgp flow routing-table [ peer ipv4-address ] [ advertised-routes | received-routes [ active ] ] statistics command to check BGP FlowSpec route statistics.
Run the display flowspec statistics reindex command to check statistics about IP packets matching a specific BGP FlowSpec route for BGP FlowSpec protocol protection on interfaces in a specified interface group.