Help:Range blocks/IPv6

t|🎫 u See for the main page on rangeblocking, and for IPv4. Like IPv4, IPv6 rangeblocks are limited by, which by default allows rangeblocks of up to /19 in size.

Technical explanation
IPv6 addresses are each 128 bits long. Because each digit in an IPv6 address can have 16 different values (from 0 to F=15), each digit represents the overall value of 4 bits (one nibble), with 32 digits total. As with IPv4, CIDR notation describes ranges in terms of a common prefix of bits. For example 2001:db8::/32 means that the range described has the first 32 bits set to the binary digits 00100000000000010000110110111000. Also like IPv4, MediaWiki implements IPv6 rangeblocks using CIDR notation.

Collateral damage
The best guideline for assessing collateral damage for an IPv6 rangeblock is to check the WHOIS, and the actual amount of activity from the range. MediaWiki supports looking up a range's contributions with Special:Contributions, e.g. Special:Contributions/2001:db8::/32 (note that the latter range will not return any edits).

In assessing collateral damage it is important to understand IPv6 address allocations to end-users. The most important fact to know about is that single or multiple /64 subnets for an end-user connection is a practical requirement of IPv6. What this means is that IPv6 connections will have at least 264 addresses assigned to them, which is around 18 billion billion; sometimes they can have considerably more. The reason IPv6 requires /64 subnetting is that any deviation from this breaks a great number of IPv6 protocols, and it will also be needed for future developments. The only exception to longer than /64 subnetting is for certain connections where many IPv6 features are not needed, for example a /126 subnet for point-to-point inter-router linking. But this is not relevant for IPv6 rangeblocking since no end-users will have addresses of this sort.

So in many ways IPv6 /64 rangeblocks are akin to blocks of single IPv4 addresses, as a /64 subnet is the norm for connections, although sometimes end-user allocations will include multiple /64 subnets. So generally speaking IPv6 /64 rangeblocks are recommended, as blocks of single IPv6 addresses can be easily circumvented by users with minimal technical knowledge, and normally the risk of collateral damage is low. But be aware that like in IPv4, where a single static IPv4 address may supply a household or institution of some kind, a static IPv6 /64 range may also supply a household or institution, so multiple users can be affected by /64 rangeblocks.

An exception to this is mobile broadband access; these IPs are allocated dynamically within certain ranges, and blocking these is unlikely to be successful, as they are easily circumvented and risk collateral damage; this applies to all types of blocks, whether they are IPv4 or IPv6 blocks of single addresses or ranges. Mobile broadband addresses can be checked using a WHOIS service. Note that IPv6 /64 ranges are unlikely to be a dynamic, rather they are likely to be static, and typically won't change for an end-user. This is due to the large number of available IPv6 addresses, meaning dynamic allocation is unnecessary; this lowers the risk of collateral damage.

How to calculate an IPv6 CIDR range
Although similar principles also apply to IPv4, the fact that hexadecimal digits correspond to exactly one nibble (4 bits) each simplifies the calculation somewhat.
 * 1) Find the common prefix – that is, the string of digits shared by all of your addresses.
 * 2) Expand the common prefix completely (including redundant zeros), and multiply the total number of digits by 4 - that's the size of your common prefix.
 * 3) Use the table below, and add the specified number to your prefix size (this is your CIDR suffix, the number of bits common to all addresses in the range).  Append the specified digit to the common prefix you found in step 1.  Complete the group of four digits with zeros if necessary.
 * 4) The CIDR is then [common prefix (with additional digit as specified by table below, followed by zeros as necessary to keep the group of four digits complete)]/[common prefix length (plus 1,2, or 3 as specified by the table below)].

Prefix modification table
Example: If your prefix is 2001:db8:abcd:: (completely expanded to 2001:0db8:abcd::), and you have addresses like 2001:db8:abcd:9000:abe:: and 2001:db8:abcd:a000::, you'd use the entry saying that the digits after your prefix match 8-b, append 8 to the prefix, and add 2 to your common prefix's size. This would generate 2001:db8:abcd:8000::/50.

Range table
<
 * align=right | 1,298,074,214,633,706,907,132,624,082,305,024
 * align=right | 70,368,744,177,664
 * - style="color:red;"
 * align=right | 649,037,107,316,853,453,566,312,041,152,512
 * align=right | 35,184,372,088,832
 * - style="color:red;"
 * align=right | 324,518,553,658,426,726,783,156,020,576,256
 * align=right | 17,592,186,044,416
 * - style="color:red;"
 * align=right | 162,259,276,829,213,363,391,578,010,288,128
 * align=right | 8,796,093,022,208
 * - style="color:red;"
 * align=right | 81,129,638,414,606,681,695,789,005,144,064
 * align=right | 4,398,046,511,104
 * - style="color:red;"
 * align=right | 40,564,819,207,303,340,847,894,502,572,032
 * align=right | 2,199,023,255,552
 * - style="color:orange;"
 * align=right | 20,282,409,603,651,670,423,947,251,286,016
 * align=right | 1,099,511,627,776
 * - style="color:orange;"
 * align=right | 10,141,204,801,825,835,211,973,625,643,008
 * align=right | 549,755,813,888
 * - style="color:orange;"
 * align=right | 5,070,602,400,912,917,605,986,812,821,504
 * align=right | 274,877,906,944
 * - style="color:orange;"
 * align=right | 2,535,301,200,456,458,802,993,406,410,752
 * align=right | 137,438,953,472
 * - style="color:orange;"
 * align=right | 1,267,650,600,228,229,401,496,703,205,376
 * align=right | 68,719,476,736
 * - style="color:orange;"
 * align=right | 633,825,300,114,114,700,748,351,602,688
 * align=right | 34,359,738,368
 * - style="color:orange;"
 * align=right | 316,912,650,057,057,350,374,175,801,344
 * align=right | 17,179,869,184
 * - style="color:orange;"
 * align=right | 158,456,325,028,528,675,187,087,900,672
 * align=right | 8,589,934,592
 * - style="color:orange;"
 * align=right | 79,228,162,514,264,337,593,543,950,336
 * align=right | 4,294,967,296
 * - style="color:olive;"
 * align=right | 39,614,081,257,132,168,796,771,975,168
 * align=right | 2,147,483,648
 * - style="color:olive;"
 * align=right | 19,807,040,628,566,084,398,385,987,584
 * align=right | 1,073,741,824
 * - style="color:olive;"
 * align=right | 9,903,520,314,283,042,199,192,993,792
 * align=right | 536,870,912
 * - style="color:olive;"
 * align=right | 4,951,760,157,141,521,099,596,496,896
 * align=right | 268,435,456
 * - style="color:olive;"
 * align=right | 2,475,880,078,570,760,549,798,248,448
 * align=right | 134,217,728
 * -style="color:olive;"
 * align=right | 1,237,940,039,285,380,274,899,124,224
 * align="right" | 67,108,864
 * -style="color:olive;"
 * align=right | 618,970,019,642,690,137,449,562,112
 * align="right" | 33,554,432
 * -style="color:olive;"
 * align=right | 309,485,009,821,345,068,724,781,056
 * align=right | 16,777,216
 * -style="color:olive;"
 * align=right | 154,742,504,910,672,534,362,390,528
 * align=right | 8,388,608
 * -style="color:olive;"
 * align=right | 77,371,252,455,336,267,181,195,264
 * align=right | 4,194,304
 * -style="color:olive;"
 * align=right | 38,685,626,227,668,133,590,597,632
 * align=right | 2,097,152
 * -style="color:olive;"
 * align=right | 19,342,813,113,834,066,795,298,816
 * align=right | 1,048,576
 * -style="color:olive;"
 * align=right | 9,671,406,556,917,033,397,649,408
 * align=right | 524,288
 * -style="color:olive;"
 * align=right | 4,835,703,278,458,516,698,824,704
 * align=right | 262,144
 * -style="color:olive;"
 * align=right | 2,417,851,639,229,258,349,412,352
 * align=right | 131,072
 * -style="color:green;"
 * align=right | 1,208,925,819,614,629,174,706,176
 * align=right | 65,536
 * -style="color:green;"
 * align=right | 604,462,909,807,314,587,353,088
 * align=right | 32,768
 * -style="color:green;"
 * align=right | 302,231,454,903,657,293,676,544
 * align=right | 16,384
 * -style="color:green;"
 * align=right | 151,115,727,451,828,646,838,272
 * align=right | 8,192
 * -style="color:green;"
 * align=right | 75,557,863,725,914,323,419,136
 * align=right | 4,096
 * -style="color:green;"
 * align=right | 37,778,931,862,957,161,709,568
 * align=right | 2,048
 * -style="color:green;"
 * align=right | 18,889,465,931,478,580,854,784
 * align=right | 1,024
 * -style="color:green;"
 * align=right | 9,444,732,965,739,290,427,392
 * align=right | 512
 * -style="color:green;"
 * align=right | 4,722,366,482,869,645,213,696
 * align=right | 256
 * -style="color:green;"
 * align=right | 2,361,183,241,434,822,606,848
 * align=right | 128
 * -style="color:green;"
 * align=right | 1,180,591,620,717,411,303,424
 * align=right | 64
 * -style="color:green;"
 * align=right | 590,295,810,358,705,651,712
 * align=right | 32
 * -style="color:green;"
 * align=right | 295,147,905,179,352,825,856
 * align=right | 16
 * -style="color:green;"
 * align=right | 147,573,952,589,676,412,928
 * align=right | 8
 * -style="color:green;"
 * align=right | 73,786,976,294,838,206,464
 * align=right | 4
 * -style="color:green;"
 * align=right | 36,893,488,147,419,103,232
 * align=right | 2
 * -style="color:green;"
 * align=right | 18,446,744,073,709,551,616
 * align=right | 1
 * -style="color:blue;"
 * align=right | 9,223,372,036,854,775,808
 * rowspan="63"| -
 * -style="color:blue;"
 * align=right | 4,611,686,018,427,387,904
 * -style="color:blue;"
 * align=right | 2,305,843,009,213,693,952
 * -style="color:blue;"
 * align=right | 1,152,921,504,606,846,976
 * -style="color:blue;"
 * align=right | 576,460,752,303,423,488
 * -style="color:blue;"
 * align=right | 288,230,376,151,711,744
 * -style="color:blue;"
 * align=right | 144,115,188,075,855,872
 * -style="color:blue;"
 * align=right | 72,057,594,037,927,936
 * -style="color:blue;"
 * align=right | 36,028,797,018,963,968
 * -style="color:blue;"
 * align=right | 18,014,398,509,481,984
 * -style="color:blue;"
 * align=right | 9,007,199,254,740,992
 * -style="color:blue;"
 * align=right | 4,503,599,627,370,496
 * -style="color:blue;"
 * align=right | 2,251,799,813,685,248
 * -style="color:blue;"
 * align=right | 1,125,899,906,842,624
 * -style="color:blue;"
 * align=right | 562,949,953,421,312
 * -style="color:blue;"
 * align=right | 281,474,976,710,656
 * -style="color:blue;"
 * align=right | 140,737,488,355,328
 * -style="color:blue;"
 * align=right | 70,368,744,177,664
 * -style="color:blue;"
 * align=right | 35,184,372,088,832
 * -style="color:blue;"
 * align=right | 17,592,186,044,416
 * -style="color:blue;"
 * align=right | 8,796,093,022,208
 * -style="color:blue;"
 * align=right | 4,398,046,511,104
 * -style="color:blue;"
 * align=right | 2,199,023,255,552
 * -style="color:blue;"
 * align=right | 1,099,511,627,776
 * -style="color:blue;"
 * align=right | 549,755,813,888
 * -style="color:blue;"
 * align=right | 274,877,906,944
 * -style="color:blue;"
 * align=right | 137,438,953,472
 * -style="color:blue;"
 * align=right | 68,719,476,736
 * -style="color:blue;"
 * align=right | 34,359,738,368
 * -style="color:blue;"
 * align=right | 17,179,869,184
 * -style="color:blue;"
 * align=right | 8,589,934,592
 * -style="color:blue;"
 * align=right | 4,294,967,296
 * -style="color:blue;"
 * align=right | 2,147,483,648
 * -style="color:blue;"
 * align=right | 1,073,741,824
 * -style="color:blue;"
 * align=right | 536,870,912
 * -style="color:blue;"
 * align=right | 268,435,456
 * -style="color:blue;"
 * align=right | 134,217,728
 * -style="color:blue;"
 * align=right | 67,108,864
 * -style="color:blue;"
 * align=right | 33,554,432
 * -style="color:blue;"
 * align=right | 16,777,216
 * -style="color:blue;"
 * align=right | 8,388,608
 * -style="color:blue;"
 * align=right | 4,194,304
 * -style="color:blue;"
 * align=right | 2,097,152
 * -style="color:blue;"
 * align=right | 1,048,576
 * -style="color:blue;"
 * align=right | 524,288
 * -style="color:blue;"
 * align=right | 262,144
 * -style="color:blue;"
 * align=right | 131,072
 * -style="color:blue;"
 * align=right | 65,536
 * -style="color:blue;"
 * align=right | 32,768
 * -style="color:blue;"
 * align=right | 16,384
 * -style="color:blue;"
 * align=right | 8,192
 * -style="color:blue;"
 * align=right | 4,096
 * -style="color:blue;"
 * align=right | 2,048
 * -style="color:blue;"
 * align=right | 1,024
 * -style="color:blue;"
 * align=right | 512
 * -style="color:blue;"
 * align=right | 256
 * -style="color:blue;"
 * align=right | 128
 * -style="color:blue;"
 * align=right | 64
 * -style="color:blue;"
 * align=right | 32
 * -style="color:blue;"
 * align=right | 16
 * -style="color:blue;"
 * align=right | 8
 * -style="color:blue;"
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * align=right | 36,893,488,147,419,103,232
 * align=right | 2
 * -style="color:green;"
 * align=right | 18,446,744,073,709,551,616
 * align=right | 1
 * -style="color:blue;"
 * align=right | 9,223,372,036,854,775,808
 * rowspan="63"| -
 * -style="color:blue;"
 * align=right | 4,611,686,018,427,387,904
 * -style="color:blue;"
 * align=right | 2,305,843,009,213,693,952
 * -style="color:blue;"
 * align=right | 1,152,921,504,606,846,976
 * -style="color:blue;"
 * align=right | 576,460,752,303,423,488
 * -style="color:blue;"
 * align=right | 288,230,376,151,711,744
 * -style="color:blue;"
 * align=right | 144,115,188,075,855,872
 * -style="color:blue;"
 * align=right | 72,057,594,037,927,936
 * -style="color:blue;"
 * align=right | 36,028,797,018,963,968
 * -style="color:blue;"
 * align=right | 18,014,398,509,481,984
 * -style="color:blue;"
 * align=right | 9,007,199,254,740,992
 * -style="color:blue;"
 * align=right | 4,503,599,627,370,496
 * -style="color:blue;"
 * align=right | 2,251,799,813,685,248
 * -style="color:blue;"
 * align=right | 1,125,899,906,842,624
 * -style="color:blue;"
 * align=right | 562,949,953,421,312
 * -style="color:blue;"
 * align=right | 281,474,976,710,656
 * -style="color:blue;"
 * align=right | 140,737,488,355,328
 * -style="color:blue;"
 * align=right | 70,368,744,177,664
 * -style="color:blue;"
 * align=right | 35,184,372,088,832
 * -style="color:blue;"
 * align=right | 17,592,186,044,416
 * -style="color:blue;"
 * align=right | 8,796,093,022,208
 * -style="color:blue;"
 * align=right | 4,398,046,511,104
 * -style="color:blue;"
 * align=right | 2,199,023,255,552
 * -style="color:blue;"
 * align=right | 1,099,511,627,776
 * -style="color:blue;"
 * align=right | 549,755,813,888
 * -style="color:blue;"
 * align=right | 274,877,906,944
 * -style="color:blue;"
 * align=right | 137,438,953,472
 * -style="color:blue;"
 * align=right | 68,719,476,736
 * -style="color:blue;"
 * align=right | 34,359,738,368
 * -style="color:blue;"
 * align=right | 17,179,869,184
 * -style="color:blue;"
 * align=right | 8,589,934,592
 * -style="color:blue;"
 * align=right | 4,294,967,296
 * -style="color:blue;"
 * align=right | 2,147,483,648
 * -style="color:blue;"
 * align=right | 1,073,741,824
 * -style="color:blue;"
 * align=right | 536,870,912
 * -style="color:blue;"
 * align=right | 268,435,456
 * -style="color:blue;"
 * align=right | 134,217,728
 * -style="color:blue;"
 * align=right | 67,108,864
 * -style="color:blue;"
 * align=right | 33,554,432
 * -style="color:blue;"
 * align=right | 16,777,216
 * -style="color:blue;"
 * align=right | 8,388,608
 * -style="color:blue;"
 * align=right | 4,194,304
 * -style="color:blue;"
 * align=right | 2,097,152
 * -style="color:blue;"
 * align=right | 1,048,576
 * -style="color:blue;"
 * align=right | 524,288
 * -style="color:blue;"
 * align=right | 262,144
 * -style="color:blue;"
 * align=right | 131,072
 * -style="color:blue;"
 * align=right | 65,536
 * -style="color:blue;"
 * align=right | 32,768
 * -style="color:blue;"
 * align=right | 16,384
 * -style="color:blue;"
 * align=right | 8,192
 * -style="color:blue;"
 * align=right | 4,096
 * -style="color:blue;"
 * align=right | 2,048
 * -style="color:blue;"
 * align=right | 1,024
 * -style="color:blue;"
 * align=right | 512
 * -style="color:blue;"
 * align=right | 256
 * -style="color:blue;"
 * align=right | 128
 * -style="color:blue;"
 * align=right | 64
 * -style="color:blue;"
 * align=right | 32
 * -style="color:blue;"
 * align=right | 16
 * -style="color:blue;"
 * align=right | 8
 * -style="color:blue;"
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * -style="color:blue;"
 * align=right | 274,877,906,944
 * -style="color:blue;"
 * align=right | 137,438,953,472
 * -style="color:blue;"
 * align=right | 68,719,476,736
 * -style="color:blue;"
 * align=right | 34,359,738,368
 * -style="color:blue;"
 * align=right | 17,179,869,184
 * -style="color:blue;"
 * align=right | 8,589,934,592
 * -style="color:blue;"
 * align=right | 4,294,967,296
 * -style="color:blue;"
 * align=right | 2,147,483,648
 * -style="color:blue;"
 * align=right | 1,073,741,824
 * -style="color:blue;"
 * align=right | 536,870,912
 * -style="color:blue;"
 * align=right | 268,435,456
 * -style="color:blue;"
 * align=right | 134,217,728
 * -style="color:blue;"
 * align=right | 67,108,864
 * -style="color:blue;"
 * align=right | 33,554,432
 * -style="color:blue;"
 * align=right | 16,777,216
 * -style="color:blue;"
 * align=right | 8,388,608
 * -style="color:blue;"
 * align=right | 4,194,304
 * -style="color:blue;"
 * align=right | 2,097,152
 * -style="color:blue;"
 * align=right | 1,048,576
 * -style="color:blue;"
 * align=right | 524,288
 * -style="color:blue;"
 * align=right | 262,144
 * -style="color:blue;"
 * align=right | 131,072
 * -style="color:blue;"
 * align=right | 65,536
 * -style="color:blue;"
 * align=right | 32,768
 * -style="color:blue;"
 * align=right | 16,384
 * -style="color:blue;"
 * align=right | 8,192
 * -style="color:blue;"
 * align=right | 4,096
 * -style="color:blue;"
 * align=right | 2,048
 * -style="color:blue;"
 * align=right | 1,024
 * -style="color:blue;"
 * align=right | 512
 * -style="color:blue;"
 * align=right | 256
 * -style="color:blue;"
 * align=right | 128
 * -style="color:blue;"
 * align=right | 64
 * -style="color:blue;"
 * align=right | 32
 * -style="color:blue;"
 * align=right | 16
 * -style="color:blue;"
 * align=right | 8
 * -style="color:blue;"
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * align=right | 8,388,608
 * -style="color:blue;"
 * align=right | 4,194,304
 * -style="color:blue;"
 * align=right | 2,097,152
 * -style="color:blue;"
 * align=right | 1,048,576
 * -style="color:blue;"
 * align=right | 524,288
 * -style="color:blue;"
 * align=right | 262,144
 * -style="color:blue;"
 * align=right | 131,072
 * -style="color:blue;"
 * align=right | 65,536
 * -style="color:blue;"
 * align=right | 32,768
 * -style="color:blue;"
 * align=right | 16,384
 * -style="color:blue;"
 * align=right | 8,192
 * -style="color:blue;"
 * align=right | 4,096
 * -style="color:blue;"
 * align=right | 2,048
 * -style="color:blue;"
 * align=right | 1,024
 * -style="color:blue;"
 * align=right | 512
 * -style="color:blue;"
 * align=right | 256
 * -style="color:blue;"
 * align=right | 128
 * -style="color:blue;"
 * align=right | 64
 * -style="color:blue;"
 * align=right | 32
 * -style="color:blue;"
 * align=right | 16
 * -style="color:blue;"
 * align=right | 8
 * -style="color:blue;"
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * align=right | 8,192
 * -style="color:blue;"
 * align=right | 4,096
 * -style="color:blue;"
 * align=right | 2,048
 * -style="color:blue;"
 * align=right | 1,024
 * -style="color:blue;"
 * align=right | 512
 * -style="color:blue;"
 * align=right | 256
 * -style="color:blue;"
 * align=right | 128
 * -style="color:blue;"
 * align=right | 64
 * -style="color:blue;"
 * align=right | 32
 * -style="color:blue;"
 * align=right | 16
 * -style="color:blue;"
 * align=right | 8
 * -style="color:blue;"
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * -style="color:blue;"
 * align=right | 128
 * -style="color:blue;"
 * align=right | 64
 * -style="color:blue;"
 * align=right | 32
 * -style="color:blue;"
 * align=right | 16
 * -style="color:blue;"
 * align=right | 8
 * -style="color:blue;"
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * align=right | 16
 * -style="color:blue;"
 * align=right | 8
 * -style="color:blue;"
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * align=right | 4
 * -style="color:blue;"
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * align=right | 2
 * -style="color:black;"
 * align=right | 1
 * }
 * align=right | 1
 * }
 * align=right | 1
 * }
 * }
 * }

Keys

Tools

 * ftools/general/ip-range-calc.html


 * [ https://nativeforeigner.com/calc/ NativeForeigner's IP range calculator]


 * [ http://subnet-calculator.org/ IP Subnetting and CIDR Calculator]


 * Template:IP range calculator


 * [ https://subnet.ninja/ IPv6 Subnet Calculator]