LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-09-2006, 07:59 PM   #1
slackjames
LQ Newbie
 
Registered: Mar 2006
Distribution: slackware
Posts: 7

Rep: Reputation: 0
ARP responses on all ethernet ports - ignoring ip address


Some history.

I have a working 2.4.20 kernel (slackware) on an old box with 5 pci ethernet cards.

I went to upgrade and getting 5 ethernet ports was a hassle with the disappearing pci slots in new computers so I tried the asix usb devices (four of) with a 2.6.16.9 kernel. It failed ... it seemed to send bogus spanning tree packets (funny mac addresses) which the hub (managed) didn't like and the hub turned off the port.

So, I tried a tulip card. Same bogus spanning tree packets. Seems like it's not the card driver.

2.4.20 doesn't support the new hardware so I bought a Dlink 580TX (4 ports on one pci card) and compiled in the 2.4.32 kernel. So far so good. Now with ethereal that the arp responses are coming from all four mac addresses on the dlink, I'm sure that's going to cause some trouble. How do I configure it NOT to do arp responses on devices that do NOT have the ip address matching the arp request? Perhaps it's dumb to even ask ... ?

Oh, the on board gigabit card also responds, the following from ethereal ...
Address Resolution Protocol (request)
Sender MAC address: 00:08:0d:1e:e6:c3 (192.168.1.49)
Sender IP address: 172.18.10.49 (172.18.10.49)
Target MAC address: 00:00:00:00:00:00 (00:00:00_00:00:00)
Target IP address: 172.18.10.50 (172.18.10.50)

Address Resolution Protocol (reply)
Sender MAC address: 00:13:72:11:3b:a9 (172.18.10.50)
Sender IP address: 172.18.10.50 (172.18.10.50)
Target MAC address: 00:08:0d:1e:e6:c3 (192.168.1.49)
Target IP address: 172.18.10.49 (172.18.10.49)

Address Resolution Protocol (reply)
Sender MAC address: 00:0d:88:68:89:9d (D-Link_68:89:9d)
Sender IP address: 172.18.10.50 (172.18.10.50)
Target MAC address: 00:08:0d:1e:e6:c3 (192.168.1.49)
Target IP address: 172.18.10.49 (172.18.10.49)

Address Resolution Protocol (reply)
Sender MAC address: 00:0d:88:68:89:9c (D-Link_68:89:9c)
Sender IP address: 172.18.10.50 (172.18.10.50)
Target MAC address: 00:08:0d:1e:e6:c3 (192.168.1.49)
Target IP address: 172.18.10.49 (172.18.10.49)

Address Resolution Protocol (reply)
Sender MAC address: 00:0d:88:68:89:9f (D-Link_68:89:9f)
Sender IP address: 172.18.10.50 (172.18.10.50)
Target MAC address: 00:08:0d:1e:e6:c3 (192.168.1.49)
Target IP address: 172.18.10.49 (172.18.10.49)

Address Resolution Protocol (reply)
Sender MAC address: 00:0d:88:68:89:9e (D-Link_68:89:9e)
Sender IP address: 172.18.10.50 (172.18.10.50)
Target MAC address: 00:08:0d:1e:e6:c3 (192.168.1.49)
Target IP address: 172.18.10.49 (172.18.10.49)
 
Old 05-09-2006, 08:36 PM   #2
slackjames
LQ Newbie
 
Registered: Mar 2006
Distribution: slackware
Posts: 7

Original Poster
Rep: Reputation: 0
I think I've found it, in ls /proc/sys/net/ipv4/conf/... arp_ignore and arp_announce. It's also in Documentation/networking/ip-sysctl.txt in the kernel build tree.
 
Old 05-09-2006, 08:52 PM   #3
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
This is known as arp-flux problem. See section 2.1.4. of the "Guide to IP Layer Network Administration with Linux" for more details. But yeah, the sysctl options you mentioned are one possible solution.
 
Old 05-12-2006, 01:24 AM   #4
slackjames
LQ Newbie
 
Registered: Mar 2006
Distribution: slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks. In the end I put the followig in rc.local, works nicely.

for i in all eth0 eth1 eth2 eth3 eth4 ; do echo 1 > /proc/sys/net/ipv4/conf/$i/arp_filter; done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot determine ethernet address for proxy ARP JohnKFT Slackware 6 05-19-2020 12:49 PM
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 06:02 AM
Ethernet address for proxy ARP problem with PPP GuestFox Slackware 2 06-05-2005 08:17 AM
delayed responses at almost all ports gimikalibur Linux - Networking 2 03-20-2005 01:56 AM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration