Manually generate a BGP FlowSpec route and configure redirection rules to redirect the route to an SRv6 TE Policy.
Before redirecting a public IPv4 BGP FlowSpec route to an SRv6 TE Policy in manual configuration mode, complete the following tasks:
If no controller is deployed, perform the following operations to manually redirect a public IPv4 BGP FlowSpec route to an SRv6 TE Policy:
The system view is displayed.
SRv6 is enabled, and the SRv6 view is displayed.
A source address is specified for SRv6 VPN encapsulation.
An SRv6 locator is configured.
A public End.DT4 SID is configured.
Exit the SRv6 locator view.
Exit the SRv6 view.
The configuration is committed.
A static BGP FlowSpec route is created, and the Flow-Route view is displayed.
The traffic that matches the if-match clauses is precisely redirected to the specified SRv6 TE Policy.
Exit the Flow-Route view.
The configuration is committed.
Establish a BGP FlowSpec peer relationship between the ingress of the SRv6 TE Policy and the device on which the BGP FlowSpec route is manually generated. If the BGP FlowSpec route is manually generated on the ingress of the SRv6 TE Policy, skip this step.
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.