Skip to main content
nalexiou
Staff & Editor
Staff & Editor
November 25, 2022

Technical Tip: Configure static routes and black hole routes to different VRFs

  • November 25, 2022
  • 0 replies
  • 4156 views
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>
set vrf <id>
next

end

 

Next, configure the static route pointing to the interface:

 

config router static

edit <>
    set gateway x.x.x.x
    set device "interface"

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 <>
set blackhole enable
set vrf <id>
next

end

 

To verify the different VRFs, run the following commands:

 

get router info routing-table all
get router info routing-table database

 

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