507
address ipv6-address: Specifies an IPv6 host address.
name
host-name: Specifies a host name, a case-insensitive string of 1 to 60 characters.
subnet ipv6-address prefix-length: Configures an IPv6 address object with the subnet address followed
by the prefix length in the range of 1 to 128.
range ipv6-address1 ipv6-address2: Configures an IPv6 address object with the address range starting
with ipv6-address1 and ending with ipv6-address2
group-object object-group-name: Specifies an IPv6 address object group to be referenced by its name,
a case-insensitive string of 1 to 31 characters.
Usage guidelines
This command fails if you use it to configure or change an IPv6 address object to be identical with an
existing object.
This command creates an IPv6 address object if the specified object ID does not exist. Otherwise, the
command overwrites the configuration of the specified object.
If you configure a subnet address with the prefix length of 128, the system configures the object with a
host address.
When you use the range ipv6-address1 ipv6-address2 option, follow these guidelines:
• If ipv6-address1 is equal to ipv6-address2, the system configures the object with a host address.
• If ipv6-address1 is not equal to ipv6-address2, the system compares the two IPv6 addresses,
configures a range starting with the lower IPv6 address, and performs the following operations:
{ Configures the object with an address range if the two addresses are in different subnets.
{ Configures the object with a subnet address if the two addresses are in the same subnet.
When you use the group-object object-group-name option, follow these guidelines:
• The object group to be referenced must be an IPv6 address object group.
• If the specified object group does not exist, the system creates an IPv6 address object group with the
name you specified and references the object group for the object.
• Two object groups cannot reference each other at the same time.
• The system supports up to five reference hierarchy layers. For example, if groups 1, 2, 3, 4, and 5
use groups 2, 3, 4, 5, and 6, respectively, group 6 cannot use another group and group 1 cannot
be used by another group.
Examples
# Configure an IPv6 address object with the host address of 1::1.
<Sysname> system-view
[Sysname] object-group ipv6 address ipv6group
[Sysname-obj-grp-ipv6-ipv6group] network host address 1::1
# Configure an IPv6 address object with the host name of pc3.
<Sysname> system-view
[Sysname] object-group ipv6 address ipv6group
[Sysname-obj-grp-ipv6-ipv6group] network host name pc3
# Configure an IPv6 address object with the IPv6 address of 1:1:1::1 and prefix length of 24.
<Sysname> system-view
[Sysname] object-group ipv6 address ipv6group
[Sysname-obj-grp-ipv6-ip v6group] network subnet 1:1:1::1 24