Master the foundational knowledge of computer networking: IP addressing, subnetting, ARP, and essential protocols every security professional must know.
Every machine has a special IP address that refers to itself. When you want to test networking on the local machine without sending packets to the network, you use this address. It is part of the 127.0.0.0/8 block and resolves to the hostname localhost.
A /24 subnet is one of the most common network sizes. Given the network address 192.168.1.0/24, how many usable host addresses are available? Remember: the network address and broadcast address cannot be assigned to hosts.
Before sending a packet to another device on the same network, your machine needs to know its hardware address. A specific protocol is used to resolve IP addresses to MAC addresses. This protocol is also the target of spoofing attacks used in MITM attacks.
The broadcast address is used to send packets to all hosts on a network segment. For the network 192.168.1.0/24, what is the broadcast address? It is the last address in the range.
CIDR (Classless Inter-Domain Routing) notation expresses subnet masks as a prefix length. Convert the subnet mask 255.255.255.0 to its CIDR prefix number. Count the number of consecutive 1-bits in the binary representation.