Networking Forums

Networking Forums > Computer Networking > Linux Networking > C Program to make static ARP entries

Reply
Thread Tools Display Modes

C Program to make static ARP entries

 
 
jeniffer
Guest
Posts: n/a

 
      04-20-2006, 09:43 AM
I need to write a c program to add static entries to the ARP cache.I
read somewhere that we can use the ioctl() function and the arpreq
structure to know the MAC address.This is the only info I could get
related to ARP entries.
Plz suggest how to add static entries in the ARP cache through a
program.The system in linux .I know in windows that one can do arp -s
through the command line.
Plz suggest me pointers to go about.

 
Reply With Quote
 
 
 
 
SenthilMurugan
Guest
Posts: n/a

 
      04-20-2006, 10:24 AM
Like windows you can also add ARP entries to arp table in linux.
The Syntax is:

arp [-v] [<HW>] [-i <if>] -s <hostname> <hwaddr> [temp][nopub]


<HW>=Use '-H <hw>' to specify hardware address type. Default: ether


Regards,
Senthil Murugan

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static entries: Vista, how to investigate? Beoweolf Windows Networking 0 11-25-2008 03:02 PM
Static ARP Entries on Server shauncarter1 Windows Networking 1 01-31-2008 03:26 PM
help - static arp entries disappear on reboot SlickRCBD Windows Networking 1 12-12-2006 05:58 AM
Static ARP entries appearing on Windows 2003 server Mr BJC Windows Networking 1 08-13-2004 01:22 PM
IP over IP to make static IP? Cameron Kerr Linux Networking 6 02-07-2004 12:36 AM



1 2 3 4 5 6 7 8 9 10 11