官术网_书友最值得收藏!

Converting from binary to hexadecimal notation

IPv4 addressing uses decimal notation and IPv6 uses hexadecimal notation, where the 128-bit address is divided into 16-bit chunks.

For example, the following number is a binary form of an IPv6 address:

00111101101011110010000000001011000000000000010000111100111100100100000011111110000000000000000001010000111111101111111110101011

The 128-bit-long binary address number is divided into 16-bit-long chunks, as follows:

0011110110101111 0010000000001011 0000000000000100 0011110011110010 0100000011111110 0000000000000000 0101000011111110 1111111110101011

Each binary chunk is then converted to a hexadecimal format and the blocks are separated by colons:

3DAF:200B:0004:3CF2:40FE:0000:50FE:FFAB

The following table shows the decimal values and their corresponding hexadecimal and binary values:

主站蜘蛛池模板: 三原县| 鄂托克旗| 民权县| 新干县| 无棣县| 禹城市| 沛县| 宜昌市| 如东县| 汉中市| 惠东县| 邳州市| 丰宁| 湟中县| 溆浦县| 沈阳市| 新和县| 东源县| 万载县| 大洼县| 剑河县| 宁津县| 西乡县| 康乐县| 浠水县| 达日县| 赤城县| 文昌市| 贵南县| 湾仔区| 云霄县| 雅安市| 舞钢市| 高邮市| 晋江市| 莆田市| 老河口市| 抚远县| 南木林县| 尖扎县| 新郑市|