IPv6 Address Representation

An IPv6 address is 128 bits long but is usually written in the form of 8 groups of four hexadecimal numbers. For example:

2001:0db8:85a3:08d3:1319:8a2e:0370:7344

is a valid IPv6 address.

If all four digits are zero, they can be omitted. For example:

2001:0db8:85a3:0000:1319:8a2e:0370:7344

is equivalent to

2001:0db8:85a3::1319:8a2e:0370:7344

Following these rules, if the omission results in more than two colons appearing, it can be compressed to one, but this zero compression can only appear once in an address. Therefore:

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

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

2001:0DB8:0:0:0:1428:57ab

2001:0DB8:0::0:1428:57ab

2001:0DB8::1428:57ab

are all valid addresses and are equivalent. However,

2001::25de::cade

is illegal. (This makes it unclear how many packets of all-zero are in each compression.)

Leading zeros can also be omitted. Thus:

2001:0DB8:02de::0e13

is equivalent to

2001:DB8:2de::e13

If this address is actually an IPv4 address, the last 32 bits can be expressed in decimal; thus:

ffff:192.168.89.9 is equivalent to: :ffff:c0a8:5909 but is not equivalent to: :192.168.89.9 and: :c0a8:5909.

The ffff:1.2.3.4 format is called an IPv4-mapped address, which is not recommended for use. In contrast, the :1.2.3.4 format is called an IPv4-compatible address.

IPv4 addresses can easily be converted to IPv6 format. For example, if an IPv4 address is 135.75.43.52 (in hexadecimal, 0x874B2B34), it can be converted to 0000:0000:0000:0000:0000:0000:874B:2B34 or: :874B:2B34. Additionally, a mixed notation (IPv4-compatible address) can be used, resulting in: :135.75.43.52.

How to Choose a Touchscreen?

Answers & Suggestions

How to Choose an Interactive Whiteboard?

Answers & Suggestions

Benefits of Recording Classes

Answers & Suggestions

知識學院

蘊藏許多助人的知識與智慧。

關注知識學院

By clicking "Accept All", you agree to our use of cookies to enhance your website experience, analyze performance, and deliver relevant marketing content. For more details, see our Privacy Policy. You can also manage your cookie preferences.

×

Privacy Policy

Welcome to our website. To help you use our services with confidence, we explain our privacy policy below to safeguard your rights. Please read the following information carefully:

  • Scope of the Privacy Policy: This privacy policy applies to all personal data collected by this website, including how we collect, process, and use such data when you use our services. This policy does not apply to other linked websites or personnel not managed by this website.
  • Collection, Processing, and Use of Personal Data: When you visit our website or use our services, we may ask for necessary personal information, which will be processed and used only for specified purposes. Without your written consent, we will not use your personal data for other purposes.
  • Data Protection: We adopt multiple security measures to protect your personal data, including firewalls and antivirus systems. Only authorized personnel can access your data, and they must sign confidentiality agreements. When we outsource services, we require that they comply with confidentiality obligations and ensure data security.
  • External Links: Our web pages may contain links to external websites. These linked websites do not fall under our privacy policy, and you should refer to their respective privacy policies.
  • Sharing Personal Data with Third Parties: We do not provide, exchange, rent, or sell your personal data to third parties, except as required by law or contractual obligations. We may share your data under the following circumstances:
    • With your written consent.
    • As required by law.
    • To protect your life, body, freedom, or property from danger.
    • For statistical or academic research with public institutions or academic research organizations, ensuring data is anonymized.
    • When your actions on the website violate the terms of service, necessitating identification, contact, or legal action.
  • Use of Cookies: To provide you with the best service experience, we use cookies on your device. If you do not wish to accept cookies, you can increase the privacy level in your browser settings to refuse cookies. This may, however, affect the availability of certain features.
  • Privacy Policy Revisions: We may revise the privacy policy as needed, and any changes will be published on this website to ensure you are informed of how we handle your personal data.