508
# 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 referencing 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 the object group view.
Use undo object-group to delete the object group.
Syntax
object-group { { ip | ipv6 } address | port | service } object-group-name
undo object-group { { ip | ipv6 } address | port | service } object-group-name
Default
Each type of object group has a default object group named any, which cannot be deleted.
Views
System view
Predefined user roles
network-admin
Parameters
ip address: Configures an IPv4 address object group.
ipv6 address: Configures an IPv6 address object group.
port: Configures a port object group.
service: Configures a service object group.
object-group-name: Specifies an object group name, a case-insensitive string of 1 to 31 characters.
Usage guidelines
The object-group command execution results vary with the specified object group.
• If the specified group does not exist, the system creates a new object group and enters the object
group view.
• If the specified group exists and the group type is the same as that in the command, the system
enters the object group view.
• If the specified group exists but the group type is different from that in the command, the command
fails.
The undo object-group command execution results vary with the specified object group.
• If the specified group does not exist, the system executes the command without any system prompt.
• If the specified group exists and the group type is the same as that in the command, the system
deletes the group.