TCP/IP, ARP in UNIX and AIX


TCP/IP, ARP in UNIX and AIX

Question:

What are the possible options for the arp comand and how do I use it in Unix operating systems?

Answer:

Arp has different options on different systems.  On a Sun host running
SunOS 4.1.3 the man page says:

	arp command options:
	
	syntax: arp -s ip-address ethernet-address
		arp -d ip-address
		arp -a
	
	     -a   Display 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).
	 
	     -d   Delete an entry for the  host  called  hostname.   This
		  option may only be used by the super-user.
	 
	     -s   Create an ARP entry for the host called  hostname  with
		  the   Ethernet  address  ether_address.   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, for instance, this system will
		  respond to ARP requests for hostname  even  though  the
		  hostname is not its own.  The word trail indicates that
		  trailer encapsulations may be sent to this host.
	 
	     -f   Read the file named filename and set  multiple  entries
		  in  the  ARP  tables.  Entries in the file should be of
		  the form
	 
		       hostname ether_address [ temp ] [ pub ] [ trail ]

In general to assign an ipaddress to your server from an UNIX host
you would type:
      
        arp -s xxx.xxx.xxx.xxx 00:80:A3:xx:xx:xx

        AIX doesn't use the normal comand syntax for the arp comand.
        example for AIX:

        arp -s ether xxx.xxx.xxx.xxx 00:80:A3:xx:xx:xx

Type 

	man arp

on your host for specific information for that host.

After you have issued the arp comand on your UNIX host you
then type the following command:

	ping xxx.xxx.xxx.xxx

Now telnet to the server at that IP address and become the privileged
user and type:

	DEFINE SERVER IPADDRESS XXX.XXX.XXX.XXX

to save the IP address permanently.


© Copyright 1999, LANTRONIX