Editing
Help:Range blocks
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Calculating the CIDR suffix== You can use the [[#Table|table of sample ranges]] below to guess the range, use a computer script, or manually calculate the range. ===Conversion to binary=== The first step in manually calculating a range is to convert the first and last IP address to binary representation. (This assumes you're not using a computer script, which can probably calculate the range for you anyway.) An IP address is composed of four groups of eight ones and zeros. Each group represents a number from 0 to 255. To convert a number to binary, you can use a [http://www.ccci.com/tools/subcalc/binary.html reference table] or know the value of each binary digit: :<tt>Binary digit: 1 1 1 1 1 1 1 1</tt> :<tt>Value: 128 64 32 16 8 4 2 1</tt> Proceeding from left to right, fill in <tt>1</tt> if the number is at least that value, and subtract that value (if it's not, fill in <tt>0</tt> and don't subtract). For example, to calculate 240: # 240 is at least 128, so place <tt>1</tt> and subtract 128. # 112 (240-128) is at least 64, so place <tt>1</tt> and subtract 64. # 48 (112-64) is at least 32, so place <tt>1</tt> and subtract 32. # 16 (48-32) is at least 16, so place <tt>1</tt> and subtract 16. # Since the remaining value is zero, all the remaining places are <tt>0</tt>. Thus, 240 is <tt>1111 0000</tt> because it can be represented as 128+64+32+16+0+0+0+0. ===Calculate range=== # Place both IP addresses one atop the other, and count how many starting digits are exactly alike. This is the CIDR suffix. # Double-check! Being off by one digit could extend your block by thousands of addresses. The example below calculates the CIDR range between <tt>69.208.0.0</tt> and <tt>69.208.0.255</tt>. Note that this is a simple example; some groups of IP addresses do not so neatly fit CIDR suffixes, and need multiple different-sized blocks to block the exact range. :IP addresses: :<tt> 69.208.0.0</tt> :<tt> 69.208.0.255</tt> :Convert to binary: :<tt> 0100 0101.1101 0000.0000 0000.0000 0000</tt> :<tt> 0100 0101.1101 0000.0000 0000.1111 1111</tt> :Count identical first numbers: :<tt> '''0100 0101.1101 0000.0000 0000'''.0000 0000</tt> :<tt> '''0100 0101.1101 0000.0000 0000'''.1111 1111</tt> :<tt> |____________________________|</tt> :<tt> 24 digits</tt> :CIDR range: :<tt> 69.208.0.0/24</tt> ===<span id="Table">Table of sample ranges</span>=== The table below shows the IPv4 blocks each CIDR suffix affects. Note that MediaWiki only supports blocking CIDR suffixes 16–32 in IPv4 and 64–128 in IPv6 by default (subject to [[manual:$wgBlockCIDRLimit|$wgBlockCIDRLimit]]). See [[/IPv6]] for an IPv6 range table. {| class="wikitable" align=center ! CIDR ! Start Range ! End Range ! Total addresses ! Bits selected in IP address |- style="color:gray;" | <tt>69.208.0.0'''/0'''</tt> | <tt>0.0.0.0</tt> | <tt>255.255.255.255</tt> | align=right | 4,294,967,296 | <tt>********.********.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/1'''</tt> | <tt>0.0.0.0</tt> | <tt>127.255.255.255</tt> | align=right | 2,147,483,648 | <tt>0*******.********.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/4'''</tt> | <tt>64.0.0.0</tt> | <tt>79.255.255.255</tt> | align=right | 268,435,456 | <tt>0100****.********.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/8'''</tt> | <tt>69.0.0.0</tt> | <tt>69.255.255.255</tt> | align=right | 16,777,216 | <tt>01000101.********.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/11'''</tt> | <tt>69.192.0.0</tt> | <tt>69.223.255.255</tt> | align=right | 2,097,152 | <tt>01000101.110*****.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/12'''</tt> | <tt>69.208.0.0</tt> | <tt>69.223.255.255</tt> | align=right | 1,048,576 | <tt>01000101.1101****.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/13'''</tt> | <tt>69.208.0.0</tt> | <tt>69.215.255.255</tt> | align=right | 524,288 | <tt>01000101.11010***.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/14'''</tt> | <tt>69.208.0.0</tt> | <tt>69.211.255.255</tt> | align=right | 262,144 | <tt>01000101.110100**.********.********</tt> |- style="color:gray;" | <tt>69.208.0.0'''/15'''</tt> | <tt>69.208.0.0</tt> | <tt>69.209.255.255</tt> | align=right | 131,072 | <tt>01000101.1101000*.********.********</tt> |- | <tt>69.208.0.0'''/16'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.255.255</tt> | align=right | 65,536 | <tt>01000101.11010000.********.********</tt> |- | <tt>69.208.0.0'''/17'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.127.255</tt> | align=right | 32,768 | <tt>01000101.11010000.0*******.********</tt> |- | <tt>69.208.0.0'''/18'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.63.255</tt> | align=right | 16,384 | <tt>01000101.11010000.00******.********</tt> |- | <tt>69.208.0.0'''/19'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.31.255</tt> | align=right | 8,192 | <tt>01000101.11010000.000*****.********</tt> |- | <tt>69.208.0.0'''/20'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.15.255</tt> | align=right | 4,096 | <tt>01000101.11010000.0000****.********</tt> |- | <tt>69.208.0.0'''/21'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.7.255</tt> | align=right | 2,048 | <tt>01000101.11010000.00000***.********</tt> |- | <tt>69.208.0.0'''/22'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.3.255</tt> | align=right | 1,024 | <tt>01000101.11010000.000000**.********</tt> |- | <tt>69.208.0.0'''/23'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.1.255</tt> | align=right | 512 | <tt>01000101.11010000.0000000*.********</tt> |- | <tt>69.208.0.0'''/24'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.255</tt> | align=right | 256 | <tt>01000101.11010000.00000000.********</tt> |- | <tt>69.208.0.0'''/25'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.127</tt> | align=right | 128 | <tt>01000101.11010000.00000000.0*******</tt> |- | <tt>69.208.0.0'''/26'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.63</tt> | align=right | 64 | <tt>01000101.11010000.00000000.00******</tt> |- | <tt>69.208.0.0'''/27'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.31</tt> | align=right | 32 | <tt>01000101.11010000.00000000.000*****</tt> |- | <tt>69.208.0.0'''/28'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.15</tt> | align=right | 16 | <tt>01000101.11010000.00000000.0000****</tt> |- | <tt>69.208.0.0'''/29'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.7</tt> | align=right | 8 | <tt>01000101.11010000.00000000.00000***</tt> |- | <tt>69.208.0.0'''/30'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.3</tt> | align=right | 4 | <tt>01000101.11010000.00000000.000000**</tt> |- | <tt>69.208.0.0'''/31'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.1</tt> | align=right | 2 | <tt>01000101.11010000.00000000.0000000*</tt> |- | <tt>69.208.0.0'''/32'''</tt> | <tt>69.208.0.0</tt> | <tt>69.208.0.0</tt> | align=right | 1 | <tt>01000101.11010000.00000000.00000000</tt> |}
Summary:
Please note that all contributions to Fanra's EverQuest Wiki are considered to be released under the Creative Commons Attribution Share Alike (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Help page
Discussion
English
Views
Read
Edit source
View history
More
Search
Main Menu
Main page
Sections
Classes and Races
Spells, Songs, Disciplines, and AAs
Items
Zones
NPCs
Quests
Raids
Tradeskills
User Interface
Tips and Guides
EQ Links
Wiki
Recent changes
Advanced search
Random page
Help
Contact Fanra
Tools
What links here
Related changes
Upload file
Special pages
Page information