From: Eric Dumazet <eric.dumazet@gmail.com>
To: Bill Fink <billfink@mindspring.com>
Cc: "Prashant Batra (prbatra)" <prbatra@cisco.com>, netdev@vger.kernel.org
Subject: Re: route problem
Date: Thu, 19 Jan 2012 07:50:57 +0100 [thread overview]
Message-ID: <1326955857.1113.17.camel@edumazet-laptop> (raw)
In-Reply-To: <20120118202909.8a3d6963.billfink@mindspring.com>
Le mercredi 18 janvier 2012 à 20:29 -0500, Bill Fink a écrit :
> On Wed, 18 Jan 2012, Eric Dumazet wrote:
> Actually, if I'm interpreting the "ip route list cache" output
> correctly, it appears it has local IP addresses of both 192.168.101.10
> and 192.168.101.20.
>
> > local 192.168.101.10 from 192.168.101.101 dev lo src 192.168.101.10
> > cache <local,src-direct> iif eth1
>
> > local 192.168.101.20 from 192.168.101.101 dev lo src 192.168.101.20
> > cache <local,src-direct> iif eth1
>
> And since his gateway is 192.168.101.10, an apparently local
> IP address, that would probably explain the direct ARPS for
> 172.16.60.*.
>
Ah ok, thanks.
Pity that such a convoluted setup must be guessed instead of clearly
explained in the initial mail.
Prashant, this is netdev mailing list, with more than a thousand
subscribers, you should send mails with your detailed setup, this will
save time for everyone.
If not, people will flag you as "yet another lazy student trying to
understand how things work"
> [Prashant] So is this the correct behavior? What my original intention
> was to capture the packets from the
> interface acting as gateway. So with this behavior I will not be able
> to capture the packets as 172.16.60.* are not
> present on the local machine, and it will not get any ARP response.
> Consider the gateway on a different machine, in which case ARP request
> will go for gateway IP, and local machine will
> get the ARP response and send the packets to gateway.
>
With the setup you gave, you said : 172.16.60.0/24 addresses are
directly reachable on eth1 device, with source address 192.168.101.20
Why should the kernel send an ARP request for 192.168.101.20, since its
one of its own IP address ?
For localy generated packets, why this machine would act as a 'gateway'
at all ? A gateway should forward packets, and first step would be to
_receive_ a packet, not sending one !
prev parent reply other threads:[~2012-01-19 6:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 9:17 route problem Prashant Batra (prbatra)
2012-01-18 9:27 ` Eric Dumazet
2012-01-18 10:08 ` Prashant Batra (prbatra)
2012-01-18 10:15 ` Eric Dumazet
2012-01-19 1:29 ` Bill Fink
2012-01-19 5:53 ` Prashant Batra (prbatra)
2012-01-19 6:50 ` Eric Dumazet [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=1326955857.1113.17.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=billfink@mindspring.com \
--cc=netdev@vger.kernel.org \
--cc=prbatra@cisco.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox