On 2012-11-24, Gilles LAMIRAL <[email protected]> wrote: > When I do two tcpdump on each interface I see that > when it fails the ping -I are just going on the wrong interface > even if the routing table indicates the contrary.
Routes depend on the *destination* address only. Source address has no effect on which routing table entry is used for a certain packet. If you require traffic with a certain source address to be sent via a certain interface, that is not a job for the classic routing table, you will need to use another method involving PF for route selection (either route-to / reply-to, or you may be able to do this with multiple route tables). > Do you have any explanation for this routing inversion > or a workaround/good practice to have a ping -I always working as intended? This is working as intended..

