SShortSingh.
Back to feed

Subnet Mask Cheat Sheet Maps CIDR Prefixes /8 to /32 With Host Counts

0
·5 views

A subnet mask is a 32-bit value whose one-bits identify the network portion of an IPv4 address and whose zero-bits identify the host portion. A /N prefix means the first N bits form the network, and the block contains 2^(32-N) addresses, with two reserved for network and broadcast except on /31 and /32. The guide traces the concept to RFC 950 from 1985 and later RFC 4632, which expresses the same idea as a prefix length. A table lists each prefix's subnet mask, wildcard mask, total addresses, and usable hosts. The article also explains a shortcut: in the interesting octet, the mask value equals 256 minus the block size.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Cloudflare Search for Agents: เปิดสวิตช์เดียว เว็บพร้อมให้ AI Agent ค้นหา

Cloudflare Search for Agents: เปิดสวิตช์เดียว เว็บพร้อมให้ AI Agent ค้นหา โดย Nokka (นก-กา) | 25 พฤศจิกายน 2569 บทความนี้เขียนโดย AI (โมเดล glm-5.3 ของผู้ให้บริการ ollama-cloud) ผ่าน Hermes Agent จาก Nous Research ตรวจสอบและเรียบเรียงโดย Nokka Cloudflare ประกาศความสามารถใหม่ชื่อ Search for Agents เมื่อวันที่ 25 พฤศจิกายน หน้าที่ของมันสรุปได้ไม่กี่คำ เจ้าของเว็บกดสวิตช์ที่แดชบอร์ดหนึ่งครั้ง Cloudflare จะสร้างดัชนีค้นหาของเนื้อหาทั้งเว็บให้เอง แล้วเปิด API ให้ AI agent ตัวไหนก็ตามบนอินเทอร์เน็ตมาค้นได้ โดยอยู่ใต้ชื่อโดเมนของคุณเอง [1] ฟีเจอร์นี้ต่อยอดจาก AI Search บริการทำดัชนีเนื้อหาของ Cloudfl

0
ProgrammingDEV Community ·

Windows sandbox uses integrity levels to let AI coding agents run unattended safely

A developer who runs AI coding agents overnight wanted protection against accidental or malicious damage on Windows, where no OS-level sandbox existed for opencode without Docker, WSL, or admin rights. They built opencode-win-guard, which enforces restrictions at the operating system level rather than filtering command text, since scripts an agent writes could bypass simple deny lists. Each agent shell command runs under a Low integrity token, so Windows blocks writes outside the designated project and cache folders. Sensitive files such as SSH keys and cloud credentials receive a mandatory label that also prevents reading by Low-level processes. A launcher substitutes the shell for each command, applying these restrictions before execution.

0
ProgrammingDEV Community ·

Static check finds few PHP 8 language blockers in old Laravel projects; framework layer is the real risk

A developer built a CLI called laravel-compat to separate the language-level from the framework-level work of upgrading legacy Laravel apps to PHP 8. Scanning three unmaintained open-source projects with PHPCompatibility, the tool found only one genuine language blocker: a call to money_format(), which PHP 8.0 removed. Other reported hits were false positives, such as a closure using $this in Laravel's own console routes file. The author concludes that the framework layer, which static analysis cannot detect, is what actually prevents old Laravel apps from running on PHP 8.

0
ProgrammingDEV Community ·

Building a queue that keeps agent sandbox starts within a concurrency cap

Agent backends that launch a sandbox on every request fail once traffic spikes or one user fans out into many parallel calls, and retries can worsen the overload. The article argues that a platform's concurrency cap should be treated as a scheduled resource rather than an occasional error. It describes a queue that never exceeds the cap, shares slots fairly across tenants, and rejects new work with a clear message when the queue is full. It also distinguishes temporary capacity limits, which justify waiting, from monthly allowance or kill-switch errors, which do not. The author suggests reading the current quota from the API at startup to set the limit dynamically.