แม่แบบ:คำนวณช่วงไอพี/doc

จาก วิกิคำคม

แม่แบบนี้รองรับเลขที่อยู่ไอพีรุ่น 4 (IPv4) หรือไอพีรุ่น 6 (IPv6) เป็นตัวนำเข้าและแสดงบล็อกขนาดขั้นต่ำของที่อยู่ในการบล็อกที่ครอบคลุมตัวนำเข้าทั้งหมด

ตัวอย่าง[แก้ไข]

The following can be previewed by editing any page, for example your sandbox.

{{blockcalc|
192.168.250.15
192.168.249.255
192.168.249.15
192.168.251.15
}}

The result of the preview follows. The first row shows that blocking 192.168.248.0/22 would cover all the given IPs but would affect 1024 addresses. The next group of results (the second and third rows) shows an alternative that would affect 768 addresses but would require blocking two ranges, 192.168.249.0/24 and 192.168.250.0/23. The final group of results points out that the four individual IPs could be blocked.

เรียง 4 เลขที่อยู่ IPv4 :

192.168.249.15
192.168.249.255
192.168.250.15
192.168.251.15
ทั้งหมด
ที่ได้รับผลกระทบ
ที่อยู่
ที่ได้รับผลกระทบ
ที่อยู่
ที่ระบุ
ช่วง ส่วนร่วม
1024 1024 4 192.168.248.0/22 c
768 256 2 192.168.249.0/24 c
512 2 192.168.250.0/23 c
4 1 1 192.168.249.15 c
1 1 192.168.249.255 c
1 1 192.168.250.15 c
1 1 192.168.251.15 c