IPv6 tutorial 4 IPv6 address syntax

https://4sysops.com/archives/ipv6-tutorial-part-4-ipv6-address-syntax/

Now that you know about the new features of IPv6, it is time to have a closer look at the practical details.

In this post, I will give a short summary about the IPv6 address syntax.

It is essentially a condensed version of the corresponding part in Microsoft’s white paper “Introduction to IP Version 6.”

colon冒号

Colon-hexadecimal representation

An IPv6 address consists of 128 bits and is presented in eight 16-bit blocks. Each 16-bit block is converted to a four-digit hexadecimal number. Blocks are separated by colons.

Example: 2001:0DB8:0000:2F3B:02AA:00FF:FE28:9C5A

一共是32个字节,分为8组,每组2个字节 ;2个字节用十六进制表示,0x2001 第一个字节是0x20 第二个字节是0x01

Leading zero suppression

Because IPv6 addresses are quite long, the leading zeroes within a 16-bit block can be removed, but each block must have at least a single digit.

Example: 2001:DB8:0:2F3B:2AA:FF:FE28:9C5A

Zero compression

A contiguous sequence of 16-bit blocks set to 0 can be replaced with the so-called double colon (::). Zero compression can only be applied once in an IP address.

To determine how many blocks have been omitted, you just have to count the remaining blocks and subtract this number from 8.

Example: FE80:0:0:0:2AA:FF:FE9A:4CA2 can be zero compressed to FE80::2AA:FF:FE9A:4CA2.

只有5组数据,中间有一个双冒号表示压缩了0,8-5=3;说明有3组0000被压缩了

IPv6 prefix

IPv6 prefixes are used to express IPv6 subnets, routes, and address ranges.

The syntax of IPv6 prefixes looks like this: address/prefix-length.

It is comparable to the Classless Inter-Domain Routing (CIDR) notation for IPv4 (for instance, 192.168.0.0/16 represents a Class B subnet): Subnet masks(子网掩码) are no longer used in IPv6.

Example: 21DA:D3:0:2F3B::/64 represents a subnet of 264 addresses, where the first 64 bits are fixed and the last 64 bits are variable.

Admittedly, IPv6 addresses look somewhat complicated compared to the relatively simple IPv4 addresses.

Rest assured that typos in IPv6 addresses will knock down quite a few systems once IPv6 starts replacing IPv4.

But this is the price of the large address space. I guess, we will get used to it.

In my next post, I will discuss the different types of IPv6 addresses.

I promise that things won’t get easier.

In the next post of this tutorial I will say some general words about theIPv6 address types and I will introduce the most address type, the global IPv6 unicast address.

时间: 2024-10-22 16:16:11

IPv6 tutorial 4 IPv6 address syntax的相关文章

IPv6 tutorial – Part 8: Special addresses

https://4sysops.com/archives/ipv6-tutorial-part-8-special-addresses/ The special IPv6 addresses discussed in this part of the IPv6 tutorial are the unspecified address, the loopback address, IPv4-mapped addresses, 6to4 addresses, multicast addresses,

IPv6 tutorial – Part 7: Zone ID and unique local IPv6 unicast addresses

The zone ID is used to distinguish ambiguous link-local and site-local addresses. Unique local IPv6 unicast addresses are another way to address the problem of ambiguous IPv6 addresses. In the last post of this IPv6 tutorial, I introduced link-local

IPv6 tutorial – Part 6: Site-local addresses and link-local addresses

https://4sysops.com/archives/ipv6-tutorial-part-6-site-local-addresses-and-link-local-addresses/ In the last post of this IPv6 tutorial, you learned about the different address types and the new public IP addresses,the global unicast addresses. Today

IPv6 tutorial 3 New features: IPsec and LAN features

https://4sysops.com/archives/ipv6-tutorial-part-3-new-features-ipsec-and-lan-features/ In the last post of this series, I discussed the new IPv6 features Quality of Service (QoS), hierarchical addressing, and the new address space. In this post, I ta

发送邮件时,报postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by

Linux6.5发送邮件时,异常postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by 报错信息: sendmail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol App 12838 stdout: sendmail: warni

inux : inet_protocols: IPv6 support is disabled: Address family not supported by protocol

在sendmail,命令发送邮件时提示 inux : inet_protocols: IPv6 support is disabled: Address family not supported by protocol vim /etc/postfix/main.cf inet_protocols = all --改为->inet_protocols = ipv4 service postfix restar 1. Edit the main Postfix configuration : Co

IPv6技术系列⑥——IPv6 SLAAC与有状态自动配置

拓扑结构 1.配置无状态自动获得IP地址(SLAAC) Router0:ipv6 unicast-routing ----开启ipv6路由功能后,才可以发送RAinterface G0/0ipv6 address 2023::2/64no shutdowRouter1:interface G0/0ipv6 address autoconfig执行:show ipv6 interface FastEthernet 0/0查看接口状态 2.调整ND Router0:interface g0/0ipv

老毛子 Padavan 路由器固件开启教育网 IPv6 并实现IPv6转发

老毛子 Padavan 路由器固件开启教育网 IPv6 并实现IPv6转发 文章目录[隐藏] 一.开启opt环境 二.开启 WAN 端 IPv6 三.安装并运行 6relayd 四.开机自动安装并配置 6relayd 脚本 五.解决 6relayd 自动掉线 六.总结 设置字体大小: 小 中 大 自从给小米路由器mini刷了老毛子固件之后就特别想实现路由器的 IPv6 服务,最近刚到学校就开始折腾,到今天总算是比较完美了.注意:此教程只适用于老毛子Padavan 华硕固件,并且有原生 IPv6

利用IPv6 Tunnel实现IPV6网站发布解决IOS审核的问题

1.打开https://tunnelbroker.net/,选注册 填写注册信息,如下图所示: 登录上图注册的邮箱,会收到一封注册的邮件,打开邮件中的链接,实现用户的注册: 用所创建的帐号登录,选择"Create Regular Tunnel", 在下图中输入本端遂道的地址,选择香港的服务器,选"Create Tunnel" 查看已经创建的遂道,先选"Transit",再选"Free IPv6 Tunnel",就可以显示已经创