رفتن به محتوا
ipaddress.tr

محاسبه‌گر CIDR

یک نشانی همراه با پیشوند بنویسید. نتیجه‌ها هم‌زمان با نوشتن به‌روز می‌شوند.

نشانی شبکه
192.168.1.0/24
نشانی همگانی (broadcast)
192.168.1.255
نخستین قابل استفاده
192.168.1.1
آخرین قابل استفاده
192.168.1.254
ماسک زیرشبکه
255.255.255.0
ماسک wildcard
0.0.0.255
طول پیشوند
/24
کل نشانی‌ها
۲۵۶
میزبان‌های قابل استفاده
۲۵۴
کلاس قدیمی
C
بازهٔ نشانی
192.168.1.0 – 192.168.1.255

دودویی

11000000.10101000.00000001.00000000
بیت‌های شبکه بیت‌های میزبان
پیشوندهای رایج IPv4
CIDRماسک زیرشبکهمیزبان‌ها
/8255.0.0.0۱۶٬۷۷۷٬۲۱۴
/12255.240.0.0۱٬۰۴۸٬۵۷۴
/16255.255.0.0۶۵٬۵۳۴
/20255.255.240.0۴٬۰۹۴
/22255.255.252.0۱٬۰۲۲
/23255.255.254.0۵۱۰
/24255.255.255.0۲۵۴
/25255.255.255.128۱۲۶
/26255.255.255.192۶۲
/27255.255.255.224۳۰
/28255.255.255.240۱۴
/29255.255.255.248۶
/30255.255.255.252۲
/31255.255.255.254۲
/32255.255.255.255۱

این متن هنوز به فارسی در دسترس نیست. تا انتشار ترجمه به انگلیسی نمایش داده می‌شود.

CIDR (Classless Inter-Domain Routing) notation writes a network as an address followed by a prefix length: 192.168.1.0/24 means “the first 24 bits identify the network”. The remaining bits number the hosts inside it.

The calculator masks off the host bits to find the network address, sets them all to one to find the broadcast address (IPv4 only), and counts the addresses in between. A dotted mask such as 255.255.255.0 is accepted too — it is simply another way of writing /24.

On IPv4, the first and last address of most subnets are reserved, so a /24 has 256 addresses but 254 usable hosts. Two exceptions: a /31 is used for point-to-point links where both addresses are usable (RFC 3021), and a /32 describes a single host.

پرسش‌های پرتکرار

How many hosts are in a /24?

A /24 contains 256 addresses. On a normal IPv4 subnet the network and broadcast addresses are reserved, leaving 254 usable host addresses.

What is a wildcard mask?

The wildcard mask is the inverse of the subnet mask: host bits are 1 and network bits are 0. For a /24 it is 0.0.0.255. Cisco ACLs and OSPF configuration use it.

Does IPv6 have a broadcast address?

No. IPv6 replaces broadcast with multicast, so every address in an IPv6 prefix can be assigned. The all-zeros host address is the Subnet-Router anycast address.

Why does my result say host bits were set?

You entered an address that is not the first address of the network, such as 10.1.2.3/8. The calculator shows the network it belongs to (10.0.0.0/8).