Description
This article describes how to add a default route.
Scope
FortiGate.
Solution
Adding a default route when addressing mode is selected as manual:
When the addressing mode is selected as DHCP or PPPoE:
get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
Routing table for VRF=0
S* 0.0.0.0/0 [5/0] via 172.31.176.254, ppp2, [1/0]
S 1.1.1.0/24 [254/0] is a summary, Null, [1/0]
C 10.1.1.0/24 is directly connected, DIAL_UP
C 10.1.1.1/32 is directly connected, DIAL_UP
C 10.5.16.0/20 is directly connected, lan
C 10.10.1.0/24 is directly connected, test_advpn
C 10.10.1.1/32 is directly connected, test_advpn
C 10.10.10.0/24 is directly connected, loopback-lan
C 10.14.0.0/20 is directly connected, wan1
C 10.68.0.0/20 is directly connected, wan2
C 172.31.176.24/32 is directly connected, ppp2
C 172.31.176.254/32 is directly connected, ppp2
Related articles:
Technical Tip: How to create or delete static routes via CLI on FortiGate
Technical Tip: Creating a static route that uses a FQDN firewall address object
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.