From 34bb20c45c6625613246d457ecc903c23368ef56 Mon Sep 17 00:00:00 2001 From: Bruno Schaatsbergen Date: Mon, 16 Dec 2024 10:35:27 -0800 Subject: [PATCH] cidr: add page (#15176) Signed-off-by: Bruno Schaatsbergen --- pages/common/cidr.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/cidr.md diff --git a/pages/common/cidr.md b/pages/common/cidr.md new file mode 100644 index 000000000..aad56f3b5 --- /dev/null +++ b/pages/common/cidr.md @@ -0,0 +1,24 @@ +# cidr + +> Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision. +> More information: . + +- 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}}`