Skip to main content
tlouedec
New Member
March 18, 2021
Question

How to clear or purge routing table ?

  • March 18, 2021
  • 1 reply
  • 28672 views

Hello,

 

I'm searching how to clear or purge routing table. A few days ago we were using a IP Adr Scope (10.10.3.0-10.10.7.254) for our IPSEC Forticlient user and we did some change to a new scope (10.10.24.0-10.10.28.0).

 

But in the old IP Addresses remains in the routing monitor list as static addresses and in conflict with some we now need.

 

How can I do a purge or clean the routing-table ?

 

Regards

 

 

    1 reply

    emnoc
    New Member
    March 18, 2021

    Okay I don't think that is your issue but to answer your question

     

    1: to clear routes static you can do from the cli

     

    e.g

     

      diag  ip route delete <intf> <route>

     

    2: if you have a router process ( bgp ospf ) 

     

    e.g

     

      execute router clear bgp <insert ? to see option>

     

     

    3: in your issues, you need to search for the old range and ensure it's not being used

     

    e.g

     

      show full | grep -f x.x.x.x

     

    Ken Felix

    tlouedec
    tlouedecAuthor
    New Member
    March 18, 2021

    Thanks for your help.

     

    I try and follow the ? help to set the command line for Interface and route

    diag  ip route delete <intf> <route>

    Command fail. Return code -1

    Not possible to delete one route and i've more than 500 to delete (Ipadr Scope).

    Does a Fortigate restart will solve the issue ?

    Regards
    emnoc
    New Member
    March 18, 2021

    yes obviously a restart will clear teh rib but what is your exact issue? It does not sound like a rib issue. What does

     

     

    "get router info routing all " show you ?

     

    Also , does it match "diag ip route list" ?

     

    ken Felix