1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:42:08 +02:00

cidr: add page (#15176)

Signed-off-by: Bruno Schaatsbergen <git@bschaatsbergen.com>
This commit is contained in:
Bruno Schaatsbergen 2024-12-16 10:35:27 -08:00 committed by GitHub
parent ae0fb9530e
commit 34bb20c45c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
pages/common/cidr.md Normal file
View file

@ -0,0 +1,24 @@
# cidr
> Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.
> More information: <https://github.com/bschaatsbergen/cidr>.
- Explain a CIDR range:
`cidr explain {{10.0.0.0/16}}`
- Check whether an address belongs to a CIDR range:
`cidr contains {{10.0.0.0/16}} {{10.0.14.5}}`
- Get a count of all addresses in a CIDR range:
`cidr count {{10.0.0.0/16}}`
- Check whether two CIDR ranges overlap:
`cidr overlaps {{10.0.0.0/16}} {{10.0.14.0/22}}`
- Divide a CIDR range into a specific number of networks:
`cidr divide {{10.0.0.0/16}} {{9}}`