1.1.5 Specifying an IPv6 address
An IPv6 address can be specified as a command argument if it meets the following conditions:
-
Only alphanumeric characters and colons (:) are used.
Note that alphabetic characters are case insensitive.
-
The total size of the specified characters is within 3 to 39 bytes.
The following rules apply to the specification of IPv6 addresses:
-
If a 16-bit character string (block) delimited by colons (:) begins with 0, the 0 can be omitted.
Example: The following IPv6 addresses are treated as the same address:
2001:db80:1234:5678:9abc:def1:2345:0001
2001:db80:1234:5678:9abc:def1:2345:1
-
16-bit character strings (blocks) whose bits are all 0 can be omitted. Consecutive blocks that contain only 0 can be omitted as a unit.
Example: The following IPv6 addresses are treated as the same address:
2001:db80:0000:0000:0000:0000:0000:9abc
2001:db80::9abc
-
In JP1/AJS3, IPv6 addresses cannot be enclosed in square brackets ([ ]).
Example (allowed): 2001:db80::afff:1
Example (not allowed): [2001:db80::afff:1]
-
In JP1/AJS3, prefixes cannot be specified for IPv6 addresses.
Example (allowed): 2001:db80::afff:1
Example (not allowed): 2001:db80::afff:1/32