arp(8c)arp(8c)Name
arp - address resolution display and control
Syntax
arp -a [vmunix] [kmem]
arp [-d] hostname
arp -f filename
arp -s hostname ether_addr [temp] [pub] [trail]
Description
The program displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol
The hostname is the name of the host system for which information will be displayed or modified.
With no flags, the program displays the current ARP entry for hostname.
Options-a Displays current Address Resolution Protocol (ARP) entries from the specified name list and core files (next arguments). If not spec-
ified, uses and respectively.
-d Deletes the entry for the host specified by name (next argument).
-f Reads information from the specified file (next argument) and modifies entries accordingly. Entries in the file should be of the fol-
lowing form, with argument meanings as given previously:
hostname ether_addr [ temp ] [ pub ] [ trail ]
-s Creates an ARP entry for the host called hostname with the Ethernet address ether_addr. The Ethernet address is given as six hexadec-
imal bytes separated by colons. The entry will be permanent unless the word temp is given in the command. If the word pub is given,
the entry will be published. That is, the system will act as an ARP server, responding to requests for hostname even though the host
address is not its own. The word trail indicates that trailer encapsulations may be sent to this host.
See Alsoarp(4p), ifconfig(8c)arp(8c)
Check Out this Related Man Page
ARP(8C)ARP(8C)NAME
arp - address resolution display and control
SYNOPSIS
arp hostname
arp -a [ vmunix ] [ kmem ]
arp -d hostname
arp -s hostname ether_addr [ temp ] [ pub ] [ trail ]
arp -f filename
DESCRIPTION
The arp program displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol
(arp(4p)).
With no flags, the program displays the current ARP entry for hostname. The host may be specified by name or by number, using Internet dot
notation. With the -a flag, the program displays all of the current ARP entries by reading the table from the file kmem (default
/dev/kmem) based on the kernel file vmunix (default /vmunix).
With the -d flag, a super-user may delete an entry for the host called hostname.
The -s flag is given to create an ARP entry for the host called hostname with the Ethernet address ether_addr. The Ethernet address is
given as six hex bytes separated by colons. The entry will be permanent unless the word temp is given in the command. If the word pub is
given, the entry will be "published"; i.e., this system will act as an ARP server, responding to requests for hostname even though the host
address is not its own. The word trail indicates that trailer encapsulations may be sent to this host.
The -f flag causes the file filename to be read and multiple entries to be set in the ARP tables. Entries in the file should be of the
form
hostname ether_addr [ temp ] [ pub ] [ trail ]
with argument meanings as given above.
SEE ALSO inet(3N), arp(4P), ifconfig(8C)4.3 Berkeley Distribution May 20, 1986 ARP(8C)
Hi,
In my code, I am running rsync, if any error comes, I have to wirte the error to temp file and I want to send this temp file content to specified email address, I am getting starnge outpout, can you pls help to solve this?
My code is:
tempfile=error.`date '+%m%d%Y_%H%M%SGMT'`
rsync -az -e... (3 Replies)
im trying to get an ARP readout using the command 'arp -a'... but the command doesnt exist in Fedora Core 6 - IPv6.... is there an equivalent command? (4 Replies)
Hi,
I had written the following script to find the list of files with *.ksh in a directory. and store it in a temp file.
I want to loop through the file temp and list the contents. I had used cat temp. But its giving Cat and temp as the output.
Do help me out.
Thanks
find .... (7 Replies)
I was checking nettl output for a unstable telnet to my server. this is part of output:
###
***********************************STREAMS/UX*******************************@#%
Timestamp : Sun Jun 22 EETDST 2008 22:14:47.492899
Process ID : Subsystem ... (4 Replies)
Hi there,
Could anyone tell me what is wrong with this entry in the /etc/hosts file
127.0.0.1 localhost hostname.lcl hostname #loghost
1.2.3.4 hostname
I have sendmail runing. IF I remove hostname.lcl and hostname from the localhost(127.0.0.1)'s line, sendmail... (4 Replies)
Hi,
How can I get the IP address of a server?
I can get the node name using the hostname command but is there any command like ipconfig in Windows?
Thanks :) ... (7 Replies)
I have a list of files and their directories, starting from a particular location. e.g.
temp/new/a.c
temp/new/b.c
temp/old/a.c
temp/old/older/b.c
etc.
Now I want to check the existence of all these files in the respective directories .
I am trying something like
cat "fileList" |... (4 Replies)
Hello everybody,
I have a working code that displays an entry from a given IP address. but, how can i display the entire ARP table? like the option 'arp -a' of the standard linux program.
This is the code:#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <netdb.h>... (4 Replies)
Can someone please explain this output to me. Why doesn't ifconfig show the same info?
~ $ arp -a
? (10.71.0.1) at 00:1b:21:2b:eb:0c on eth0 (4 Replies)
Hi ,
I am working in a Unix Solaris server which has apache installed. I was logged into the server using ssh . I accidentally ran the arp -d command with the hostname of the logged in server and deleted the entry :confused:.
Now I am not able to access the server. Is there anyway I can access... (14 Replies)
A customer appears to have drastically misunderstood our instructions for connecting to our WAN. He set his PC IP address to the same as one of the bridges. :mad: :wall: This caused much confusion on the network, to put it mildly. He called to complain about the poor performance of the network... (13 Replies)
Hi all,
I am trying to exchange hostname and IP address of two AIX machines.
But i am confused as how to change it ?
do i need to use "smitty mktcpip" or "smitty tcpip" ?
what is the difference between smitty mktcpip and smitty tcpip ?
Also anymore steps to follow or just updating... (3 Replies)
I am trying to attach multiple files using mutt command, and all file names to be attached are taken from a flat file. and mutt command is called from a bash script when :
1. Script execution is completed.
2. Script execution is interrupted for some reason.
... (8 Replies)
Hi all,
Please i have to get hostname of an ip address (172.16.68.4). so i have used the command 'host'
host $ipaddr >> iptohostname.txt
Here is my file: iptohostname.txt
4.68.16.172.in-addr.arpa domain name pointer g-4.xxx.yyyy.zz.
3.68.16.172.in-addr.arpa domain name pointer... (11 Replies)
Hi,
I need hostname from below entry.How do I write a script on this?tnsping is utility in oracle -if I do tnsping ora11gb then it would give one output and I want to extract hostname from this output which come after "HOST="
oracle@brookford:~> tnsping ora11gb|grep -i HOST
Attempting to... (11 Replies)