1826159 Members
4291 Online
109691 Solutions
New Discussion

arp command

 
deepu
Occasional Contributor

arp command

Trying to change host's ARP table to add a mapping from the IP address I want to assign to the print server's Ethernet address. I am using arp command:
arp -s 80.0.0.235 0:40:05:4a:81:a7
but error is there :
SIOCSARP: Invalid argument
How to overcome this error?
8 REPLIES 8
twang
Honored Contributor

Re: arp command

deepu
Occasional Contributor

Re: arp command

Hi,
I have downloaded the patch and installed it and also rebooted the server.
But still the same error is coming.
SIOCSARP:Invalid argument.
Zeev Schultz
Honored Contributor

Re: arp command

1)Does it happen for any arp entry you add? (Try to add another one)
2)Is "80.0.0.235" shown when "arp -a" run?With or without MAC address?
So computers don't think yet. At least not chess computers. - Seymour Cray
Patrick Wallek
Honored Contributor

Re: arp command

Part of your problem may be that you are using a '0' subnet. By default HP-UX does not allow you to use 80.0.0. There is an NDD setting that you need to change to allow that.

This may not be your problem, but it is possible.
Zeev Schultz
Honored Contributor

Re: arp command

Hm,that address 80.0.0.235 is not accessible via current routing table I guess (netstat -rn)?

Then add a host route :
route add host 80.0.0.235 .Then add
entry to arp cache.

Zeev

P.S no ndd parameter on the 0.0 issue that I saw :)
So computers don't think yet. At least not chess computers. - Seymour Cray
deepu
Occasional Contributor

Re: arp command

Hi Zeev,
Not able to add in route table.
#route add host 80.0.0.235 70.0.0.106
add host 80.0.0.235: gateway 70.0.0.106: Network is unreachable

Zeev Schultz
Honored Contributor

Re: arp command

And I assume that 80.0.0.235 is somewhere not in your LAN (ie behind a firewall) so no routing is to there?

By the way,can you see the entry with arp -a
or "ndd -get /dev/arp arp_cache_report | grep 235"?
So computers don't think yet. At least not chess computers. - Seymour Cray
deepu
Occasional Contributor

Re: arp command

Thanks Zeev, problem resolved..

--Deepu