Use a controller to dynamically deliver a BGP FlowSpec route to a forwarder and configure a redirection rule on the forwarder to redirect the route to a specified SRv6 TE Policy.
Before redirecting a public IPv4 BGP FlowSpec route to an SRv6 TE Policy in controller-based dynamic delivery mode, complete the following tasks:
If a controller is deployed, the controller can be used to configure a public IPv4 BGP FlowSpec route to be redirected to an SRv6 TE Policy. The configuration process is as follows:
Establish a BGP-LS peer relationship between the controller and forwarder, enabling the controller to collect network information, such as topology and label information, through BGP-LS.
Establish an IPv6 SR-Policy address family-specific BGP peer relationship between the controller and forwarder, so that the controller can deliver the route of a dynamically computed SRv6 TE Policy path to the headend through the peer relationship. After receiving the SRv6 TE Policy, the ingress generates corresponding entries.
The following procedure focuses on forwarder configurations.
After configuring the redirection, verify the 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 flowspec statistics reindex command to check statistics about traffic transmitted over BGP FlowSpec routes.