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 used 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 uses the object group for the object.
•
Two object groups cannot use each other at the same time.
•
The system supports a maximum of five object group hierarchy layers. For example, if groups 1,
2, 3, and 4 use groups 2, 3, 4, and 5, respectively, group 5 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-ipv6group] network subnet 1:1:1::1 24
# Configure an IPv6 address object with the address range of 1:1:1::1 to 1:1:1::100
<Sysname> system-view
[Sysname] object-group ipv6 address ipv6group
[Sysname-obj-grp-ipv6-ipv6group] network range 1:1:1::1 1:1:1::100
# Configure an IPv6 address object using object group ipv6group2.
<Sysname> system-view
[Sysname] object-group ipv6 address ipv6group
[Sysname-obj-grp-ipv6-ipv6group] network group-object ipv6group2
object-group
Use object-group to configure an object group and enter its view, or enter the view of an existing
object group.
Use undo object-group to delete an object group.
Syntax
object-group { { ip | ipv6 } address | port | service } object-group-name
undo object-group { { ip | ipv6 } address | port | service } object-group-name
786