The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux LiveCD Router 2.0.27 (Default Router branch) iBot Software Releases - RSS News 0 05-14-2008 04:30 PM
plz clear my doubts soumya_v7 UNIX for Dummies Questions & Answers 3 03-13-2008 12:06 PM
Linux LiveCD Router 2.0.26 (Default Router branch) iBot Software Releases - RSS News 0 03-03-2008 01:00 AM
Can't clear error log andryk AIX 0 12-13-2004 10:06 PM
How to clear screen giannicello High Level Programming 2 05-14-2002 01:32 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2008
Registered User
 

Join Date: Apr 2008
Posts: 5
Stumble this Post!
Question how to clear router table

My Question is how to clear the router table using one command, i.e. using one command to remove ALL the router records/items within the router table to get an empty router table.

"router del" can help remove router records one by one, but it seems slow, doesn't it?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-22-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
I think you are referring to "route" command. route del will work, I don't know why it's slow. You can also wipe out the file /proc/net/route, which holds all the info.
Reply With Quote
  #3 (permalink)  
Old 04-22-2008
Registered User
 

Join Date: Apr 2008
Posts: 5
Stumble this Post!
Quote:
Originally Posted by sysgate View Post
I think you are referring to "route" command. route del will work, I don't know why it's slow. You can also wipe out the file /proc/net/route, which holds all the info.
Sysgate, thanks for you answer, however, since /proc/net/net is a read-only file, can I wipe it out?

PS: maybe SLOW is not a right word, and the right word may be COMBERSOME.
Say there are 5 records in the routing table, if I have to run "route del ..." 5 times to make the table empty, it is a little cumbersome, isn't it?
Reply With Quote
  #4 (permalink)  
Old 04-23-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
I'm not sure if you can delete it, or empty it, but you can always try As far as I know, route del accepts *, so you can try that as well. Also, deleting route should not be slow procedure generally, I don't know why it's slow for you. Nevertheless, I'm not aware of any other ways.
Reply With Quote
  #5 (permalink)  
Old 04-24-2008
Registered User
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 239
Stumble this Post!
Try man ip. Hth.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0