The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 07:30 PM
plz clear my doubts soumya_v7 UNIX for Dummies Questions & Answers 3 03-13-2008 04:06 PM
Linux LiveCD Router 2.0.26 (Default Router branch) iBot Software Releases - RSS News 0 03-03-2008 05:00 AM
Can't clear error log andryk AIX 0 12-14-2004 02:06 AM
How to clear screen giannicello High Level Programming 2 05-14-2002 04:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-21-2008
qingsha qingsha is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 5
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?
  #2 (permalink)  
Old 04-22-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
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.
  #3 (permalink)  
Old 04-22-2008
qingsha qingsha is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 5
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?
  #4 (permalink)  
Old 04-23-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
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.
  #5 (permalink)  
Old 04-24-2008
ramen_noodle ramen_noodle is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 251
Try man ip. Hth.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0