Notes
1.0.0
1.0.0
  • Introduction
  • Commands
    • cd
    • df
    • du
    • fc-cahe
    • ifconfig
    • ip
    • ls
    • lsb_release
    • mkdir
    • mksquashfs
    • mount
    • ping
    • pwd
    • rm
    • sar
    • sudo
  • Linux C
    • Preprocessor
    • Keywords
    • Kernel
      • Ftrace
      • Watchdog
  • Python
    • general
      • Decorator
      • Generator
      • Iterator
      • Lambda
    • Download
    • NIC
  • Network
    • Protocol
      • Link layer
      • IP
      • ARP
      • ICMP
    • Proxy
      • Cntlm
      • Proxychains4
      • ShadowSocks
    • Tools
      • iperf
      • tc
      • Wireshark
    • Apps
      • samba
      • tftp
  • Software
    • Atom
    • Chrome
    • Docker
    • Git
    • Gitbook
    • Hexo
    • Nodejs
    • Teraterm
    • Tex
    • Tmux
    • VIM
    • VSCode
  • Database
    • MongoDB
  • Web
    • CSS
    • LNMP
  • Tools
    • common
    • programming
  • Ubuntu
    • Add user
    • AWS EC2
    • FAQ
    • Installer
    • Shell
    • Shell scripts
    • Themes
    • VPS
  • Windows
    • PowerShell
    • CMD
    • FAQ
  • Aphorisms
  • Book List
  • Favorites
  • Appendix
    • ASCII
    • GSM
Powered by GitBook
On this page
  • 功能
  • 特性
  • 常用指令

Was this helpful?

  1. Network
  2. Protocol

ARP

PreviousIPNextICMP

Last updated 5 years ago

Was this helpful?

功能

ARP(Address Resolution Protocol)工作于数据链路层,为IP地址到对应的硬件MAC地址之间提供动态映射。

32位Internet地址
    |    ^
ARP |    | RARP
    v    |
48位以太网MAC地址

特性

  • 每个主机上都有一个ARP高速缓存,存放了最近Internet地址到硬件地址之间的映射记录;

  • 每一项缓存的生存时间一般为20分钟;

  • 分组格式见

常用指令

arp -a  # 显示ARP高速缓存
arp -d <IP-address>  # 删除某项高速缓存
arp -s <IP-address> <MAC-address> [temp]  #添加一项高速缓存
protocol