Networking basics with Bash
Alright, let’s dive into understanding Internet Protocol (IP) addresses and subnets. There are two types of IP addresses: IP Version 4 (IPv4) and IPv6. You’ll usually be working with IPv4 addresses, but it helps to know the basics of both.
IP addresses are like street addresses. They help devices communicate with each other over a network. An IP address is a unique number assigned to each device connected to a network.
Understanding IP addresses and subnets (IPv4)
IPv4 is the fourth version of the IP. It is the most widely used version of the IP in the world today. IPv4 addresses are 32-bit numerical values expressed in four octets separated by periods. Each octet can range from 0
to 255
, making up a total of over four billion unique addresses.
An IPv4 address consists of four sections separated by periods. Here is an example of an IPv4 address: 192.168.1.1
. Let’s break it down for you:
- There are four sections, each...