netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* routing bug report for 2.4
@ 2003-06-27 23:00 Ben Greear
  2003-06-28  9:02 ` Julian Anastasov
  0 siblings, 1 reply; 15+ messages in thread
From: Ben Greear @ 2003-06-27 23:00 UTC (permalink / raw)
  To: 'netdev@oss.sgi.com'

(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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-07-01 22:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-27 23:00 routing bug report for 2.4 Ben Greear
2003-06-28  9:02 ` 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

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).