How to Calculate Network IP, Number of Hosts, Range of IP addresses, and Broadcast IP from a Given Subnet.

How to Calculate Network IP, Number of Hosts, Range of IP addresses, and Broadcast IP from a Given Subnet.

Using 193.16.20.35/29, what is the Network IP, number of hosts, range of IP addresses, and broadcast IP from this subnet?

---

Network IP

For Network IP, you convert to binary, count the first 29 (Netmask), and fill the rest (to 32) with zeros.

Therefore, Network IP = Netmask + 000

193.16.20.35/29 = 11000001.00010000.00010100.00100011

Network IP = 11000001.00010000.00010100.00100000 193.16.20.32

---

Number of Hosts

To calculate the number of Hosts, you have to do the Host Min and Host Max and calculate their difference. The minimum host is 001 while the max is 110

---

Host Min

11000001.00010000.00010100.00100001

converted to 193.16.20.33

Host Max

11000001.00010000.00010100.00100110

converted to 193.16.20.38

---

Number of hosts = 193.16.20.33 to 193.16.20.38 = 6

Therefore, number of hosts = 6

Range of IP Addresses: 193.16.20.33 - 193.16.20.38

min range of IP's = 193.16.20.33

max range of IP's = 193.16.20.38

---

Broadcast IP

Count the first 29(netmask) digits after converting to binary and fill the rest(to 32) with ones to calculate the broadcast IP.

11000001.00010000.00010100.00100111

193.16.20.39

I bet that was easier than you imagined. For more content on DevOps and cloud engineering kindly follow me.