Learn Windows XP Professional: Troubleshooting TCP/IP - Part 1 (Page 2) Page 2

ARP - Displays and modifies the IP-to-Physical address translation tables used by the address resolution protocol (ARP).

ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]

  • -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.


> arp -s 00-aa-00-62-c6-09 .... Adds a static entry.
> arp -a .... Displays the arp table.

IPCONFIG - Use the ipconfig command to get the local system's basic IP configuration information, including the IP address, subnet mask, and default gateway.

The IPCONFIG/all switch produces a detailed configuration report for all interfaces, including any configured remote access adapters.

USAGE: ipconfig [/? | /all | /renew [adapter] | /release [adapter] | /flushdns | /displaydns | /registerdns | /showclassid adapter | /setclassid adapter [classid] ]

  • /all - Display full configuration information.
  • /release - Release the IP address for the specified adapter.
  • /renew - Renew the IP address for the specified adapter.
  • /flushdns - Purges the DNS Resolver cache.
  • /registerdns - Refreshes all DHCP leases and re-registers DNS names.
  • /displaydns - Display the contents of the DNS Resolver Cache.
  • /showclassid - Displays all the dhcp class IDs allowed for adapter.
  • /setclassid - Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed.

This article was originally published on Sep 2, 2002

Thanks for your registration, follow us on our social networks to keep up-to-date