netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.31 ARP related problems with multiple macvlan NICs
@ 2009-09-01 11:30 Or Gerlitz
  2009-09-01 13:20 ` Eric W. Biederman
  0 siblings, 1 reply; 6+ messages in thread
From: Or Gerlitz @ 2009-09-01 11:30 UTC (permalink / raw)
  To: netdev; +Cc: Eric W. Biederman, Eric Dumazet

Using multiple (e.g 2) macvlan devices set over the same uplink NIC
and 2.6.31-rc7 I can get only one of the macvlan devices to respond on
arp request where the same scheme works fine on 2.6.29.1 and 2.6.30.

The only devices for which the system responds on ARP request is the
first match in the routing table, e.g mv0 below. Next are the commands
I am using to set the environment that reproduces the problem.

Looking on net/ipv4/arp.c I do someting that may be related which
was commited for 2.6.30 and reverted for -stable and .31 so the
fact that this test actually works with 2.6.29.1/2.6.30 makes me
think that the problem I see is not directly connected to the "ipv4: arp
announce, arp_proxy and windows ip conflict verification" commit/revert.

The problem is also not directly related to macvlan, I think, e.g
I have the same issue when having multiple veth pairs connected
to a bridge, only ping to/through the first routing hit works.

Or.

--> setup things

ip link add link eth3 address 00:19:d1:29:d2:00 mv0 type macvlan
ip link add link eth3 address 00:19:d1:29:d2:01 mv1 type macvlan

ifconfig mv0 20.20.49.10/16 up
ifconfig mv1 20.20.49.11/16 up

sysctl -w net.ipv4.conf.eth3.arp_ignore=1
sysctl -w net.ipv4.conf.mv0.arp_ignore=1
sysctl -w net.ipv4.conf.mv1.arp_ignore=1

--> try to a ping remote node from either of the interfaces
--> only the ping that goes through the first routing hit (mv0) works

# ping -I mv0 20.20.49.1 -f -c 100 -q
100 packets transmitted, 100 received, 0% packet loss, time 3ms

# ping -I mv1 20.20.49.1 -f -c 100 -q
100 packets transmitted, 0 received, 100% packet loss, time 1187ms

--> try to ping both interfaces from the remote node, same problem
# ping 20.20.49.10 -f -c 100 -q
100 packets transmitted, 100 received, 0% packet loss, time 2ms

# ping 20.20.49.11 -f -c 100 -q
100 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1187ms, pipe 3



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

end of thread, other threads:[~2009-09-03 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01 11:30 2.6.31 ARP related problems with multiple macvlan NICs Or Gerlitz
2009-09-01 13:20 ` Eric W. Biederman
2009-09-02 12:20   ` 2.6.31 ARP related problems Or Gerlitz
2009-09-02 14:47     ` Alexander Duyck
2009-09-03  8:04       ` Or Gerlitz
2009-09-03 16:07         ` Duyck, Alexander H

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