[Top] [All Lists]

routing bug report for 2.4

To: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
Subject: routing bug report for 2.4
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Fri, 27 Jun 2003 16:00:37 -0700
Organization: Candela Technologies
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529
(This has been discussed with Alexey, but sending to the list for
general consumption).

Here is how to reproduce this:

ifconfig eth1 netmask
ifconfig eth2 netmask

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
  Set gateway for eth2 to be

Now, use ping to try to send pkts from one interface to the other:

ping -I

You will see arps on eth1 for, 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

Also, ping -I eth1 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


Ben Greear <greearb@xxxxxxxxxxxxxxx>       <Ben_Greear AT>
President of Candela Technologies Inc

<Prev in Thread] Current Thread [Next in Thread>