S* 0.0.0.0/0 [5/0] via 192.168.174.2, port1The default route has default value of 5 for Administrative Distance (AD) and 0 for priority.
#config router staticBelow is the output of routing table:
edit 1
set distance 20
set priority 25
set device "port1"
set dynamic-gateway enable
next
end
get router info routing-table allAs per the output, the changes were not applied.
Routing table for VRF=0
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
S* 0.0.0.0/0 [5/0] via 192.168.174.2, port1
#config system interfaceThe distance value is not important. It can be everything except 5, which is the default value.
edit "port1"
set vdom "root"
set mode dhcp
set distance 90
set allowaccess ping https ssh http fgfm
set type physical
set snmp-index 1
next
end
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 2023 Fortinet, Inc. All Rights Reserved.