Máy tính Subnet IP

Results
—
—

Máy tính Subnet IP nhận một địa chỉ IPv4 và tiền tố CIDR rồi suy ra mặt nạ subnet, địa chỉ mạng, địa chỉ broadcast, mặt nạ wildcard, dải host và tổng cùng số host dùng được.

Công thức
mask = ((1 << bits) − 1) << (32 − bits); network = ip & mask; broadcast = network | ~mask

Câu hỏi thường gặp

Vì sao chỉ một số host dùng được trong subnet?
Địa chỉ mạng và địa chỉ broadcast được dành riêng, nên số host dùng được = 2^(32−tiền tố) trừ hai.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. Giới thiệu MateCalc.

Máy tính liên quan