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

update ip range to include lowest and highest ip ranges #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RichieBzzzt
Copy link

Love that the function Get-IpRange returns all the IPs in the range, as so many tools online return the lowest and the highest. However I have noticed that the lowest and highest IPs are not returned by the function. As they are allocated by the CIDR they can be included in what is returned. I have updated the Get-IpRange function to return these IPs.

@riedyw
Copy link
Owner

riedyw commented Aug 15, 2024

The highest and lowest value in an IP range are reserved for things like broadcasts. They are not considered valid and that is why I didn't include them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants