DevToolBox免费
博客

IP 子网计算器

计算子网掩码、网络地址和广播地址。免费使用,无需注册。

Network192.168.1.0
Broadcast192.168.1.255
Subnet Mask255.255.255.0
Wildcard0.0.0.255
First Host192.168.1.1
Last Host192.168.1.254
Hosts254
𝕏 Twitterin LinkedIn

💬 User Feedback

Have suggestions or found a bug? Leave a message and we'll get back to you.
0/2000

评价此工具

3.6 / 5 · 227 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Enter an IP address (e.g., 192.168.1.100)
  2. Enter the CIDR prefix length (e.g., /24) or subnet mask
  3. View the calculated network address, broadcast, and host range
  4. Copy any value you need for your network configuration

Common Use Cases

  • Planning IP address allocation for cloud VPCs
  • Configuring firewall rules with correct subnet ranges
  • Studying for network certification exams (CCNA, CompTIA)
  • Troubleshooting network connectivity issues

Frequently Asked Questions

What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation like /24 indicates how many bits are used for the network portion of an IP address. /24 means 24 network bits and 8 host bits, allowing 254 usable hosts.
How do I calculate the number of hosts in a subnet?
The formula is 2^(32-prefix) - 2 for IPv4. The subtraction accounts for the network address and broadcast address. A /24 subnet has 2^8 - 2 = 254 usable hosts.
What is the difference between network and broadcast address?
The network address is the first address in a subnet (all host bits 0) and identifies the subnet. The broadcast address is the last (all host bits 1) and sends packets to all hosts in the subnet.

我们使用 Cookie 展示广告并分析流量。您可以自行选择是否允许。 隐私政策