FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
adimailig
Staff
Staff
Article Id 279028
Description

By default, the default route from PPPoE has a distance of 5 and a priority of 1.

This article describes how to change the distance and priority of the default gateway learned from PPPoE.

Scope Fortigate, PPPoE.
Solution

In this example, the distance and priority will be modified as below:

Distance: 5 >> 8.
Priority: 1 >> 10.

 

Priority preference: lowest value is preferred for the routing table.

Distance preference: lowest value is preferred for the routing table.



Change Distance :

The default gateway route distance can be changed from GUI or CLI.

From the GUI: 

Distance_GUI_2.PNG

 

From the CLI:


config system interface

    edit "port3"

        set distance 8  <- Default value is '5'.

    next

end


Result:


FGT_1# 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

       V - BGP VPNv4

       * - candidate default

 

Routing table for VRF=0

S*      0.0.0.0/0 [8/0] via 192.168.4.254, ppp1, [1/0]     <- Distance is 8 and Priority is 1.


Change Priority:


Default gateway route priority can only be changed via CLI.


config system interface

    edit "port3"

        set priority 10       <- Default value is '1'.

end


Result:


FGT_1# 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

       V - BGP VPNv4

       * - candidate default

 

Routing table for VRF=0

S*      0.0.0.0/0 [8/0] via 192.168.4.254, ppp1, [10/0]   <- Distance is 8 and Priority is 10.