Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Help:Range blocks/IPv6

From mediawiki.org
<Help:Range blocks
Translate this page
Languages:
PDNote: When you edit this page, you agree to release your contribution under theCC0. SeePublic Domain Help Pages for more info.PD

SeeHelp:Range blocks for the main page on rangeblocking, and for IPv4.Like IPv4, IPv6 rangeblocks are limited by$wgBlockCIDRLimit, which by default allows rangeblocks of up to /19 in size.

Technical explanation

[edit]

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

[edit]
See alsow:User:TonyBallioni/Just block the /64

The best guideline for assessing collateral damage for an IPv6 rangeblock is to check theWHOIS, and the actual amount of activity from the range.MediaWiki supports looking up a range's contributions withSpecial: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.[1]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.[1]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 ismobile 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 areunlikely to be adynamic, 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

[edit]

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

[edit]

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.

If digit after prefix only matches...Append this digit to your prefixAdd this to your common prefix length
0-f00
0-701
8-f8
0-302
4-74
8-b8
c-fc
0-103
2-32
4-54
6-76
8-98
a-ba
c-dc
e-fe

Range table

[edit]

Legend

[edit]
No organization would ever receive an allocation of this size
Regional Internet Registry/very large organization/ISP allocation sizes
ISP/large organization allocation sizes
Organization allocation sizes
End-user allocation sizes
Sub-allocations for same enduser
(Single address)

Sample ranges

[edit]

The color-coding is approximate, and there will be overlaps.

CIDRStart of rangeEnd of rangeTotal addressesTotal /64 subnets
::/0::ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff340,282,366,920,938,500,000,000,000,000,000,000,00018,446,744,073,709,552,000
::/1::7fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff170,141,183,460,469,230,000,000,000,000,000,000,0009,223,372,036,854,776,000
::/2::3fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff85,070,591,730,234,620,000,000,000,000,000,000,0004,611,686,018,427,388,000
2000::/32000::3fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff42,535,295,865,117,310,000,000,000,000,000,000,0002,305,843,009,213,693,400
2000::/42000::2fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff21,267,647,932,558,654,000,000,000,000,000,000,0001,152,921,504,606,847,000
2000::/52000::27ff:ffff:ffff:ffff:ffff:ffff:ffff:ffff10,633,823,966,279,327,000,000,000,000,000,000,000576,460,752,303,423,500
2000::/62000::23ff:ffff:ffff:ffff:ffff:ffff:ffff:ffff5,316,911,983,139,664,000,000,000,000,000,000,000288,230,376,151,711,740
2000::/72000::21ff:ffff:ffff:ffff:ffff:ffff:ffff:ffff2,658,455,991,569,832,000,000,000,000,000,000,000144,115,188,075,855,870
2000::/82000::20ff:ffff:ffff:ffff:ffff:ffff:ffff:ffff1,329,227,995,784,916,000,000,000,000,000,000,00072,057,594,037,927,940
2000::/92000::207f:ffff:ffff:ffff:ffff:ffff:ffff:ffff664,613,997,892,458,000,000,000,000,000,000,00036,028,797,018,963,970
2000::/102000::203f:ffff:ffff:ffff:ffff:ffff:ffff:ffff332,306,998,946,229,000,000,000,000,000,000,00018,014,398,509,481,984
2000::/112000::201f:ffff:ffff:ffff:ffff:ffff:ffff:ffff166,153,499,473,114,500,000,000,000,000,000,0009,007,199,254,740,992
2000::/122000::200f:ffff:ffff:ffff:ffff:ffff:ffff:ffff83,076,749,736,557,240,000,000,000,000,000,0004,503,599,627,370,496
2000::/132000::2007:ffff:ffff:ffff:ffff:ffff:ffff:ffff41,538,374,868,278,620,000,000,000,000,000,0002,251,799,813,685,248
2000::/142000::2003:ffff:ffff:ffff:ffff:ffff:ffff:ffff20,769,187,434,139,310,000,000,000,000,000,0001,125,899,906,842,624
2000::/152000::2001:ffff:ffff:ffff:ffff:ffff:ffff:ffff10,384,593,717,069,655,000,000,000,000,000,000562,949,953,421,312
2001::/162001::2001:ffff:ffff:ffff:ffff:ffff:ffff:ffff5,192,296,858,534,828,000,000,000,000,000,000281,474,976,710,656
2001::/172001::2001:7fff:ffff:ffff:ffff:ffff:ffff:ffff2,596,148,429,267,414,000,000,000,000,000,000140,737,488,355,328
2001::/182001::2001:3fff:ffff:ffff:ffff:ffff:ffff:ffff1,298,074,214,633,707,000,000,000,000,000,00070,368,744,177,664
2001::/192001::2001:1fff:ffff:ffff:ffff:ffff:ffff:ffff649,037,107,316,853,500,000,000,000,000,00035,184,372,088,832
2001::/202001::2001:0fff:ffff:ffff:ffff:ffff:ffff:ffff324,518,553,658,426,730,000,000,000,000,00017,592,186,044,416
2001:800::/212001:800::2001:0fff:ffff:ffff:ffff:ffff:ffff:ffff162,259,276,829,213,360,000,000,000,000,0008,796,093,022,208
2001:c00::/222001:c00::2001:0fff:ffff:ffff:ffff:ffff:ffff:ffff81,129,638,414,606,680,000,000,000,000,0004,398,046,511,104
2001:c00::/232001:c00::2001:0dff:ffff:ffff:ffff:ffff:ffff:ffff40,564,819,207,303,340,000,000,000,000,0002,199,023,255,552
2001:d00::/242001:d00::2001:0dff:ffff:ffff:ffff:ffff:ffff:ffff20,282,409,603,651,670,000,000,000,000,0001,099,511,627,776
2001:d80::/252001:d80::2001:0dff:ffff:ffff:ffff:ffff:ffff:ffff10,141,204,801,825,835,000,000,000,000,000549,755,813,888
2001:d80::/262001:d80::2001:0dbf:ffff:ffff:ffff:ffff:ffff:ffff5,070,602,400,912,918,000,000,000,000,000274,877,906,944
2001:da0::/272001:da0::2001:0dbf:ffff:ffff:ffff:ffff:ffff:ffff2,535,301,200,456,459,000,000,000,000,000137,438,953,472
2001:db0::/282001:db0::2001:0dbf:ffff:ffff:ffff:ffff:ffff:ffff1,267,650,600,228,229,400,000,000,000,00068,719,476,736
2001:db8::/292001:db8::2001:0dbf:ffff:ffff:ffff:ffff:ffff:ffff633,825,300,114,114,700,000,000,000,00034,359,738,368
2001:db8::/302001:db8::2001:0dbb:ffff:ffff:ffff:ffff:ffff:ffff316,912,650,057,057,350,000,000,000,00017,179,869,184
2001:db8::/312001:db8::2001:0db9:ffff:ffff:ffff:ffff:ffff:ffff158,456,325,028,528,680,000,000,000,0008,589,934,592
2001:db8::/322001:db8::2001:db8:ffff:ffff:ffff:ffff:ffff:ffff79,228,162,514,264,340,000,000,000,0004,294,967,296
2001:db8::/332001:db8::2001:db8:7fff:ffff:ffff:ffff:ffff:ffff39,614,081,257,132,170,000,000,000,0002,147,483,648
2001:db8::/342001:db8::2001:db8:3fff:ffff:ffff:ffff:ffff:ffff19,807,040,628,566,084,000,000,000,0001,073,741,824
2001:db8::/352001:db8::2001:db8:1fff:ffff:ffff:ffff:ffff:ffff9,903,520,314,283,042,000,000,000,000536,870,912
2001:db8::/362001:db8::2001:db8:0fff:ffff:ffff:ffff:ffff:ffff4,951,760,157,141,521,000,000,000,000268,435,456
2001:db8::/372001:db8::2001:db8:07ff:ffff:ffff:ffff:ffff:ffff2,475,880,078,570,760,500,000,000,000134,217,728
2001:db8::/382001:db8::2001:db8:03ff:ffff:ffff:ffff:ffff:ffff1,237,940,039,285,380,300,000,000,00067,108,864
2001:db8::/392001:db8::2001:db8:01ff:ffff:ffff:ffff:ffff:ffff618,970,019,642,690,200,000,000,00033,554,432
2001:db8::/402001:db8::2001:db8:00ff:ffff:ffff:ffff:ffff:ffff309,485,009,821,345,100,000,000,00016,777,216
2001:db8::/412001:db8::2001:db8:007f:ffff:ffff:ffff:ffff:ffff154,742,504,910,672,530,000,000,0008,388,608
2001:db8::/422001:db8::2001:db8:003f:ffff:ffff:ffff:ffff:ffff77,371,252,455,336,270,000,000,0004,194,304
2001:db8::/432001:db8::2001:db8:001f:ffff:ffff:ffff:ffff:ffff38,685,626,227,668,134,000,000,0002,097,152
2001:db8::/442001:db8::2001:db8:000f:ffff:ffff:ffff:ffff:ffff19,342,813,113,834,067,000,000,0001,048,576
2001:db8::/452001:db8::2001:db8:0007:ffff:ffff:ffff:ffff:ffff9,671,406,556,917,033,000,000,000524,288
2001:db8::/462001:db8::2001:db8:0003:ffff:ffff:ffff:ffff:ffff4,835,703,278,458,517,000,000,000262,144
2001:db8::/472001:db8::2001:db8:0001:ffff:ffff:ffff:ffff:ffff2,417,851,639,229,258,300,000,000131,072
2001:db8::/482001:db8::2001:db8:0000:ffff:ffff:ffff:ffff:ffff1,208,925,819,614,629,200,000,00065,536
2001:db8::/492001:db8::2001:db8:0000:7fff:ffff:ffff:ffff:ffff604,462,909,807,314,600,000,00032,768
2001:db8::/502001:db8::2001:db8:0000:3fff:ffff:ffff:ffff:ffff302,231,454,903,657,300,000,00016,384
2001:db8::/512001:db8::2001:db8:0000:1fff:ffff:ffff:ffff:ffff151,115,727,451,828,650,000,0008,192
2001:db8::/522001:db8::2001:db8:0000:0fff:ffff:ffff:ffff:ffff75,557,863,725,914,320,000,0004,096
2001:db8::/532001:db8::2001:db8:0000:07ff:ffff:ffff:ffff:ffff37,778,931,862,957,160,000,0002,048
2001:db8::/542001:db8::2001:db8:0000:03ff:ffff:ffff:ffff:ffff18,889,465,931,478,580,000,0001,024
2001:db8::/552001:db8::2001:db8:0000:01ff:ffff:ffff:ffff:ffff9,444,732,965,739,290,000,000512
2001:db8::/562001:db8::2001:db8:0000:00ff:ffff:ffff:ffff:ffff4,722,366,482,869,645,000,000256
2001:db8::/572001:db8::2001:db8:0000:007f:ffff:ffff:ffff:ffff2,361,183,241,434,822,600,000128
2001:db8::/582001:db8::2001:db8:0000:003f:ffff:ffff:ffff:ffff1,180,591,620,717,411,300,00064
2001:db8::/592001:db8::2001:db8:0000:001f:ffff:ffff:ffff:ffff590,295,810,358,705,700,00032
2001:db8::/602001:db8::2001:db8:0000:000f:ffff:ffff:ffff:ffff295,147,905,179,352,830,00016
2001:db8::/612001:db8::2001:db8:0000:0007:ffff:ffff:ffff:ffff147,573,952,589,676,410,0008
2001:db8::/622001:db8::2001:db8:0000:0003:ffff:ffff:ffff:ffff73,786,976,294,838,210,0004
2001:db8::/632001:db8::2001:db8:0000:0001:ffff:ffff:ffff:ffff36,893,488,147,419,103,0002
2001:db8::/642001:db8::2001:db8:0000:0000:ffff:ffff:ffff:ffff18,446,744,073,709,552,0001
2001:db8::/652001:db8::2001:db8:0000:0000:7fff:ffff:ffff:ffff9,223,372,036,854,776,000-
2001:db8::/662001:db8::2001:db8:0000:0000:3fff:ffff:ffff:ffff4,611,686,018,427,388,000
2001:db8::/672001:db8::2001:db8:0000:0000:1fff:ffff:ffff:ffff2,305,843,009,213,694,000
2001:db8::/682001:db8::2001:db8:0000:0000:0fff:ffff:ffff:ffff1,152,921,504,606,847,000
2001:db8::/692001:db8::2001:db8:0000:0000:07ff:ffff:ffff:ffff576,460,752,303,423,500
2001:db8::/702001:db8::2001:db8:0000:0000:03ff:ffff:ffff:ffff288,230,376,151,711,740
2001:db8::/712001:db8::2001:db8:0000:0000:01ff:ffff:ffff:ffff144,115,188,075,855,870
2001:db8::/722001:db8::2001:db8:0000:0000:00ff:ffff:ffff:ffff72,057,594,037,927,940
2001:db8::/732001:db8::2001:db8:0000:0000:007f:ffff:ffff:ffff36,028,797,018,963,970
2001:db8::/742001:db8::2001:db8:0000:0000:003f:ffff:ffff:ffff18,014,398,509,481,984
2001:db8::/752001:db8::2001:db8:0000:0000:001f:ffff:ffff:ffff9,007,199,254,740,992
2001:db8::/762001:db8::2001:db8:0000:0000:000f:ffff:ffff:ffff4,503,599,627,370,496
2001:db8::/772001:db8::2001:db8:0000:0000:0007:ffff:ffff:ffff2,251,799,813,685,248
2001:db8::/782001:db8::2001:db8:0000:0000:0003:ffff:ffff:ffff1,125,899,906,842,624
2001:db8::/792001:db8::2001:db8:0000:0000:0001:ffff:ffff:ffff562,949,953,421,312
2001:db8::/802001:db8::2001:db8:0000:0000:0000:ffff:ffff:ffff281,474,976,710,656
2001:db8::/812001:db8::2001:db8:0000:0000:0000:7fff:ffff:ffff140,737,488,355,328
2001:db8::/822001:db8::2001:db8:0000:0000:0000:3fff:ffff:ffff70,368,744,177,664
2001:db8::/832001:db8::2001:db8:0000:0000:0000:1fff:ffff:ffff35,184,372,088,832
2001:db8::/842001:db8::2001:db8:0000:0000:0000:0fff:ffff:ffff17,592,186,044,416
2001:db8::/852001:db8::2001:db8:0000:0000:0000:07ff:ffff:ffff8,796,093,022,208
2001:db8::/862001:db8::2001:db8:0000:0000:0000:03ff:ffff:ffff4,398,046,511,104
2001:db8::/872001:db8::2001:db8:0000:0000:0000:01ff:ffff:ffff2,199,023,255,552
2001:db8::/882001:db8::2001:db8:0000:0000:0000:00ff:ffff:ffff1,099,511,627,776
2001:db8::/892001:db8::2001:db8:0000:0000:0000:007f:ffff:ffff549,755,813,888
2001:db8::/902001:db8::2001:db8:0000:0000:0000:003f:ffff:ffff274,877,906,944
2001:db8::/912001:db8::2001:db8:0000:0000:0000:001f:ffff:ffff137,438,953,472
2001:db8::/922001:db8::2001:db8:0000:0000:0000:000f:ffff:ffff68,719,476,736
2001:db8::/932001:db8::2001:db8:0000:0000:0000:0007:ffff:ffff34,359,738,368
2001:db8::/942001:db8::2001:db8:0000:0000:0000:0003:ffff:ffff17,179,869,184
2001:db8::/952001:db8::2001:db8:0000:0000:0000:0001:ffff:ffff8,589,934,592
2001:db8::/962001:db8::2001:db8:0000:0000:0000:0000:ffff:ffff4,294,967,296
2001:db8::/972001:db8::2001:db8:0000:0000:0000:0000:7fff:ffff2,147,483,648
2001:db8::/982001:db8::2001:db8:0000:0000:0000:0000:3fff:ffff1,073,741,824
2001:db8::/992001:db8::2001:db8:0000:0000:0000:0000:1fff:ffff536,870,912
2001:db8::/1002001:db8::2001:db8:0000:0000:0000:0000:0fff:ffff268,435,456
2001:db8::/1012001:db8::2001:db8:0000:0000:0000:0000:07ff:ffff134,217,728
2001:db8::/1022001:db8::2001:db8:0000:0000:0000:0000:03ff:ffff67,108,864
2001:db8::/1032001:db8::2001:db8:0000:0000:0000:0000:01ff:ffff33,554,432
2001:db8::/1042001:db8::2001:db8:0000:0000:0000:0000:00ff:ffff16,777,216
2001:db8::/1052001:db8::2001:db8:0000:0000:0000:0000:007f:ffff8,388,608
2001:db8::/1062001:db8::2001:db8:0000:0000:0000:0000:003f:ffff4,194,304
2001:db8::/1072001:db8::2001:db8:0000:0000:0000:0000:001f:ffff2,097,152
2001:db8::/1082001:db8::2001:db8:0000:0000:0000:0000:000f:ffff1,048,576
2001:db8::/1092001:db8::2001:db8:0000:0000:0000:0000:0007:ffff524,288
2001:db8::/1102001:db8::2001:db8:0000:0000:0000:0000:0003:ffff262,144
2001:db8::/1112001:db8::2001:db8:0000:0000:0000:0000:0001:ffff131,072
2001:db8::/1122001:db8::2001:db8:0000:0000:0000:0000:0000:ffff65,536
2001:db8::/1132001:db8::2001:db8:0000:0000:0000:0000:0000:7fff32,768
2001:db8::/1142001:db8::2001:db8:0000:0000:0000:0000:0000:3fff16,384
2001:db8::/1152001:db8::2001:db8:0000:0000:0000:0000:0000:1fff8,192
2001:db8::/1162001:db8::2001:db8:0000:0000:0000:0000:0000:0fff4,096
2001:db8::/1172001:db8::2001:db8:0000:0000:0000:0000:0000:07ff2,048
2001:db8::/1182001:db8::2001:db8:0000:0000:0000:0000:0000:03ff1,024
2001:db8::/1192001:db8::2001:db8:0000:0000:0000:0000:0000:01ff512
2001:db8::/1202001:db8::2001:db8:0000:0000:0000:0000:0000:00ff256
2001:db8::/1212001:db8::2001:db8:0000:0000:0000:0000:0000:007f128
2001:db8::/1222001:db8::2001:db8:0000:0000:0000:0000:0000:003f64
2001:db8::/1232001:db8::2001:db8:0000:0000:0000:0000:0000:001f32
2001:db8::/1242001:db8::2001:db8:0000:0000:0000:0000:0000:000f16
2001:db8::/1252001:db8::2001:db8:0000:0000:0000:0000:0000:00078
2001:db8::/1262001:db8::2001:db8:0000:0000:0000:0000:0000:00034
2001:db8::/1272001:db8::2001:db8:0000:0000:0000:0000:0000:00012
2001:db8::/1282001:db8::2001:db8::1-


Tools

[edit]

References

[edit]
  1. 1.01.1IPv6 Unicast Address Assignment Considerations "Using a subnet prefix length other than a /64 will break many features of IPv6, including Neighbor Discovery (ND), Secure Neighbor Discovery (SEND) [RFC3971], privacy extensions [RFC4941], parts of Mobile IPv6 [RFC4866], Protocol Independent Multicast - Sparse Mode (PIM-SM) with Embedded-RP [RFC3956], and Site Multihoming by IPv6 Intermediation [SHIM6], among others.A number of other features currently in development, or being proposed, also rely on /64 subnet prefixes." "However, some network administrators have used prefixes longer than /64 for links connecting routers, usually just two routers on a point-to-point link."
Retrieved from "https://www.mediawiki.org/w/index.php?title=Help:Range_blocks/IPv6&oldid=7697429"

[8]ページ先頭

©2009-2025 Movatter.jp