2014/06/17

IPv6 簡寫


#開頭為0可省略,一組為零或多組為零可省略以::代替,但只能出現一次『::』

2001:0DB8:02de:0000:0000:0000:0000:0e13 = 2001:DB8:2de::e13 or 2001:db8:2ed:0:0:0:0:e13

2001:0DB8:0000:0000:0000:0000:1428:57ab = 2001:DB8::1428:57ab or 2001:0DB8::1428:57ab

fe80:0000:0000:0000:0219:dbff:fe3f:ea98 = fe80::219:dbff:fe3f:ea98 or fe80::0219:dbff:fe3f:ea98

21DA:00D3:0000:2F3B:02AA:00FF:FE28:9C5A = 21DA:D3:0:2F3B:2AA:FF:FE28:9C5A

#復原
fe80::205:5dff:fe12:36fb = fe80:0:0:0205:5dff:fe12:36fb or fe80:0000:0000:0000:0205:5dff:fe12:36fb

3ffe:501:ffff:100:205:5dff:fe12:36fb = 3fee:0501:ffff:0100:0205:5dff:fe12:36fb

#錯誤的IPv6位址,因為有一組以上的『::』出現
2001::25de::cade

參考資料:
http://zh.wikipedia.org/wiki/IPv6
http://www.tcrc.edu.tw/data2/seminar99/ipv611.pdf

沒有留言:

張貼留言