1294 días desde
IPv4 Exaustion

Join Our Discussion

IPv6 Subnet Cheat Sheet and IPv6 Cheat Sheet Reference

IPv6 Subnet Cheat Sheet and IPv6 Cheat Sheet Reference

15APR

The following article is aimed at providing some quick details on IPv6, which can be used as an IPv6 Subnet Cheat Sheet/Reference:

IPv6 Subnet Size Reference Table:

IPv6 CIDR SubnetNumber of IPs
/1281
/1272
/1264
/1258
/12416
/12332
/12264
/121128
/120256
/119512
/1181,024
/1172,048
/1164,096
/1158,192
/11416,384
/11332,768
/11265,536
/111131,072
/110262,144
/109524,288
/1081,048,576
/1072,097,152
/1064,194,304
/1058,388,608
/10416,777,216
/10333,554,432
/10267,108,864
/101134,217,728
/100268,435,456
/99536,870,912
/981,073,741,824
/972,147,483,648
/964,294,967,296
/958,589,934,592
/9417,179,869,184
/9334,359,738,368
/9268,719,476,736
/91137,438,953,472
/90274,877,906,944
/89549,755,813,888
/881,099,511,627,776
/872,199,023,255,552
/864,398,046,511,104
/858,796,093,022,208
/8417,592,186,044,416
/8335,184,372,088,832
/8270,368,744,177,664
/81140,737,488,355,328
/80281,474,976,710,656
/79562,949,953,421,312
/781,125,899,906,842,624
/772,251,799,813,685,248
/764,503,599,627,370,496
/759,007,199,254,740,992
/7418,014,398,509,481,985
/7336,028,797,018,963,968
/7272,057,594,037,927,936
/71144,115,188,075,855,872
/70288,230,376,151,711,744
/69576,460,752,303,423,488
/681,152,921,504,606,846,976
/672,305,843,009,213,693,952
/664,611,686,018,427,387,904
/659,223,372,036,854,775,808
Residential – /6418,446,744,073,709,551,616
/6336,893,488,147,419,103,232
/6273,786,976,294,838,206,464
/61147,573,952,589,676,412,928
/60295,147,905,179,352,825,856
/59590,295,810,358,705,651,712
/581,180,591,620,717,411,303,424
/572,361,183,241,434,822,606,848
/564,722,366,482,869,645,213,696
/559,444,732,965,739,290,427,392
/5418,889,465,931,478,580,854,784
/5337,778,931,862,957,161,709,568
/5275,557,863,725,914,323,419,136
/51151,115,727,451,828,646,838,272
/50302,231,454,903,657,293,676,544
/49604,462,909,807,314,587,353,088
Business – /481,208,925,819,614,629,174,706,176
/472,417,851,639,229,258,349,412,352
/464,835,703,278,458,516,698,824,704
/459,671,406,556,917,033,397,649,408
/4419,342,813,113,834,066,795,298,816
/4338,685,626,227,668,133,590,597,632
/4277,371,252,455,336,267,181,195,264
/41154,742,504,910,672,534,362,390,528
/40309,485,009,821,345,068,724,781,056
/39618,970,019,642,690,137,449,562,112
/381,237,940,039,285,380,274,899,124,224
/372,475,880,078,570,760,549,798,248,448
/364,951,760,157,141,521,099,596,496,896
/359,903,520,314,283,042,199,192,993,792
/3419,807,040,628,566,084,398,385,987,584
/3339,614,081,257,132,168,796,771,975,168
ISP – /3279,228,162,514,264,337,593,543,950,336
/31158,456,325,028,528,675,187,087,900,672
/30316,912,650,057,057,350,374,175,801,344
/29633,825,300,114,114,700,748,351,602,688
/281,267,650,600,228,229,401,496,703,205,376
/272,535,301,200,456,458,802,993,406,410,752
/265,070,602,400,912,917,605,986,812,821,504
/2510,141,204,801,825,835,211,973,625,643,008
/2420,282,409,603,651,670,423,947,251,286,016
/2340,564,819,207,303,340,847,894,502,572,032
/2281,129,638,414,606,681,695,789,005,144,064
/21162,259,276,829,213,363,391,578,010,288,128
/20324,518,553,658,426,726,783,156,020,576,256
/19649,037,107,316,853,453,566,312,041,152,512
/181,298,074,214,633,706,907,132,624,082,305,024
/172,596,148,429,267,413,814,265,248,164,610,048
/165,192,296,858,534,827,628,530,496,329,220,096
/1510,384,593,717,069,655,257,060,992,658,440,192
/1420,769,187,434,139,310,514,121,985,316,880,384
/1341,538,374,868,278,621,028,243,970,633,760,768
/1283,076,749,736,557,242,056,487,941,267,521,536
/11166,153,499,473,114,484,112,975,882,535,043,072
/10332,306,998,946,228,968,225,951,765,070,086,144
/9664,613,997,892,457,936,451,903,530,140,172,288
/81,329,227,995,784,915,872,903,807,060,280,344,576

 

IPv6 Subnet Reference Prefix Lengths:

2402:9400:0000:0000:0000:0000:0000:0001
XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX
      ||| |||| |||| |||| |||| |||| ||||
      ||| |||| |||| |||| |||| |||| |||128
      ||| |||| |||| |||| |||| |||| ||124
      ||| |||| |||| |||| |||| |||| |120
      ||| |||| |||| |||| |||| |||| 116
      ||| |||| |||| |||| |||| |||112
      ||| |||| |||| |||| |||| ||108
      ||| |||| |||| |||| |||| |104
      ||| |||| |||| |||| |||| 100
      ||| |||| |||| |||| |||96
      ||| |||| |||| |||| ||92
      ||| |||| |||| |||| |88
      ||| |||| |||| |||| 84
      ||| |||| |||| |||80
      ||| |||| |||| ||76
      ||| |||| |||| |72
      ||| |||| |||| 68
      ||| |||| |||64
      ||| |||| ||60
      ||| |||| |56
      ||| |||| 52
      ||| |||48
      ||| ||44
      ||| |40
      ||| 36
      ||32
      |28
      24

Note: The IP address above is an IP address allocated to Crucial Paradigm.

 

Example of /64 Allocations:

/64 IPv6 allocations are usually given to end users, who do not require any VLANs.  It allows auto configuration, or SLAAC so makes life a lot easier when configuring.

It is fairly easy to calculate /64 allocations, and a subnet calculator is not required. In fact this is the case with assigning IPv6 allocations, it can be done fairly easily without any calculator (I’ll demonstrate this later in the reference sheet):

2402:9400:1000:0::/64
2402:9400:1000:1::/64
2402:9400:1000:2::/64
2402:9400:1000:3::/64
2402:9400:1000:4::/64
2402:9400:1000:5::/64
2402:9400:1000:6::/64
2402:9400:1000:7::/64
2402:9400:1000:8::/64
2402:9400:1000:9::/64
2402:9400:1000:a::/64
2402:9400:1000:b::/64
2402:9400:1000:c::/64
2402:9400:1000:e::/64
2402:9400:1000:e::/64
2402:9400:1000:f::/64
2402:9400:1000:10::/64
2402:9400:1000:11::/64

 

Example of /48 Allocations:

/48 allocations are usually provided to business, who require additional VLANs or may require the range to be split up.  Using a /48 allocation would allow them to do so.

2402:9400:10::/48
2402:9400:11::/48
2402:9400:12::/48
2402:9400:13::/48
2402:9400:14::/48
2402:9400:15::/48
2402:9400:16::/48
2402:9400:17::/48
2402:9400:18::/48
2402:9400:19::/48
2402:9400:1a::/48
2402:9400:1b::/48
2402:9400:1c::/48
2402:9400:1e::/48
2402:9400:1f::/48
2402:9400:20::/48

 

IPv6 Subnet Calculator NOT REQUIRED!

In most cases a subnet calculator will not be required, since IPv6 using hex (hexadecimal) – and so long as the prefix length is a multiple of 4, it makes it quite easy.  For example (this is also where the table “IPv6 Subnet Reference IP Address” comes in a lot of handy above):

2402:9400:1234:1234::/64
2402:9400:1234:123X::/60
2402:9400:1234:12XX::/56
2402:9400:1234:1XXX::/52
2402:9400:1234:XXXX::/48
2402:9400:123X:XXXX::/44
2402:9400:12XX:XXXX::/40

 

IPv6 Address Scopes:

::/128 unspecified address
::1/128 localhost
fe80::/10 link local
fc00::/7 unique local unicast  (RFC 4193)
fc00::/8 centrally assigned by unkown, routed within a site (RFC 4193)
fd00::/8 free for all, global ID must be generated randomly with pseudo-random algorithm, routed within a site (RFC 4193)
ff00::/8 multicast, following after the prefix ff there are 4 bits for flags and 4 bits for the scope
::ffff:0:0/96 IPv4 to IPv6 Address, eg: ::ffff:10.10.10.10 (RFC 4038)
2000::/3 global unicast
2001::/16 /32 subnets assigned to providers, they assign /48, /56 or /64 to the customer
2001:db8::/32 reserved for use in documentation
2001:678::/29 Provider Independent (PI) adresses and anycasting TLD nameservers
2002::/16 6to4 scope, 2002:c058:6301:: is the 6to4 public router anycast (RFC 3068)

 

Interface Configuration Linux:

#ifconfig eth0 inet6 add 2402:9400:1234:1234::1/64

Configuring SLAAC (auto configuration) on Redhat/CentOS flavours of Linux: You can do this by enabling IPv6 on an interface which is already configured automatically on boot.

 

IPv6 Command Line Tools:

ping6- IPv6 ping tool
traceroute6- IPv6 tracing tool
tracepath6 – IPv6 tracing tool
ip -6 – For configuring/viewing IPv6 interfaces and routes
ipv6calc – IPv6 subnet calculator
tcpdump ip6 – packet sniffing on IPv6
snoop inet6 – packet sniffing on IPv6

 

Calculating Unique Link Local Address (ULA):

Some of the more technical details can be found here:http://www.crucial.com.au/blog/2011/04/11/slaac-discovery-and-eui-64-converting-mac-address-based-ipv6-address-assigning/

Or an online version can be found here: http://www.sixxs.net/tools/grh/ula/

Comments