Technical Tip: Configure static routes and black hole routes to different VRFs
| Description | This article explains how to configure a static route and a black hole route to different VRFs. |
| Scope | All versions of FortiOS. |
| Solution | To configure a static route to a different VRF, first configure the VRF ID on the relevant interface:
config system interface edit <interface> end
Next, configure the static route pointing to the interface:
config router static edit <> next end
To configure a black hole route to a different VRF, enable the option set blackhole enable and configure the VRF ID:
config router static edit <> end
To verify the different VRFs, run the following commands:
get router info routing-table all
Related articles: Technical Tip: How to create a static route on FortiGate from the GUI Interface Technical Tip: How to create or delete static routes via CLI on FortiGate |