Provides instructions for configuring BGP flowspec redirect from global VRF, guiding users through command procedures to enable dynamic traffic redirection within multi-VRF architectures.
Enable BGP Flowspec redirect from the global VRF to customer VRFs by configuring class maps, policy maps, and applying service policies on the BGP Flowspec controller.
This task enables BGP Flowspec redirect from the global VRF to customer VRFs to prevent packet drops when destination IPs exist only in customer VRF routing tables. The BGP Flowspec server programs and distributes redirect rules to neighbors, which store and activate them. Matching packets are redirected to the correct VRF via the specified route target, ensuring accurate forwarding through L3VPN or Segment Routing Policy for precise traffic control in complex networks.
Before you begin
-
Ensure BGP Flowspec is supported and enabled on the router.
-
Confirm that the global VRF and customer VRFs are properly configured.
-
Verify that L3VPN or Segment Routing Policy (SR-Policy) mechanisms are in place for forwarding.
-
Have access to configure class maps, policy maps, and flowspec service policies on the BGP Flowspec controller.
-
Confirm that route targets for the customer VRFs are defined and reachable.
-
Ensure a policer action is configured to enable BGP Flowspec statistics.
Follow these steps to configure BGP flowspec redirect from global VRF.
Procedure
| 1. | Define traffic classes to match packets based on destination IP addresses. Example:
|
|
| 2. | Create policy maps to specify redirect actions for the matched traffic classes. Example:
|
|
| 3. | Attach the policy maps to the respective address families under flowspec configuration. Example:
|
|
| 4. | Install flowspec rules on all interfaces locally: Example:
|
|
| 5. | Verify the running configuration. Example:
|
|
| 6. | Use the show ofa objects pbr object-count location 0/RP0/CPU0 command in privileged EXEC mode to verify the number of BGP Flowspec entries in the OFA object. Example:
You will see the current count of BGP Flowspec entries in the OFA object and detailed statistics for each BGP Flowspec rule, including matched, transmitted, and dropped packets and bytes. |
|
| 7. | Use the show flowspec ipv4 detail command in privileged EXEC mode to verify the BGP Flowspec rules and their statistics. Example:
|