Search for IP addresses and MAC addresses

Source: Internet
Author: User

Syntax

ARP[-[Inetaddr] [-NIfaceaddr] [-G[Inetaddr] [-NIfaceaddr]

[-D INetaddr[Ifaceaddr] [-SInetaddr etheraddr[Ifaceaddr]

  Table 12.1 provides the meanings of the ARP Command Options.

Table12.1arp Command Option

Option

Description

-[Inetaddr] [-NIfaceaddr]

Displays the current ARP cache table for all interfaces. To display ARP cache items for a specific IP address, useInetaddrParameterARP-,InetaddrRepresents the IP address. If not specifiedInetaddr, The first applicable interface is used. To display the ARP cache table for a specific interface, Set-NIfaceaddrParameters and-Parameters are used together.IfaceaddrIndicates the IP address assigned to this interface.-NThe parameters are case sensitive.

-G[Inetaddr] [-NIfaceaddr]

And-Same.

-DInetaddr[Ifaceaddr]

Delete the specified IP address.InetaddrRepresents the IP address. To delete an entry in a table for the specified interface, useIfaceaddrParameter.IfaceaddrIndicates the IP address assigned to this interface. To delete all items, use the asterisk (*) wildcard instead.Inetaddr.

-SInetaddr etheraddr[Ifaceaddr]

Add an IP address to the ARP cacheInetaddrResolved to a physical addressEtheraddr. To add a static ARP cache entry to the table of the specified interface, useIfaceaddrParameter.IfaceaddrIndicates the IP address assigned to this interface.

/?

Display help at a command prompt.

 

Windows:

Add a static ARP table to the ARP-s IP Mac;

ARP-A: view the ARP table of the current host.

No RARP command.

Linux:

ARP | grep IP/MAC;

RARP .....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.