8.2.1.9.4 IPv6Address
The IPv6Address condition makes it possible to validate an IP address in the associated field against the configured subnet, to determine if the string in the field is a valid IPv4 or IPv6 address within the subnet. Figure 150 shows an example of an IPv6 subnet.
- Note:
- If no CIDR notation is given for a fully qualified address, the Subnet field will automatically handle it as an exact match.
The IPv6Address condition is compatible with both IPv4 and IPv6 addresses.
An IPv6 address is written in eight groups, where each group is separated by a colon. Octet series of zeros can be shortened by using two colons. For example, 2001:DB8:85A3:0:0:0:0:1234 may be written as 2001:DB8:85A3::1234.
While an IPv4 address is written in four groups, where each group is separated by a dot.
The format used for IPv6 subnets is n:n:n:n:n:n:n:n/x, where:
- n is a part of the IP address in hexadecimal digits, in the range 0–FFFF
- x is the CIDR notation, in the range 1–128
The format used for IPv4 Addresses is n.n.n.n/x, where:
- n is a part of the IP address in decimal digits, in the range 0–255
- x is the CIDR notation, in the range 1–32
The IP address can be described with or without a CIDR notation. The IPv6Address condition is configured as an exact match if no CIDR notation is given for a fully qualified address.
Some IPv6 examples of the input accepted in this condition are laid out below.
- Exact match: An exact match is to be used when an exact IP address must be compared.
2001:DB8:85A3::1234
- CIDR: Using a CIDR notation that has the 32 most significant bits in the address used for comparison. In this example, an IP address that starts with 2001:DB8 is considered a match.
2001:DB8:85A3::1234/32
