Networking with IPv4
• Subnet mask, e.g., 255.255.255.0
• Used by the local device to determine what subnet
it’s on
• The subnet mask isn’t (usually) transmitted across
the network
• You’ll ask for the subnet mask all the time
• What’s the subnet mask of this network?
• Default gateway, e.g., 192.168.1.1
• The router that allows you to communicate outside
of your local subnet
• The default gateway must be an IP address on the
local subnet
Special IPv4 addresses