Routing in FortiGate involves managing the flow of traffic between different networks. This ensures efficient connectivity and optimal performance for users and applications.
Static routing is a manual way to define routes that specify how traffic should travel to reach a destination network.
Define Destination Networks and Next-Hop Gateways:
192.168.2.0/24 should go via the next-hop gateway 192.168.1.1.CLI Configuration:
config router static
edit 1
set dst 192.168.2.0/24
set gateway 192.168.1.1
set device "port1"
end
GUI Configuration:
192.168.2.0/24192.168.1.1port1).Configure Route Priority and Distance:
Priority: Lower values take precedence for routes with the same destination.
Administrative Distance (AD): Indicates route reliability. Lower values are preferred.
Example CLI:
set priority 10
set distance 5
SD-WAN simplifies and optimizes the use of multiple WAN links by dynamically selecting the best path for traffic based on performance.
Load Balancing:
Automatic Link Selection:
Define Member Interfaces:
Add WAN interfaces to the SD-WAN group.
CLI Example:
config system sdwan
config members
edit 1
set interface "wan1"
set gateway 192.168.1.1
next
edit 2
set interface "wan2"
set gateway 192.168.2.1
end
Set SLA Rules for Performance Criteria:
Define Service-Level Agreements (SLAs) based on acceptable latency, jitter, and packet loss thresholds.
Example:
config system sdwan
config service
edit 1
set name "VoIP Traffic"
set dst "192.168.10.0/24"
config sla
edit 1
set latency-threshold 50
set jitter-threshold 10
end
end
Create Policies for SD-WAN Traffic:
Dynamic routing protocols allow FortiGate to learn and share routes with other devices automatically. This is useful in large or frequently changing networks.
Configure Areas and Interfaces:
Example CLI:
config router ospf
set router-id 1.1.1.1
config area
edit 0.0.0.0
end
config network
edit 1
set prefix 192.168.1.0/24
set area 0.0.0.0
end
Set Priority for Main and Backup Paths:
Assign OSPF interface priority to influence route selection.
Higher priority = more likely to be chosen as the designated router.
Example:
config router ospf
config ospf-interface
edit "port1"
set priority 100
end
Define Neighbor Relationships:
BGP establishes peer connections with other routers (neighbors) for route exchange.
Example CLI:
config router bgp
set as 65001
config neighbor
edit "192.168.1.2"
set remote-as 65002
end
Use Filtering Policies to Optimize Routing Tables:
Use prefix lists or route maps to filter incoming or outgoing BGP routes.
Example CLI:
config router prefix-list
edit "block_private"
config rule
edit 1
set prefix 192.168.0.0/16
set action deny
end
end
Apply the prefix list to BGP:
config router bgp
config neighbor
edit "192.168.1.2"
set prefix-list-in "block_private"
end
Each method provides unique benefits depending on the size and requirements of your network.
A blackhole route is a type of static route that discards packets silently if the destination is unreachable or should not be forwarded. It is often used as a security measure or failover mechanism.
CLI Example:
config router static
edit 10
set dst 10.10.10.0/24
set blackhole enable
end
Traffic destined for 10.10.10.0/24 will be dropped if no better route exists.
Static routes can be tied to a health check mechanism that disables the route if a specified target becomes unreachable.
Use Case:
CLI Example:
config router static
edit 1
set dst 192.168.50.0/24
set gateway 10.10.10.1
set device "wan1"
set ping-server 8.8.8.8
set distance 10
set priority 1
end
If 8.8.8.8 is unreachable, the static route will be withdrawn from the routing table.
In earlier versions of FortiOS, SD-WAN Zones were used to group interfaces for easier policy management. In modern FortiOS (6.4+), this concept has largely been replaced by centralized SD-WAN policies and services, but the idea still appears in exam content or older documentation.
Zone-based management allowed you to:
When using SD-WAN rules to control traffic flow (e.g., VoIP, video, general internet), FortiGate processes rules top-down, just like firewall policies.
Important Points:
Best Practice:
BGP (Border Gateway Protocol) is designed to operate between Autonomous Systems (ASes) and is the de facto routing protocol of the Internet.
Key Points:
Example Scenario (Exam-Oriented):
A FortiGate device at a data center uses BGP to advertise public prefixes to two ISPs and apply different preferences for route selection.
While prefix lists are used to filter which routes are allowed, route maps offer greater control by allowing:
Typical Usage:
CLI Snippet (Basic Example):
config router route-map
edit "SetLocalPref"
config rule
edit 1
set match-ip-address "MyPrefixList"
set set-local-preference 200
next
end
next
end
Then apply the route-map to the neighbor in BGP:
config router bgp
config neighbor
edit "203.0.113.1"
set route-map-out "SetLocalPref"
end
Note for Exam: Even if detailed route-map syntax is not asked, you may need to understand what it’s used for and how it differs from prefix-lists.
| Topic | Description | Exam Relevance |
|---|---|---|
| Blackhole Route | Drops traffic to specified destinations silently | Medium – config logic |
| Route Monitoring | Deactivates static routes on health check failure | High – real-world use |
| SD-WAN Zones | Interface grouping model for legacy SD-WAN control | Low – legacy concept |
| SD-WAN Rule Order | Rules matched top-down, first match wins | High – very testable |
| BGP Context | Internet-scale protocol for AS-to-AS routing | High – scenario-based |
| Route Maps | Modify/filter BGP routes with advanced logic | Medium – conceptual |
Why might a static route not be used even though it exists in the routing table?
Because another route with a lower administrative distance or higher priority exists.
FortiGate selects routes based on several factors including administrative distance and priority. If another route to the same destination has a lower administrative distance, it will be preferred. Administrators troubleshooting routing problems should check the full routing table and route metrics to determine which route the firewall actually selects.
Demand Score: 82
Exam Relevance Score: 88
What is the purpose of a default route in a FortiGate configuration?
To send traffic to unknown networks through a specified gateway.
A default route acts as a fallback when no specific route exists for a destination network. Typically, it points to the internet gateway. Without a default route, the firewall cannot forward traffic to external networks unless explicit routes are defined.
Demand Score: 78
Exam Relevance Score: 90
Why might asymmetric routing cause problems in a firewall environment?
Because return traffic may bypass the firewall session state.
Firewalls maintain session tables that track active connections. If traffic enters through one interface but returns through another path that bypasses the firewall, the firewall cannot match the response to an existing session and may drop the packets. This situation is called asymmetric routing and is a common cause of intermittent connectivity issues.
Demand Score: 74
Exam Relevance Score: 87
What command or feature can administrators use to verify the routing table on FortiGate?
The routing table can be checked using the get router info routing-table command.
This command displays the routes currently used by the firewall, including static routes, dynamic routes, and the default route. Administrators frequently use this command when troubleshooting connectivity problems to confirm that the correct route exists and is active.
Demand Score: 70
Exam Relevance Score: 85