|
|
HP-UX IPv6 Porting Guide: HP-UX 11i v2 September 2004 > Chapter 2 IPv6 AddressingComparing IPv4 and IPv6 Addresses |
|
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 Example: 0008:0007:0006:0005:0004:0003:0002:0001 Is also valid in the format: 8:7:6:5:4:3:2:1 Example: 0008:0000:0000:0000:0000:0003:0002:0001 Is also valid in the format: 8::3:2:1
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)
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 |
|