View other host MAC addresses on the same LAN as Windows

Source: Internet
Author: User

The thing is, today when I went to the interview, I had a question to ask: What command does Windows use to know the MAC address of other hosts in the local area network. I was very familiar with it at first, but I couldn't answer it. The original station so, a lot of use to use the ping command to test the Web site connectivity and speed and so on.

However, this ping command does not see the MAC address of a single host. In fact, Windows under the command of an ARP can be learned that the other host computer network MAC address already IP address.

ARP-A (show ARP table)

There are other parameters:

-a displays the current ARP entry by asking for the current protocol data. If you specify INET_ADDR, only the IP address and physical address of the specified computer are displayed. If more than one network interface uses ARP, the entries for each ARP table are displayed.

-G is the same as-a.

-V Displays the current ARP entry in verbose mode. Items on all invalid entries and loopback interfaces are displayed.

INET_ADDR specifies an Internet address.

-N if_addr Displays the ARP entry for the IF_ADDR specified network interface.

-D deletes the host specified by inet_addr. The inet_addr can be a wildcard * to remove all hosts.

-S to add the host and associate Internet address inet_addr with physical address eth_addr. The physical address is a 6 hexadecimal byte separated by a hyphen. The item is permanent.

ETH_ADDR Specifies the physical address.

If_addr If present, this specifies the Internet address of the interface to which the address translation table should be modified. If it does not exist, the first applicable interface is used.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.