• November 01, 2024, 11:21:57 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Non-standard behavior of DSR-500 on ARP packets.  (Read 8660 times)

vitaly75

  • Level 1 Member
  • *
  • Posts: 3
Non-standard behavior of DSR-500 on ARP packets.
« on: June 13, 2014, 09:49:02 AM »

I've just came across the following problem with my DSR-500N. It does not respond to ARP packets where source and destination IPs are from different subnetworks.
In my case ARP packets to WAN1 with real IP come from 192.168.x.x address in provider's network. This seems a bit strange from first look, but https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt (variable arp_announce) says that by default linux kernel is allowed to put any local address in ARP request. and this is what my provider does. I've check other devices on the same port: desktop linux, windows, etc, and they DO RESPOND to these packets.
Exactly following variable in the same document mentions that by default linux is supposed to answer these requests, if not configured in non standard way. I was really surprised to see non standard value of 2 there for all interfaces on my dlink, meaning that my device will never work among others configured by default.
I have not found any description of this modification in router docs, same as no webui checkbox to disable this and return to default behavior.
I have no arguments to convince my provider to put 2 at his side as well. His response is that his HW has behavior recommended by default and all other clients are happy. Does anyone want to buy my DSR-500N   for cheap?
Vitaly
« Last Edit: June 23, 2014, 08:46:05 PM by vitaly75 »
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Non-standard behavior of DSR-500 on APR packets.
« Reply #1 on: June 16, 2014, 11:40:51 AM »

Link>Welcome!

  • What Hardware version is your router? Look at sticker under router.
  • Link>What Firmware version is currently loaded? Found on the routers web page under status.
  • What region are you located?

"It does not respond to APR packets where source and destination IPs are from different subnetworks.
In my case ARP packets to WAN1 with real IP come from 192.1"
APR? or ARP packets?
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

vitaly75

  • Level 1 Member
  • *
  • Posts: 3
Re: Non-standard behavior of DSR-500 on ARP packets.
« Reply #2 on: June 23, 2014, 08:53:22 PM »

HW - A1
SW - 1.08b51_WW
Region - Ukraine

ARP, fixed
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Non-standard behavior of DSR-500 on ARP packets.
« Reply #3 on: June 24, 2014, 07:21:43 AM »

I recommend that you phone contact your regional D-Link support office and ask for help and information regarding this. We find that phone contact has better immediate results over using email.
Let us know how it goes please.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

vitaly75

  • Level 1 Member
  • *
  • Posts: 3
Re: Non-standard behavior of DSR-500 on ARP packets.
« Reply #4 on: June 28, 2014, 12:56:16 PM »

Hi,

Yes, I contacted local representatives. They are bit away from understanding how ARP works, first saying that packets from other subnetwork are prohibited by different RFCs, not saying which. :)

What seems to be an argument for them, is the fact that 2 DSRs with described behavior, having switched main and alias subnets will never communicate one to other, since from one DSR ARP will come from main IP regarding IP in alias network (to communicate to main IP on the second DSR), and this second DSR will not respond since it is specially configured not to answer these packers. They promised to create a request for devs and let me know results.

Did anyone tried this scenario with same or similar HW?

I've fixed my box by just commenting last line in the following fragment of /pfrm2.0/etc/userInit script

#Setting arp_ignore to 2 so that we can drop the arp requests (whois) with
#target IP not matching with the IP of the interface on which it was received or
#if the source IP of the arp request is not in the same subnet as that of the
#IP of the interface (SPR#35932).
echo "2" > /proc/sys/net/ipv4/conf/all/arp_ignore

Thanks good people who provided root shell access to the box. I will not upgrade to modern fw, it will break everything again.

Vitaly


Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Non-standard behavior of DSR-500 on ARP packets. (RESOLVED)
« Reply #5 on: June 30, 2014, 07:02:45 AM »

Glad you got it working and thank you for sharing the information. Hope it helps others.

Enjoy.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.