Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv4 Subnet calculator error networks /16 #1519

Open
simonecerbone opened this issue Feb 28, 2025 · 5 comments
Open

IPv4 Subnet calculator error networks /16 #1519

simonecerbone opened this issue Feb 28, 2025 · 5 comments
Assignees
Labels
bug Something isn't working triage

Comments

@simonecerbone
Copy link

Describe the bug

The network mask 10.0.0.0/16 is wrong beacuse the tool change the second octet in 10.1.0.0/16.
It has to change the third octet not the second.

Image

Image

What happened?

A bug happened!

System information

none

Where did you encounter the bug?

Public app (it-tools.tech)

@simonecerbone simonecerbone added bug Something isn't working triage labels Feb 28, 2025
@sharevb
Copy link
Contributor

sharevb commented Mar 2, 2025

Hi @simonecerbone , I (and an IT friend) don't see any error in your screenshots. Could you highlight and give values you expect ? Thanks

@simonecerbone
Copy link
Author

Hello, I’m attaching some photos for better understanding. Basically, when it comes to a /16, the first two octets (10.0.) are fixed, but if you click on the 'Next Page' button, it changes to (10.1.), which is incorrect since the /16 is 255.255.0.0.
The subnet 10.0.0.0/16 should change to 10.0.1.0/16, 10.0.2.0/16, 10.0.3.0/16... up to 10.0.255.0/16.

Image
Image

@sharevb
Copy link
Contributor

sharevb commented Mar 2, 2025

Hi @simonecerbone, for me, what you expect is /24 not /16

@simonecerbone
Copy link
Author

HI @sharevb , so, I don't quite understand the function of the "next block" button.
In a 10.0.0.0/16 network, the range is 10.0.0.1-10.0.255.254. To me, the "next block" button should display the next usable network, like 10.0.0.0/16 → 10.0.1.0/16.
Maybe I'm not understanding this correctly.

Thank you for the huge amount of work you put into creating this amazing site!!

@MisterHighping
Copy link

Hey @simonecerbone in that case it is like @sharevb described it.
You are thinking about an /24 network which would be 10.0.0.0-10.0.0.255 as a subnet or block (including the network and broadcast address). So the next block would be 10.0.1.0-10.0.1.255 and so on.
In case of a /16 network the last two octets are part of the subnet or block. Like you said 10.0.0.0-10.0.255.255 is the first block.
So the next one is 10.1.0.0-10.1.255.255 because within each network there are 65536 IP addresses before the next block starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

4 participants