LinuxQuestions.org
Help answer threads with 0 replies.
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-10-2013, 01:27 PM   #1
amitbhatt
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 192.168.0.254 using Red hat linux 6.

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

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

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

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

although host 192.168.1.2 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 192.168.0.1(which also has RHEL6)
using arp command same as above. There is no error then and entry is created/deleted for 192.168.0.1.

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
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
"on host 192.168.0.254

arp -s 192.168.1.2 <MAC-ADDRESS>

although host 192.168.1.2 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.

http://ustechnica.com/tag/siocdarppr...s-unreachable/


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 10.xxx. 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
amitbhatt
LQ Newbie
 
Registered: May 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi Jefro,

Thanks for your concern..

Actually all these three machines 192.168.0.254/24, 192.168.0.1/24 and 192.168.1.2/24 are installed virtually on vmware7.

And i am trying to create a dynamic arp entry of the machine 192.168.1.2/24 in the arp cache of machine 192.168.0.254/24.

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 192.168.0.1/24 with the same command and option i am able to do so.

So i tried to check the network connection between 192.168.0.254/24 and 192.168.1.2/24 as follows:-

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

ping 192.168.1.2

and i found that machine 192.168.1.2 is reachable from machine 192.168.0.254

Second, i tried to access the machine 192.168.1.2 from machine 192.168.0.254 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 192.168.1.2 but for a host on same subnet like 192.168.0.1 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 192.168.0.254 for the machine 192.168.1.2 either by using arp command or by any other method.
 
  


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
[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

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

All times are GMT -5. The time now is 10:22 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