BGP Flow Specification routes are generated manually to control traffic in static BGP Flow Specification.
When static BGP Flow Specification is configured, a BGP Flow Specification route needs to be generated manually, and a BGP Flow Specification peer relationship needs to be established between the device that generates the BGP Flow Specification route and each ingress on the network to advertise BGP Flow Specification routes.
In an AS with multiple ingresses, a BGP Flow route reflector (Flow RR) can be deployed to reduce the number of BGP Flow Specification peer relationships to be established and save network resources.
If you want to filter traffic matching a specified address prefix but BGP Flow Specification routes matching the specified address prefix fail to be authenticated, disable the authentication of the BGP Flow Specification routes received from a specified peer.
BGP Flow Specification peer relationships must be established between the network ingress and device on which the BGP Flow Specification route is manually created.
Before configuring a Flow RR, establish a BGP Flow Specification peer relationship between the Flow RR and the device on which the BGP Flow Specification route is generated and between the Flow RR 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.
After configuring static BGP Flow Specification, verify the configuration.
Run the display bgp flow peer [ [ ipv4-address ] verbose ] command to check information about BGP Flow Specification peers.
Run the display bgp flow routing-table command to check BGP Flow Specification routing information.
Run the display bgp flow routing-table [ peer ipv4-address ] [ advertised-routes | received-routes [ active ] ] statistics command to check BGP Flow Specification route statistics.
Run the display flowspec statistics reindex command to check statistics about IP packets matching a specific BGP Flow Specification route for BGP Flow Specification protocol protection on interfaces in a specified interface group.