Link to home
Create AccountLog in
Avatar of bsharath
bsharathFlag for India

asked on

What is Arp-a

Hi,

When we type Arp-a we get some data.What does this mean.

Regards
Sharath
Avatar of Ibrahim Bazarwala
Ibrahim Bazarwala
Flag of Kuwait image

 -a            Displays current ARP entries by interrogating the current
                protocol data.  If inet_addr is specified, the IP and Physical
                addresses for only the specified computer are displayed.  If
                more than one network interface uses ARP, entries for each ARP
                table are displayed.
  -g            Same as -a.
  inet_addr     Specifies an internet address.
  -N if_addr    Displays the ARP entries for the network interface specified
                by if_addr.
  -d            Deletes the host specified by inet_addr. inet_addr may be
                wildcarded with * to delete all hosts.
  -s            Adds the host and associates the Internet address inet_addr
                with the Physical address eth_addr.  The Physical address is
                given as 6 hexadecimal bytes separated by hyphens. The entry
                is permanent.
  eth_addr      Specifies a physical address.
  if_addr       If present, this specifies the Internet address of the
                interface whose address translation table should be modified.
                If not present, the first applicable interface will be used.
Example:
  > arp -s 157.55.85.212   00-aa-00-62-c6-09  .... Adds a static entry.
  > arp -a                                    .... Displays the arp table.
ASKER CERTIFIED SOLUTION
Avatar of Alan Huseyin Kayahan
Alan Huseyin Kayahan
Flag of Sweden image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
   No it doesnt give the mac address of the interface. In above example, the MAC address does not belong to your interface. Type ipconfig /all and check. In above example, 192.168.0.252 is your gateway, and shown MAC address belongs to it.
Avatar of bsharath

ASKER

Mrhust..

In simple words.
Arp -a shows all connections that are made at the moment?
Am i right
   Hi Sharath
        No. The command you lookfor is netstat -n

Regards
  If you want to see host names instead ips, type only netstat without -n
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account