Convert IPv4 to IPv6 manually

风格不统一 提交于 2019-12-20 04:39:05

问题


After read this article i have a question:

In the exapmle in this link there is explanation hot to convert 192.168.25.234 into equivalent IPv6 address so in the example this address become C0A8:19EA and it says that this can be written into the following 128-Bit IPv6 link-local address:

FE80:0000:0000:0000:0000:0000:C0A8:19EA 

or

FE80::C0A8:19EA

So my question is how C0A8:19EA become FE80:0000:0000:0000:0000:0000:C0A8:19EA ?


回答1:


The C0, A8, 19 and EA are just 192, 168, 25 and 234 displayed in hex. The FE80 is a well-known prefix for link local. The rest is always all zero in this case (or for the terse form: can be omitted). Concatenate: job done.



来源:https://stackoverflow.com/questions/27903923/convert-ipv4-to-ipv6-manually

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!