LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-23-2011, 08:03 AM   #1
YaMaHaBoB
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Rep: Reputation: 0
can't delete arp entries


So I have some entries like the ones below. I have a system setup to do all the routing/dhcp/dns. This is a private network for education purposes only, and I have no idea how half of these addresses got in the arp table.

shell>arp -n
192.58.128.30 (incomplete) eth0
192.228.79.201 (incomplete) eth0
192.36.148.17 (incomplete) eth0
192.168.1.100 ether 00:11:22:33:44:55 C eth0
192.8.10.90 (incomplete) eth0
10.0.0.100 ether 00:11:22:33:44:55 C eth0
10.0.0.1 * <from_interface> MP eth0

I have a private network with 10.x.x.x, mask 255.0.0.0, and one addition computer with a static 192.168.1.100. There are only three computers (hooked up through a switch).

I've tried deleting entries manually i.e.:
arp -d 192.58.128.30

and get the error:
SIOCDARP(dontpub): Network is unreachable

I can't figure out how to just clear the table. That's all I want. Is that too much to ask? I also noticed in Wireshark that packets are constantly being sent to find the MAC address that these IPs belong too. I really want that to stop happening.

EDIT:
I have also tried using ip neighbor. I ran "ip neighbor del 192.58.128.30 dev eth0", and it gave no errors but didn't remove the entry. All the ones without a MAC are also listed as FAILED in ip neighbor.

Ideas?
Thanks in advance

Last edited by YaMaHaBoB; 06-23-2011 at 08:09 AM. Reason: updates
 
Old 06-23-2011, 08:16 AM   #2
YaMaHaBoB
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 0
I absolutely can't believe this. Two days looking at this problem, I finally make a post and found a solution. I accidentally stumbled up where you can turn ARP off! For anyone with the same issue, I used ip link to fix the issue by first turning ARP off and turning ARP back on.

Code:
ip link set arp off dev eth0
ip link set arp on dev eth0
 
Old 12-28-2022, 01:17 AM   #3
usman317
LQ Newbie
 
Registered: Dec 2022
Posts: 1

Rep: Reputation: 1
If you turn off the arp link, how would your device be able to get the mac address of any other device added to the network.
 
1 members found this post helpful.
Old 12-28-2022, 09:29 AM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Generally arp command is 10-10- or 10:10: form. Not sure I've seen a 10.10. but maybe.

Use arp option to show static and dynamic entries.
 
Old 02-01-2023, 04:11 PM   #5
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 207

Rep: Reputation: 44
you don't want to delete arp entries. it messes things up no matter what you think the situation is.

let the kernel do it. it will do it correctly.
 
  


Reply



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
How can I delete one of my Blog entries? catkin LQ Suggestions & Feedback 12 05-18-2011 02:43 AM
How do I delete entries from grub? joseph2020 Ubuntu 5 02-17-2011 10:09 PM
How to delete LDAP entries struggled_newbie Linux - Newbie 1 11-03-2009 02:56 AM
New blog entries wont appear unless I delete the cookies Mr_Shameless Linux - General 1 10-17-2006 10:48 AM
Delete all entries in the calendar in Evolution TheSpork Linux - Software 0 04-16-2004 08:51 AM

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

All times are GMT -5. The time now is 07:21 PM.

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