Skip to content

Latest commit

 

History

History
224 lines (220 loc) · 7.3 KB

ref-ipv6subnetcheat.md

File metadata and controls

224 lines (220 loc) · 7.3 KB

X is HEX definable based on mask

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

IPv6 Subnet Reference Prefix Lengths:

2001:DB80: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

Decimal to Hex based on IPv4 256 addresses

dec0	hex0	dec1	hex1	dec2	hex2	dec3	hex3	dec4	hex4	dec5	hex5	dec6	hex6	dec7	hex7
0	0	32	20	64	40	96	60	128	80	160	A0	192	C0	224	E0
1	1	33	21	65	41	97	61	129	81	161	A1	193	C1	225	E1
2	2	34	22	66	42	98	62	130	82	162	A2	194	C2	226	E2
3	3	35	23	67	43	99	63	131	83	163	A3	195	C3	227	E3
4	4	36	24	68	44	100	64	132	84	164	A4	196	C4	228	E4
5	5	37	25	69	45	101	65	133	85	165	A5	197	C5	229	E5
6	6	38	26	70	46	102	66	134	86	166	A6	198	C6	230	E6
7	7	39	27	71	47	103	67	135	87	167	A7	199	C7	231	E7
8	8	40	28	72	48	104	68	136	88	168	A8	200	C8	232	E8
9	9	41	29	73	49	105	69	137	89	169	A9	201	C9	233	E9
10	A	42	2A	74	4A	106	6A	138	8A	170	AA	202	CA	234	EA
11	B	43	2B	75	4B	107	6B	139	8B	171	AB	203	CB	235	EB
12	C	44	2C	76	4C	108	6C	140	8C	172	AC	204	CC	236	EC
13	D	45	2D	77	4D	109	6D	141	8D	173	AD	205	CD	237	ED
14	E	46	2E	78	4E	110	6E	142	8E	174	AE	206	CE	238	EE
15	F	47	2F	79	4F	111	6F	143	8F	175	AF	207	CF	239	EF
16	10	48	30	80	50	112	70	144	90	176	B0	208	D0	240	F0
17	11	49	31	81	51	113	71	145	91	177	B1	209	D1	241	F1
18	12	50	32	82	52	114	72	146	92	178	B2	210	D2	242	F2
19	13	51	33	83	53	115	73	147	93	179	B3	211	D3	243	F3
20	14	52	34	84	54	116	74	148	94	180	B4	212	D4	244	F4
21	15	53	35	85	55	117	75	149	95	181	B5	213	D5	245	F5
22	16	54	36	86	56	118	76	150	96	182	B6	214	D6	246	F6
23	17	55	37	87	57	119	77	151	97	183	B7	215	D7	247	F7
24	18	56	38	88	58	120	78	152	98	184	B8	216	D8	248	F8
25	19	57	39	89	59	121	79	153	99	185	B9	217	D9	249	F9
26	1A	58	3A	90	5A	122	7A	154	9A	186	BA	218	DA	250	FA
27	1B	59	3B	91	5B	123	7B	155	9B	187	BB	219	DB	251	FB
28	1C	60	3C	92	5C	124	7C	156	9C	188	BC	220	DC	252	FC
29	1D	61	3D	93	5D	125	7D	157	9D	189	BD	221	DD	253	FD
30	1E	62	3E	94	5E	126	7E	158	9E	190	BE	222	DE	254	FE
31	1F	63	3F	95	5F	127	7F	159	9F	191	BF	223	DF	255	FF

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)

IPv6 CIDR Subnet Number of IPs

/128	1
/127	2
/126	4
/125	8
/124	16
/123	32
/122	64
/121	128
/120	256
/119	512
/118	1,024
/117	2,048
/116	4,096
/115	8,192
/114	16,384
/113	32,768
/112	65,536
/111	131,072
/110	262,144
/109	524,288
/108	1,048,576
/107	2,097,152
/106	4,194,304
/105	8,388,608
/104	16,777,216
/103	33,554,432
/102	67,108,864
/101	134,217,728
/100	268,435,456
/99	536,870,912
/98	1,073,741,824
/97	2,147,483,648
/96	4,294,967,296
/95	8,589,934,592
/94	17,179,869,184
/93	34,359,738,368
/92	68,719,476,736
/91	137,438,953,472
/90	274,877,906,944
/89	549,755,813,888
/88	1,099,511,627,776
/87	2,199,023,255,552
/86	4,398,046,511,104
/85	8,796,093,022,208
/84	17,592,186,044,416
/83	35,184,372,088,832
/82	70,368,744,177,664
/81	140,737,488,355,328
/80	281,474,976,710,656
/79	562,949,953,421,312
/78	1,125,899,906,842,624
/77	2,251,799,813,685,248
/76	4,503,599,627,370,496
/75	9,007,199,254,740,992
/74	18,014,398,509,481,985
/73	36,028,797,018,963,968
/72	72,057,594,037,927,936
/71	144,115,188,075,855,872
/70	288,230,376,151,711,744
/69	576,460,752,303,423,488
/68	1,152,921,504,606,846,976
/67	2,305,843,009,213,693,952
/66	4,611,686,018,427,387,904
/65	9,223,372,036,854,775,808
/64	18,446,744,073,709,551,616 [Minimum / Basic / New /24]
/63	36,893,488,147,419,103,232
/62	73,786,976,294,838,206,464
/61	147,573,952,589,676,412,928
/60	295,147,905,179,352,825,856
/59	590,295,810,358,705,651,712
/58	1,180,591,620,717,411,303,424
/57	2,361,183,241,434,822,606,848
/56	4,722,366,482,869,645,213,696
/55	9,444,732,965,739,290,427,392
/54	18,889,465,931,478,580,854,784
/53	37,778,931,862,957,161,709,568
/52	75,557,863,725,914,323,419,136
/51	151,115,727,451,828,646,838,272
/50	302,231,454,903,657,293,676,544
/49	604,462,909,807,314,587,353,088
/48	1,208,925,819,614,629,174,706,176 [Business]
/47	2,417,851,639,229,258,349,412,352
/46	4,835,703,278,458,516,698,824,704
/45	9,671,406,556,917,033,397,649,408
/44	19,342,813,113,834,066,795,298,816
/43	38,685,626,227,668,133,590,597,632
/42	77,371,252,455,336,267,181,195,264
/41	154,742,504,910,672,534,362,390,528
/40	309,485,009,821,345,068,724,781,056
/39	618,970,019,642,690,137,449,562,112
/38	1,237,940,039,285,380,274,899,124,224
/37	2,475,880,078,570,760,549,798,248,448
/36	4,951,760,157,141,521,099,596,496,896
/35	9,903,520,314,283,042,199,192,993,792
/34	19,807,040,628,566,084,398,385,987,584
/33	39,614,081,257,132,168,796,771,975,168
/32	79,228,162,514,264,337,593,543,950,336 [ISP]
/31	158,456,325,028,528,675,187,087,900,672
/30	316,912,650,057,057,350,374,175,801,344
/29	633,825,300,114,114,700,748,351,602,688
/28	1,267,650,600,228,229,401,496,703,205,376
/27	2,535,301,200,456,458,802,993,406,410,752
/26	5,070,602,400,912,917,605,986,812,821,504
/25	10,141,204,801,825,835,211,973,625,643,008
/24	20,282,409,603,651,670,423,947,251,286,016
/23	40,564,819,207,303,340,847,894,502,572,032
/22	81,129,638,414,606,681,695,789,005,144,064
/21	162,259,276,829,213,363,391,578,010,288,128
/20	324,518,553,658,426,726,783,156,020,576,256
/19	649,037,107,316,853,453,566,312,041,152,512
/18	1,298,074,214,633,706,907,132,624,082,305,024
/17	2,596,148,429,267,413,814,265,248,164,610,048
/16	5,192,296,858,534,827,628,530,496,329,220,096
/15	10,384,593,717,069,655,257,060,992,658,440,192
/14	20,769,187,434,139,310,514,121,985,316,880,384
/13	41,538,374,868,278,621,028,243,970,633,760,768
/12	83,076,749,736,557,242,056,487,941,267,521,536
/11	166,153,499,473,114,484,112,975,882,535,043,072
/10	332,306,998,946,228,968,225,951,765,070,086,144
/9	664,613,997,892,457,936,451,903,530,140,172,288
/8	1,329,227,995,784,915,872,903,807,060,280,344,576

Ref: https://www.crucial.com.au/blog/2011/04/15/ipv6-subnet-cheat-sheet-and-ipv6-cheat-sheet-reference/