CIDR Notation
WeConfig frequently makes use of so called CIDR notation, which is a way of writing an IP address coupled with a netmask in the format IP/BitCount, where IP is the full IP address (either IPv4 or IPv6) and BitCount is the number of bits from the start of the netmask that are 1.
Examples
| CIDR Notation | IP Address | Netmask | Netmask (Bitwise) | Subnet |
|---|---|---|---|---|
| 10.12.13.14/8 | 10.12.13.14 | 255.0.0.0 | 11111111 00000000 00000000 00000000 | 10.0.0.0 |
| 172.123.234.1/16 | 172.123.234.1 | 255.255.0.0 | 11111111 11111111 00000000 00000000 | 172.123.0.0 |
| 192.168.1.2/24 | 198.168.1.2 | 255.255.255.0 | 11111111 11111111 11111111 00000000 | 192.168.1.0 |
| 1.2.3.4/32 | 1.2.3.4 | 255.255.255.255 | 11111111 11111111 11111111 11111111 | 1.2.3.4 |
| 13.13.13.13/13 | 13.13.13.13 | 255.248.0.0 | 11111111 11111000 00000000 00000000 | 13.8.0.0 |
| 1.10.20.40/17 | 1.10.20.40 | 255.255.128 | 11111111 11111111 10000000 00000000 | 1.10.0.0 |