From: Ben Greear <greearb@candelatech.com>
To: "'netdev@oss.sgi.com'" <netdev@oss.sgi.com>
Subject: routing bug report for 2.4
Date: Fri, 27 Jun 2003 16:00:37 -0700 [thread overview]
Message-ID: <3EFCCC95.3000709@candelatech.com> (raw)
(This has been discussed with Alexey, but sending to the list for
general consumption).
Here is how to reproduce this:
ifconfig eth1 192.1.1.2 netmask 255.255.255.0
ifconfig eth2 192.1.2.2 netmask 255.255.255.0
Set up policy based routing with the 'ip' tool to make packets with
source-address of each interface to use the gateway for that interface.
Set gateway for eth1 to be 192.1.1.1
Set gateway for eth2 to be 192.1.2.1
Now, use ping to try to send pkts from one interface to the other:
ping -I 192.1.1.2 192.1.2.2
You will see arps on eth1 for 192.1.2.2, whereas you should see packets
being sent to the default gateway for eth1.
If you modify the ping source to BINDTODEVICE eth1, then it will send
correctly. I am under the impression that you should not have to specifically
BINDTODEVICE in this case since the policy based routing should take care of
routing things correctly. Or, maybe, the real bug is in ping in that it did
not BINDTODEVICE?
Also, ping -I eth1 192.1.2.2 will fail to route externally. That may
just be a feature of ping: I'm unsure what the subtle difference is *supposed*
to be between using -I eth1 and -I 1.2.3.4
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
next reply other threads:[~2003-06-27 23:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-27 23:00 Ben Greear [this message]
2003-06-28 9:02 ` routing bug report for 2.4 Julian Anastasov
2003-06-28 18:38 ` Ben Greear
2003-06-28 20:12 ` Julian Anastasov
2003-06-28 20:38 ` Julian Anastasov
2003-06-28 22:13 ` Ben Greear
2003-06-29 7:28 ` Julian Anastasov
2003-06-29 9:43 ` send-to-self (was Re: routing bug report for 2.4) Julian Anastasov
2003-06-29 20:18 ` Julian Anastasov
2003-06-30 7:59 ` Ben Greear
2003-06-30 10:43 ` Julian Anastasov
2003-07-01 21:57 ` Julian Anastasov
2003-07-01 22:07 ` Ben Greear
2003-07-01 22:23 ` Julian Anastasov
2003-06-30 20:22 ` James R. Leu
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=3EFCCC95.3000709@candelatech.com \
--to=greearb@candelatech.com \
--cc=netdev@oss.sgi.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;
as well as URLs for NNTP newsgroup(s).