CIDR calculator
CIDR calculator件IPv4 和 IPv6: network range、subnet mask, wildcard mask, host 数量,、conversion a start 和 end address 至 CIDR blocks.
关于CIDR calculator
CIDR calculator件IPv4 和 IPv6: network range、subnet mask, wildcard mask, host 数量,、conversion a start 和 end address 至 CIDR blocks.
属于 SmartCalcy“数据与网络”板块。它在你的浏览器中运行,无需账号,使用你自己的货币和单位(可在页面顶部更改),所给结果仅为估算、仅供参考,因此在依赖结果之前请查阅官方指引。
如何使用CIDR calculator
它计算什么,何时使用
Works out the 极差、subnet mask, wildcard mask、size a CIDR block件IPv4 或 IPv6、accepts an address with a dotted mask,、converts a start 和 end address into the smallest list CIDR blocks that cover them exactly.
使用步骤
- Choose “CIDR block” 或 “Address 极差”.
- Enter a block such as 192.168.10.0/22、or the first、last address a range.
- Read the first 和 last address、masks、number hosts.
- For a 极差, 复制 the list CIDR 块砌块.
各输入项的含义
- CIDR block, 或 address with mask – An IPv4 或 IPv6 address followed by /prefix、or an IPv4 address、a dotted mask such as 255.255.252.0.
- First 和 last address – The two ends a range, both IPv4 或 both IPv6.
如何阅读结果
- Address 极差 – The first 和 last address the block, 和 the number addresses.
- Masks – 子网掩码 和 wildcard mask件IPv4.
- Usable hosts – Addresses available件devices: the total minus the network 和 broadcast addresses、except /31、/32.
- CIDR 块砌块 – For a 极差, the 最小值 set 块砌块 that covers it.
公式
A /n block has 2^(比特 − n) addresses、where bits 是 32件IPv4、128件IPv6. The network address 是 the given address with the host bits set to zero. For IPv4 the usable hosts are 2^(32 − n) − 2. IPv6 uses BigInt arithmetic件exact results.
计算示例
192.168.10.0/22 covers 192.168.8.0 至 192.168.11.255、which 是 1,024 addresses、1,022 usable hosts, with mask 255.255.252.0.
假设与局限
- Usable hosts follow the usual convention removing the network 和 broadcast addresses. /31 links use both addresses 和 /32 是 a single host.
- IPv6 块砌块 have 否 broadcast address.
- A 极差 that does not 健康体型 one block returns several 块砌块.
常见错误
- Entering a host address 和 expecting it 至 be the network address. The tool shows the real network address.
- Using a non-contiguous mask such as 255.0.255.0, which 是 not valid.
- Mixing an IPv4 first address with an IPv6 last address.
常见问题
What 是 CIDR notation?
A way writing an address range as an address 和 a prefix length, such as 10.0.0.0/8, where the prefix 是 the number fixed leading bits.
a /24? 的 How many hosts are
256 addresses 和 254 个可用主机.
What 是 a wildcard mask?
The inverse access lists. For 255.255.255.0 it 的 the subnet mask, used 是 0.0.0.255.
What 是 IPv6? 的 a /64
The standard 大小 one IPv6 subnet, with 2^64 addresses.
罐 a 极差 always be one block?
Only if it starts on a boundary 和 its size 是 a power two. Otherwise it 是 split into several blocks.
相关工具
Block 详情
- 网络地址
- 192.168.8.0
- 子网掩码
- 255.255.252.0
- 通配符掩码
- 0.0.3.255
- 第一个可用主机
- 192.168.8.1
- 最后一个可用主机
- 192.168.11.254
- 广播地址
- 192.168.11.255
- 地址总数
- 1,024
- Usable hosts
- 1,022
- 第 Prefix leng 次
- /22
- 二进制 的 Mask
- 11111111.11111111.11111100.00000000