netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IP-Packets over wrong Ethernet device
@ 2014-06-20  8:05 "Conchúr Navid"
  2014-06-20  8:22 ` Aw: " "Conchúr Navid"
  0 siblings, 1 reply; 3+ messages in thread
From: "Conchúr Navid" @ 2014-06-20  8:05 UTC (permalink / raw)
  To: netdev

Hi,

I have a setup with two links between two devices. One link is used only for management and the second on is a lossy link which is used to send test data. The management link is in the network 192.168.1.x/24 and the second link (lossy) is in 192.168.200.x/24.

Now is see from time to time that data for the network 192.168.200.x/24 is so lossy that it is sent over the link which actually only should handle the data for 192.168.1.x/24. This behavior ruins my test results and I am unsure why it actually happens

Forwarding is not enabled

$ sysctl -a|grep forw
net.ipv4.conf.all.forwarding = 0
net.ipv4.conf.all.mc_forwarding = 0
net.ipv4.conf.default.forwarding = 0
net.ipv4.conf.default.mc_forwarding = 0
net.ipv4.conf.eth1.forwarding = 0
net.ipv4.conf.eth1.mc_forwarding = 0
net.ipv4.conf.eth2.forwarding = 0
net.ipv4.conf.eth2.mc_forwarding = 0
net.ipv4.conf.eth3.forwarding = 0
net.ipv4.conf.eth3.mc_forwarding = 0
net.ipv4.conf.eth4.forwarding = 0
net.ipv4.conf.eth4.mc_forwarding = 0
net.ipv4.conf.eth5.forwarding = 0
net.ipv4.conf.eth5.mc_forwarding = 0
net.ipv4.conf.lo.forwarding = 0
net.ipv4.conf.lo.mc_forwarding = 0
net.ipv4.conf.wlan2.forwarding = 0
net.ipv4.conf.wlan2.mc_forwarding = 0
net.ipv4.ip_forward = 0
net.ipv6.conf.all.forwarding = 0
net.ipv6.conf.all.mc_forwarding = 0
net.ipv6.conf.default.forwarding = 0
net.ipv6.conf.default.mc_forwarding = 0
net.ipv6.conf.eth1.forwarding = 0
net.ipv6.conf.eth1.mc_forwarding = 0
net.ipv6.conf.eth2.forwarding = 0
net.ipv6.conf.eth2.mc_forwarding = 0
net.ipv6.conf.eth3.forwarding = 0
net.ipv6.conf.eth3.mc_forwarding = 0
net.ipv6.conf.eth4.forwarding = 0
net.ipv6.conf.eth4.mc_forwarding = 0
net.ipv6.conf.eth5.forwarding = 0
net.ipv6.conf.eth5.mc_forwarding = 0
net.ipv6.conf.lo.forwarding = 0
net.ipv6.conf.lo.mc_forwarding = 0
net.ipv6.conf.wlan2.forwarding = 0
net.ipv6.conf.wlan2.mc_forwarding = 0


Does anyone has an idea why this can be happening in Linux?

And I've verified that the data is really going incorrectly through the ethernet device of the 192.168.1.x/24 network (management) by capturing tcpdump data on it. The sender of the data then also has the wrong mac address in the ARP table for some time (for unknown reasons). Instead of the mac address of the 192.168.200.x/24 ethernet device, it has the mac address of the 192.168.200.x/24. It will switch back later to the correct MAC of the 192.168.200.x/24 network and sending works correctly again as expected.

A dump on the management network ethernet interface (192.168.1.x/24) shows me that there was really an ARP request of the sender for 192.168.200.x/24 on this interface which was replied by the receiver on that interface. Is there a way to disable this reply on the "wrong" interface without using ARP-tables?

Thanks

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

* Aw: IP-Packets over wrong Ethernet device
  2014-06-20  8:05 IP-Packets over wrong Ethernet device "Conchúr Navid"
@ 2014-06-20  8:22 ` "Conchúr Navid"
  2014-07-03  5:39   ` zhuyj
  0 siblings, 1 reply; 3+ messages in thread
From: "Conchúr Navid" @ 2014-06-20  8:22 UTC (permalink / raw)
  To: netdev

> A dump on the management network ethernet interface (192.168.1.x/24) shows me that there was really an ARP request of the sender for 192.168.200.x/24 on this interface which was replied by the receiver on that interface. Is there a way to disable this reply on the "wrong" interface without using ARP-tables?

This is done by setting arp_ignore to 2 in sysctl (for the correct interfaces):

sysctl -a|grep arp_ignore
sysctl -w net.ipv4.conf.eth5.arp_ignore=2

Thanks

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

* Re: Aw: IP-Packets over wrong Ethernet device
  2014-06-20  8:22 ` Aw: " "Conchúr Navid"
@ 2014-07-03  5:39   ` zhuyj
  0 siblings, 0 replies; 3+ messages in thread
From: zhuyj @ 2014-07-03  5:39 UTC (permalink / raw)
  To: Conchúr Navid, netdev

On 06/20/2014 04:22 PM, "Conchúr Navid" wrote:
>> A dump on the management network ethernet interface (192.168.1.x/24) shows me that there was really an ARP request of the sender for 192.168.200.x/24 on this interface which was replied by the receiver on that interface. Is there a way to disable this reply on the "wrong" interface without using ARP-tables?
> This is done by setting arp_ignore to 2 in sysctl (for the correct interfaces):
>
> sysctl -a|grep arp_ignore
> sysctl -w net.ipv4.conf.eth5.arp_ignore=2
This is explained in Linux Network Internal, 28.5.2.2. ARP_IGNORE

2  Like 1, but the source IP (sender's address) must belong to the same 
subnet as the target IP.

Zhu Yanjun
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

end of thread, other threads:[~2014-07-03  5:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20  8:05 IP-Packets over wrong Ethernet device "Conchúr Navid"
2014-06-20  8:22 ` Aw: " "Conchúr Navid"
2014-07-03  5:39   ` zhuyj

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