Skip to main content
Veky
New Member
December 6, 2011
Question

Static route not being added to routing table

  • December 6, 2011
  • 7 replies
  • 16471 views
Hello, A FortiGate 50B running FortiOS 3.00, MR4 Patch 5 has a PPPoE connection on the internal interface which is used for backup purposes via a IPSec tunnel to the central location. There is a static route in place for the network on the central location where the IPSec tunnel connects. The interface uses ADSL with a fixed unnumbered IP provided by the ISP and it is a backup VPN service over ADSL. All other routing is done by OSPF. All this works fine, however, the 50B was planned for a software upgrade (target was 4.00 MR2 Patch 9). As soon as the unit is upgraded to 3.00 MR5 Patch 1, the static route is not being added to the routing table anymore, and the backup tunnel can' t connect. Can anyone help? Was there a change in MR5? Release notes do not mention anything regarding this. Thank you in advance. Edit: For better clarification: First picture shows 3.00 MR4 Patch 5. The route is there. Second picture shows 3.00 MR5 Patch 1. The route is not there and it is replaced with an OSPF route which is not correct. Gateway 192.168.102.2 is the unnumbered IP of the PPPoE connection.

    7 replies

    emnoc
    New Member
    December 6, 2011
    what does your config show for the fortigate? config router static ? I would look there 1st and validate your cfg. Maybe it was dropped during the upgrade. ?
    Veky
    VekyAuthor
    New Member
    December 9, 2011
    I have double checked and it is there in the configuration.
    emnoc
    New Member
    December 9, 2011
    I have double checked and it is there in the configuration.
    So what does your get router info show? and did you ensure the admin-distance is not override via the ospf (110 ) and that next-hop is valid and up? With out a snippet of you cfg, we have no ideal as to how you have it configured. I would start by executing a few get and posting the output get router info routing-table all config router static ; show
    Veky
    VekyAuthor
    New Member
    December 12, 2011
    Here it is: Through the GUI, static route 1 has a distance of 10. I' ve tried setting both distance and priority for it to 5, but it didn' t help.
    config router static      edit 1          set device " internal"           set dst 192.168.252.0 255.255.255.0          set gateway 192.168.102.6      next      edit 2          set device " backup"           set distance 200      next      edit 3          set device " wan2"           set dst 192.168.98.0 255.255.255.0          set gateway 192.168.2.251      next  end  
    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    O*E2    0.0.0.0/0 [110/10] via 192.168.204.254, wan1, 00:19:44  O       192.168.1.0/24 [110/20] via 192.168.204.254, wan1, 00:19:44  C       192.168.2.0/24 is directly connected, wan2  C       192.168.3.252/32 is directly connected, ppp0  O       192.168.15.0/24 [110/20] via 192.168.204.250, wan1, 00:19:44  O E2    192.168.16.0/24 [110/10] via 192.168.204.250, wan1, 00:19:44  O E2    192.168.17.0/24 [110/10] via 192.168.204.250, wan1, 00:19:44  O E2    192.168.19.0/24 [110/10] via 192.168.204.248, wan1, 00:19:44  O       192.168.20.0/24 [110/20] via 192.168.204.248, wan1, 00:19:44  O       192.168.30.0/24 [110/20] via 192.168.204.254, wan1, 00:19:44  S       192.168.98.0/24 [10/0] via 192.168.2.251, wan2  C       192.168.102.6/32 is directly connected, ppp0  O       192.168.200.0/24 [110/20] via 192.168.204.254, wan1, 00:19:44  C       192.168.204.0/24 is directly connected, wan1  O       192.168.250.0/24 [110/20] via 192.168.204.254, wan1, 00:19:44  O E2    192.168.252.0/24 [110/10] via 192.168.204.250, wan1, 00:19:44  O       192.168.254.0/24 [110/110] via 192.168.204.254, wan1, 00:19:44  
    emnoc
    New Member
    December 13, 2011
    192.168.3.252/32
    Q: what is this 2nd connected route on ppp0? Q:also are you enable to ping either from the cli ?
    rwpatterson
    New Member
    December 13, 2011
    V3 MR4 was as buggy as Florida in August. I would upgrade to something closer to today, and then try to get the kinks worked out...
    emnoc
    New Member
    December 13, 2011
    suggestion: PPP typically places a static route between 2xPPP peers. Are you sure your using the correct address for your next-hop? If the interface is configured, up and functional than the next-hop should be in the table and you can apply any static routes to it.
    rwpatterson
    New Member
    December 13, 2011
    What is your current OSPF setup? Maybe the route is duplicated in OSPF, so it won' t show up as a static...
    emnoc
    New Member
    December 14, 2011
    I would assume the static would always override the OSPF learned route due to administration distance. So I don' t think it' s a duplicate.