Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-10-2013, 01:27 PM   #1
LQ Newbie
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
unable to create/delete an ARP entry for a host on another subnet.

Hi Everyone,

Here is my query..

i am on host using Red hat linux 6.

i am trying to create and delete arp table entries for host which also has Redhat linux 6, using arp command as follows:-

To create any entry in arp table i am using:-
arp -s <MAC-ADDRESS>

and To delete any entry from arp table i am using:-
arp -d

But in both cases i got an error:-
SIOCDARP(priv): Network is unreachable

although host is up and i am able to judge that using ping and ssh.

Whereas in case i am trying to create or delete any entry for a host also has RHEL6)
using arp command same as above. There is no error then and entry is created/deleted for

Means for a host on same subnet i am able to create/delete an arp entry.
But for a host on another subnet this is not working.

I am still trying to find out the solution. if anybody have appropriate answer or any guide-ens please let me know.

Last edited by amitbhatt; 05-10-2013 at 01:36 PM.
Old 05-10-2013, 04:50 PM   #2
Registered: Mar 2008
Posts: 16,381

Rep: Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382
"on host

arp -s <MAC-ADDRESS>

although host is up and i am able to judge that using ping and ssh"

The last part gets me confused. If you are on the original host and you can ping then either two situations are happening. One is that you have a dynamic arp entry or some router that is connecting the two subnets.

Try simple arp for display of both static and dynamic entries.

See this web page for some more ideas or tell me a bit more of this issue.

What I'd need to know is the site topology for this test and how you are able to ping it.

About the only time I use a static arp entry is to program a device. For example I need to program a 192XXX device on a I don't reconfigure the host 10xxx, I make a static entry on that mac for the 10xxx. Then I can make it a 10xxx from default.

Last edited by jefro; 05-10-2013 at 04:51 PM.
Old 05-11-2013, 06:38 AM   #3
LQ Newbie
Registered: May 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi Jefro,

Thanks for your concern..

Actually all these three machines, and are installed virtually on vmware7.

And i am trying to create a dynamic arp entry of the machine in the arp cache of machine

But when i am trying to do so using arp command with -s option that gave me an error:- "Network not rechable"

Whereas while creating an arp entry for machine with the same command and option i am able to do so.

So i tried to check the network connection between and as follows:-

First, i ran ping command on terminal of machine as follows:-


and i found that machine is reachable from machine

Second, i tried to access the machine from machine using ssh connection and that is also working.

So through that i concluded that network is ok.

So finally i made a conclusion that i am not able to create any arp entry manually for a host on another subnet like but for a host on same subnet like i am able to create an arp entry.

Thus now i am trying to find out a solution for this. How can i manually create an arp entry in the arp cache of machine for the machine either by using arp command or by any other method.


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
[SOLVED] unable to delete menu entry tux-junkie Fedora 2 02-01-2012 12:09 PM
NFS: Unable to create, or delete. Gangrif Linux - Software 2 04-19-2007 01:59 PM
unable to create or delete files on fat32 partition Barrett Linux - Newbie 9 12-21-2005 04:19 PM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 04:14 AM
ARP Problem w/subnet robinhood1995 Linux - Networking 3 05-13-2002 09:02 PM

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

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