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

[Feature]: cidr explain #63

Closed
bschaatsbergen opened this issue Nov 30, 2023 · 1 comment · Fixed by #75
Closed

[Feature]: cidr explain #63

bschaatsbergen opened this issue Nov 30, 2023 · 1 comment · Fixed by #75
Assignees
Labels
documentation Improvements or additions to documentation new-feature New feature

Comments

@bschaatsbergen
Copy link
Owner

bschaatsbergen commented Nov 30, 2023

We should consider adding a new subcommand: cidr explain to show relevant information about a CIDR range. Think of the explain subcommand as a feature to provide detailed insights into a given CIDR range.

Proposal:

Introduce a new subcommand, explain, to cidr. When users run cidr explain <CIDR>, the tool should output information about the specified CIDR range. This information could for example include:

Network Address: The base IP address of the CIDR range.
Subnet Mask: The subnet mask associated with the CIDR range.
CIDR Notation: The CIDR notation for the range.
Number of Hosts: The total number of usable host addresses within the CIDR range.
Usable IP Range: The range of IP addresses that can be assigned to devices on the network.
Broadcast Address: The address used to broadcast messages to all devices on the network.

Example Usage:

$ cidr explain 10.0.0.0/16

Network Address:   10.0.0.0
Subnet Mask:       255.255.0.0
CIDR Notation:      /16
Number of Hosts:    65,534
Usable IP Range:    10.0.0.1 to 10.0.255.254
Broadcast Address:  10.0.255.255
@bschaatsbergen bschaatsbergen changed the title [Feature]: Add a new subcommandcidr explain [Feature]: cidr explain Nov 30, 2023
@bschaatsbergen bschaatsbergen added documentation Improvements or additions to documentation new-feature New feature labels Nov 30, 2023
@bschaatsbergen bschaatsbergen self-assigned this Dec 1, 2023
@bschaatsbergen
Copy link
Owner Author

What I implemented so far in #75:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation new-feature New feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant