HPlogo HP-UX IPv6 Porting Guide: HP-UX 11i v2 September 2004 > Chapter 2 IPv6 Addressing

Comparing IPv4 and IPv6 Addresses

» 

Technical documentation

Complete book in PDF

 » Table of Contents

IPv4 addresses are 32-bit addresses represented as four dotted-decimal octets

Example: 10.1.3.7

IPv6 Addresses are 128-bit records represented as eight fields of up to four hexadecimal digits. A colon separates each field (:).

Example: 8888:7777:6666:5555:4444:3333:2222:1111

Leading Zeros Suppressed

Example: 0008:0007:0006:0005:0004:0003:0002:0001

Is also valid in the format:

8:7:6:5:4:3:2:1

Comparing IPv4 and IPv6 Addresses

Contiguous Fields Containing only the Digits Zero can be collapsed

Example: 0008:0000:0000:0000:0000:0003:0002:0001

Is also valid in the format:

8::3:2:1

NOTE: Only one set of contiguous fields of zeros per IP address can be collapsed.

IPv4-Compatible and IPv4-Mapped IPv6 Addresses can display IPv4 Addresses in Dotted-Decimal Format

IPv4-compatible and IPv4-mapped addresses contain the IPv4 address in the low-order 32-bits. Mixing hexadecimal format and dotted-decimal format is valid. For example, the IPv4-compatible IPv6 address ::10.9.8.7 is valid in the following formats:

Table 2-1 Title not available (IPv4-Compatible and IPv4-Mapped IPv6 Addresses can display IPv4 Addresses in Dotted-Decimal Format)

0::0a09:0807

IPv4-compatible address

::0a09:0807

First zero removed

::10.9.8.7

Combined hex and decimal format

 

IPv6 addresses are classless, using Classless Internet Domain Registry CIDR format. The prefix follows the IPv6 address (<IPv6 addr>”/”<prefix>) and denotes the size of a subnet.

Example: 8:7:6:5:4:3:2:1/16

© 2004 Hewlett-Packard Development Company, L.P.