IP addresses and subnets with slash notation

268 views

So I was adding IP address ranges to AWS and ones I was adding had `/20` and `/16` on them. I realise this has an effect on the range, but I don’t understand what effect.

Part of the IP address stays the same and the other part(s) don’t.

Can someone explain what this means?

In: 9

4 Answers

Anonymous 0 Comments

The slash notation refers to the subnet mask. The number refers to the number of bits which will be ‘masked’. (An IPv4 has 32 bits). Basically, it’s used to indicate a range of IPs.

There are a number of free online IP calculators which can help you understand how this value affects results. I personally use https://jodies.de/ipcalc

You are viewing 1 out of 4 answers, click here to view all answers.