how to clear router table


 
Thread Tools Search this Thread
Operating Systems Linux how to clear router table
# 1  
Old 04-21-2008
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  
Old 04-22-2008
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  
Old 04-22-2008
Quote:
Originally Posted by sysgate
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  
Old 04-23-2008
I'm not sure if you can delete it, or empty it, but you can always try Smilie 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  
Old 04-24-2008
Try man ip. Hth.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Web Development

Getting Rid of Annoying Bootstrap Table Borders and Wayward Table Lines

Bootstrap is great; but we have had some issues with Bootstrapped <tables> (and legacy <fieldset> elements) showing annoying, wayward lines. I solved that problem today with this simple jQuery in the footer: <script> $(function(){ $('tr, td, fieldset,... (0 Replies)
Discussion started by: Neo
0 Replies

2. UNIX for Dummies Questions & Answers

Remote Unix printing to my WinXP works with no router. How can I make it work through my router?

I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies

3. Shell Programming and Scripting

select values from db1 table and insert into table of DB2

Hi I am having three oracle databases running in three different machine. their ip address is different. from one of the DB am able to access both the databases.(means am able to select values and insert values in to tables individually.) I need to fetch some data from DB1 table(say DB1 ip is... (2 Replies)
Discussion started by: aemunathan
2 Replies
Login or Register to Ask a Question