Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
tlouedec
New Contributor

How to clear or purge routing table ?

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

 

 

5 REPLIES 5
emnoc
Esteemed Contributor III

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

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
tlouedec
New Contributor

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
Esteemed Contributor III

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

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
tlouedec
New Contributor

Yes it's the same list.

 

What do you mean by RIB ?

 

thanks

emnoc
Esteemed Contributor III

 routing information base (RIB)  == route-table

 

The RIB holds active and update routes.

 

Ken Felix

 

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors