1
ARP, DHCP and ICMP
Computer Network
- ARP (Address Resolution Protocol) — finds the MAC address for a known IP address inside the LAN (broadcast "who has 192.168.1.5?").
- DHCP — gives a device an IP address, mask, gateway and DNS automatically. Steps: DORA — Discover, Offer, Request, Acknowledge.
- ICMP — error and diagnostic messages; used by
pingandtraceroute.
ping google.com # is the host reachable? (ICMP echo)
tracert google.com # path of routers (Windows; traceroute on Linux)
ipconfig /all # IP, MAC, gateway, DNS (Windows; ip a on Linux)
nslookup example.com # DNS lookup
arp -a # ARP cache