Home  >  Article  >  Web Front-end  >  [TCP/IP] Network layer-ARP protocol

[TCP/IP] Network layer-ARP protocol

little bottle
little bottleforward
2019-04-16 09:32:263107browse

Address Resolution Protocol, or ARP (Address Resolution Protocol), is a TCP/IP protocol that obtains a physical address based on an IP address. The ARP protocol can convert a network layer address to any physical address, and from an IP address to a MAC address.

MAC address: physical address. Network card manufacturers must ensure that the MAC address is globally unique. It is 48-digit binary and displays 12-digit hexadecimal.

1. Check my own IP , my own IP and network address

##2. Ping other hosts on the LAN ping 10.235.173.16. At this time, the ARP protocol will convert the IP address to a mac address. There is In the cache, use the arp -a command to view

##3. Ping the external network, and the gateway mac address of my LAN will be saved

4. ARP spoofing: Spoofing the MAC address of other people’s network communication IP, so that the other party can find the mac address I specified, which is a data link layer failure

arp -s ip address mac address / /Set a static, arp binding, bind the mac address corresponding to the specified ip address, so that it cannot be deceived

arp -d Delete all caches

[Recommended courses:

TCP/IP video course

The above is the detailed content of [TCP/IP] Network layer-ARP protocol. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete