关于如何制定IPv6地址的权威指南 [英] Definitive guide to understanding how to formulate an IPv6 address

查看:80
本文介绍了关于如何制定IPv6地址的权威指南的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了娱乐,我想更好地了解IPv6地址中的构建基块或元素.

For fun, I'd like to better understand the building blocks or elements that are within an IPv6 address.

根据我的理解,这里是基础知识:

Here are the basics, from my understanding:

  • IPv6地址长128位(写为8个块,每个块16位)
  • 每个块都被编码为介于0和0xffff之间的十六进制数字.前导零可以省略.
  • 一个人可以附加一个IPv4的四进制地址,它将占用IPv6地址的低32位. 1:2:3:4:5:6:200.201.202.203. (IPv4的规则符合预期.)
  • IPv4表示只能出现在末尾.
  • 可以使用双冒号语法表示一个或多个带有零的块. 1:2 :: 7:8等效于1:2:0:0:0:0:7:8.
  • 每个IPv6地址中只能包含一个双冒号,否则在语法上是错误的.
  • 双冒号可能出现在ip6的开头,中间或结尾,但不能出现在IPv4点分四进制地址内.
  • IPv6 addresses are 128 bits long (written as 8 blocks, each with 16 bits)
  • Each block is encoded as hex digits between 0 and 0xffff. Leading zeroes may be omitted.
  • One can append an IPv4 doted-quad address, and it will occupy the lower 32 bits of the IPv6 address. 1:2:3:4:5:6:200.201.202.203. (The rules for the IPv4 are as expected.)
  • The IPv4 representation can only appear at the end.
  • It is possible to use double colons syntax to represent one or more blocks with zeroes. 1:2::7:8 is equivalent to 1:2:0:0:0:0:7:8.
  • Each IPv6 address may only have one double colon within it, otherwise it is syntactically wrong.
  • Double colon may appear at the beginning, middle or end of an ip6, but not within an IPv4 dotted-quad address.

以上所有观点正确吗?

请不要告诉我阅读RFC.关于此问题有好几种,但实际上没有一个简单的示例来描述各种编码机制.我敢肯定,很多人都会喜欢带有示例的简单列表.

Please don't tell me to read the RFC. There are several about this matter, and none actually comes with a few simple examples to describe the various encoding mechanisms. I'm sure many would appreciate a simple list with examples.

在线测试工具 最有帮助的在线工具是 http://www.dominicsayers.com/source/beta/is_email/test/ 但是这些消息令人困惑,实际上并没有用简单的英语说出什么是对,什么是错,为什么.它实际上也是为电子邮件创建的,当然其中可能包含IPv6地址,因此它并不完全理想.

Online testing tool The closest online tool to help is http://www.dominicsayers.com/source/beta/is_email/test/ but the messages are confusing and it does not actually say in plain English what is right and wrong and why. It's also actually built for emails which of course may contain IPv6 addresses, so its not exactly ideal.

推荐答案

通常,是的,您的观点是正确的.

In general, yes, your points are correct.

确定要阅读RFC吗? RFC 3513第2.2节完全符合您的要求.对于RFC,它写得很好. =)我不禁指出这一点,因为它可能对以后阅读此问题的人很有帮助.

Are you sure you read the RFC? RFC 3513, section 2.2 has exactly what you are asking for. It's very well written, for an RFC. =) I can't help but point this out since it may be very helpful to future people reading this question.

这篇关于关于如何制定IPv6地址的权威指南的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆