Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

flushing routing tables

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2004, 03:38 PM
Default flushing routing tables



Is there an easy way to flush the routing tables in Linux? I'm using Debian.




C3
Reply With Quote
  #2  
Old 10-09-2004, 03:44 PM
C3
Guest
 
Posts: n/a
Default Re: flushing routing tables

I should add that the reason I want to do this is because after my IP
changes (on cable), internet access works, but is intermittent, and DNS
lookups time out half the time.

cheers,


Reply With Quote
  #3  
Old 10-09-2004, 04:11 PM
Allen Kistler
Guest
 
Posts: n/a
Default Re: flushing routing tables

C3 wrote:
> I should add that the reason I want to do this is because after my IP
> changes (on cable), internet access works, but is intermittent, and DNS
> lookups time out half the time.
>
> cheers,


Long answer:
Unless your PC/gateway is getting its routing information via routing
protocols like RIP or BGP, routing tables aren't something you flush.
In fact cable service usually provides routing information via DHCP
because the only thing you need to know is the default route. When you
get reissued an IP address, the default route should be updated, too,
although that probably doesn't need to change.

Short answer:
You have a different problem from the one you think.
Reply With Quote
  #4  
Old 10-09-2004, 06:15 PM
Bernhard Kastner
Guest
 
Posts: n/a
Default Re: flushing routing tables

C3 schrieb:
> Is there an easy way to flush the routing tables in Linux? I'm using Debian.


http://www.google.at/search?hl=de&q=...nG=Suche&meta=

--
Bernhard | theEdge
-Linux User #368478-
http://www.alf.at.tc
Austrian Linux Forum
Reply With Quote
  #5  
Old 10-10-2004, 06:32 AM
C3
Guest
 
Posts: n/a
Default Re: flushing routing tables

I suspected this may have been the case, but the evidence suggests this is a
routing problem. After my IP changes, internet access is intermittent, and
sometimes halts. I have to reload pages a couple of times before they'll
load.

If I re-run my iptables firewall script, access is restored properly, but
only temporarily, i.e. for a couple of minutes at best.

Any ideas what the problem could be?

> Short answer:
> You have a different problem from the one you think.



Reply With Quote
  #6  
Old 10-10-2004, 05:46 PM
Allen Kistler
Guest
 
Posts: n/a
Default Re: flushing routing tables

C3 wrote:
> I suspected this may have been the case, but the evidence suggests this is a
> routing problem. After my IP changes, internet access is intermittent, and
> sometimes halts. I have to reload pages a couple of times before they'll
> load.
>
> If I re-run my iptables firewall script, access is restored properly, but
> only temporarily, i.e. for a couple of minutes at best.
>
> Any ideas what the problem could be?
>
>
>>Short answer:
>>You have a different problem from the one you think.


I have no specific ideas. If the problem really is a misconfigured
iptables script, try putting a bunch of logging statements into
netfilter and simultaneously running tcpdump on your external interface.
It could be ugly, but the info provided would probably be enough to let
you know what's really going on.
Reply With Quote
  #7  
Old 10-10-2004, 11:51 PM
Jose Maria Lopez Hernandez
Guest
 
Posts: n/a
Default Re: flushing routing tables

Bernhard Kastner wrote:
> C3 schrieb:
>
>> Is there an easy way to flush the routing tables in Linux? I'm using
>> Debian.

>
>
> http://www.google.at/search?hl=de&q=...nG=Suche&meta=
>


Simply use the command "ip", it can flush the routes.
Try "ip route help"

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
Reply With Quote
Reply

Tags
flushing, routing, tables

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.