All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mart Frauenlob <mart.frauenlob@chello.at>
To: netfilter@vger.kernel.org
Subject: Re: pinging and routing tables
Date: Thu, 03 Dec 2009 09:48:05 +0100	[thread overview]
Message-ID: <4B177B45.9000004@chello.at> (raw)
In-Reply-To: <20091130175324.71602i65gacqf30g@webmail.oregonstate.edu>

sinkyh@onid.orst.edu wrote:
> Hello all,
> 
> I have, I hope, a simple question. From my understanding, by default 
> ping looks up up the IP address in the Linux kernel routing tables. What 
> happens if the IP is not in the routing table? Is the ping packet simply 
> dropped?
> 
> The reason I ask this is that I have a few wireless devices for testing 
> purposes and I am using iptables to mimic a particular topology. Mainly 
> forcing the presence of only two possible routes from a source to a 
> destination over a series of hops. These devices have their own routing 
> protocol and basically routes are added/ deleted from the Linux kernel 
> routing tables based on metric measurements bla bla bla. That is just 
> fine and normal.
> 
> However, since the devices are all in range of each other (due to space 
> restriction), if lets say the destination node IP is temporarily lost 
> from the source's routing table, for some reason the source is still 
> able to ping the destination directly. I assumed that if an IP is not in 
> the source's routing table that the outgoing ping would be dropped/ 
> ignored until the IP reappears. Not continue on ignoring routing tables....
> 
> Can anyone shed some light on this?
> 
> Thanks for your help and suggestions.

Hello,

without being a network/routing guru, imho if there's not route to host 
X, you should see a message like 'no route to host'...
Did you flush the cache?
`ip route flush cache` - should clear it, so old records are removed.

btw: bit offtopic here.... (not netfilter, tc, related)

Hope it helps.

regards

Mart

      reply	other threads:[~2009-12-03  8:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01  1:53 pinging and routing tables sinkyh
2009-12-03  8:48 ` Mart Frauenlob [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B177B45.9000004@chello.at \
    --to=mart.frauenlob@chello.at \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.