Home > Commands A-M > Commands A

ARP


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Displays and modifies the IP-to-Ethernet or token ring physical address translation tables used by the Address Resolution Protocol (ARP). This command is available only if the TCP/IP protocol has been installed.


Syntax

ARP /?

ARP [-a | -g] [inet_address] [-N [if_address]]

ARP -d inet_address [if_address]

ARP -s inet_address ether_address [if_address]


Parameters
ether_address (NT3.5)
Specifies a physical address.
if_address (NT3.5)
Specifies, if present, the IP address of the interface whose address translation table should be modified. If not present, the first applicable interface is used.
inet_address (NT3.5)
Specifies an IP address in dotted decimal notation.

Switches
/? (NT2000)
Display help.
-a (NT3.5)
-g (NT4)
Displays current ARP entries by querying TCP/IP. If inet_addr is specified, only the IP and physical addresses for the specified computer are displayed.
-d (NT3.5)
Deletes the entry specified by inet_addr.
-N (NT3.5)
Displays the ARP entries for the network interface specified by if_addr.
-s (NT3.5)
Adds an entry in the ARP cache to associate the IP address inet_addr with the physical address ether_addr. The physical address is given as 6 hexadecimal bytes separated by hyphens. The IP address is specified using dotted decimal notation. The entry is permanent, that is, it is automatically removed from the cache after the time-out expires.

Related

SCHTASKS


Notes

none.


Examples

Display the ARP cache tables for all interfaces:

    arp -a

Display the ARP cache table for the interface that is assigned the IP address 10.0.0.99:

    arp -a -N 10.0.0.99

Add static ARP cache entry that resolves the IP address 10.0.0.80 to the physical address 00-AA-00-4F-2A-9C:

    arp -s 10.0.0.80 00-AA-00-4F-2A-9C

Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NT3.5 NT4 NT2000 NTXP NT2003