Networking Forums

Networking Forums > Computer Networking > Linux Networking > flushing routing tables

Reply
Thread Tools Display Modes

flushing routing tables

 
 
C3
Guest
Posts: n/a

 
      10-09-2004, 02:38 PM
Is there an easy way to flush the routing tables in Linux? I'm using Debian.


 
Reply With Quote
 
 
 
 
C3
Guest
Posts: n/a

 
      10-09-2004, 02:44 PM
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
 
Allen Kistler
Guest
Posts: n/a

 
      10-09-2004, 03:11 PM
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
 
Bernhard Kastner
Guest
Posts: n/a

 
      10-09-2004, 05:15 PM
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
 
C3
Guest
Posts: n/a

 
      10-10-2004, 05:32 AM
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
 
Allen Kistler
Guest
Posts: n/a

 
      10-10-2004, 04:46 PM
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
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      10-10-2004, 10:51 PM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Misbehaving routing tables DHK Windows Networking 2 07-13-2009 02:16 PM
IP Tables, SNAT, and routing: selecting the outgoing interface galionlibrary@gmail.com Linux Networking 0 03-30-2007 08:58 PM
Routing Tables Alex Pearce Windows Networking 1 11-22-2005 01:27 PM
How to configure routing tables myself_rajat@yahoo.com Linux Networking 1 08-04-2005 02:53 PM
Routing tables and configuring gw john Linux Networking 4 02-22-2004 10:03 AM



1 2 3 4 5 6 7 8 9 10 11