DEV Community

dss99911
dss99911

Posted on • Originally published at dss99911.github.io

IP Address and ARP Protocol

IP Address

Network Interfaces

lo (Loopback Device)

  • Virtual device (no hardware)
  • Used for local network services
  • Address: 127.0.0.1 (localhost)

eth0

  • Primary ethernet interface

IP Analysis

Tools and Commands

Check Your IP

Find IP from Domain Name

nslookup google.com
Enter fullscreen mode Exit fullscreen mode

Note: Some domains may not be found with nslookup. Use Google Network Analysis Tool to check remote address.

Find Domain Name from IP

nslookup 13.234.100.208
Enter fullscreen mode Exit fullscreen mode

Check Domain Registration Information

  • Use whois.com to check registrant information

ARP (Address Resolution Protocol)

Protocol used to find which MAC address corresponds to a given IP address within a network.

Key Points

  • Devices can only communicate using MAC addresses
  • ARP maps IP addresses to MAC addresses

Check ARP Table

arp -a
Enter fullscreen mode Exit fullscreen mode

This shows the stored IP-to-MAC address mappings.

Security Considerations

  • ARP is vulnerable to MITM (Man-in-the-Middle) attacks
  • ARP spoofing can redirect traffic through an attacker's machine

Reference


Originally published at https://dss99911.github.io

Top comments (0)