Policy Route for Specific Source IP over ECMP
A FortiGate is configured with two equal-cost default routes to different ISPs. The administrator notices that traffic for a specific destination is load-balanced across both links as expected. However, they want all traffic from a specific source IP to use only ISP1, while other traffic remains load-balanced. Which configuration should be applied?
Quick Answer
The answer is to create a policy route with the source address set to the specific IP and the gateway pointing to ISP1. This is correct because policy routing operates above the static routing table, allowing you to enforce a policy route for a specific source IP over ECMP without disrupting the existing equal-cost load-balancing behavior. On the Fortinet NSE 4 Network Security Professional NSE4 exam, this scenario tests your understanding of how policy-based routing can selectively override the default routing decision, a common task when managing multi-WAN setups. A frequent trap is attempting to solve this with static route metrics or administrative distances, which would break the ECMP load-balancing for all other traffic. Instead, remember that policy routes are evaluated before the routing table lookup, making them ideal for granular traffic steering. Memory tip: think of policy routing as a "VIP lane" — it lets specific traffic cut in line at the ISP1 exit, while everyone else still uses both gates.
⚠ Common exam trap
Many candidates confuse policy routing with static routing or administrative distance changes, mistakenly thinking that modifying route preference or adding a host route for the source IP will achieve source-based forwarding, when in fact policy routing is the only method that allows traffic selection based on source IP without affecting other traffic.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create a policy route with source address set to the specific IP and set the gateway to ISP1
Policy routing allows you to override the routing table for specific traffic based on criteria such as source IP. By creating a policy route that matches the specific source IP and sets the next-hop gateway to ISP1, you ensure that traffic from that source always uses ISP1, while all other traffic continues to be load-balanced across both equal-cost default routes. This is the most direct and flexible method for source-based path selection without altering the global routing behavior.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the administrative distance of the ISP2 default route to 20
Why it's wrong here
This would remove the equal-cost route and make ISP2 backup, not load-balanced.
- ✓
Create a policy route with source address set to the specific IP and set the gateway to ISP1
Why this is correct
Policy routes match before the routing table and can steer traffic to a specific gateway.
- ✗
Configure SD-WAN rules to steer the traffic
Why it's wrong here
SD-WAN works within an SD-WAN zone; if not using SD-WAN, policy routes are appropriate.
- ✗
Add a static host route for the specific source IP via ISP1
Why it's wrong here
Static routes match destination, not source.
Go deeper
Related to this question
About these practice questions
This NSE4 question is part of Courseiva's 282-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on NSE4
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A FortiGate is configured with two WAN links (port1 and port2) and uses ECMP routing. The administrator wants to ensure that traffic from a specific internal subnet (192.168.10.0/24) always uses port1, while all other traffic uses ECMP. Which configuration should be applied?
hard- A.Create a separate VDOM for 192.168.10.0/24 and route it through port1
- ✓ B.Create two static routes with equal distances to use ECMP, and add a policy route for 192.168.10.0/24 with outgoing interface port1
- C.Configure a VIP to translate 192.168.10.0/24 to an IP on port1
- D.Use a firewall policy to change the route based on source
Why B: Policy routes override the routing table for matching traffic, allowing you to force traffic from 192.168.10.0/24 out port1 while ECMP handles all other traffic. ECMP distributes traffic across multiple equal-cost routes, but a policy route takes precedence over the routing table for specified traffic. This meets the requirement without disrupting ECMP for other traffic.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This NSE4 practice question is part of Courseiva's free Fortinet certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the NSE4 exam.