509
• If the specified group exists but the group type is different from that in the command, the command
fails.
• If the specified object group is being referenced by an ACL, object policy, or object group, the
command fails.
Examples
# Configure an IPv4 address object group named ipgroup.
<Sysname> system-view
[Sysname] object-group ip address ipgroup
# Configure an IPv6 address object group named ipv6group.
<Sysname> system-view
[Sysname] object-group ipv6 address ipv6group
# Configure a port object group named portgroup.
<Sysname> system-view
[Sysname] object-group port portgroup
# Configure a service object group named servicegroup.
<Sysname> system-view
[Sysname] object-group service servicegroup
port (port object group view)
Use port to configure a port object.
Use undo port to delete the port object.
Syntax
[ object-id ] port { { eq | lt | gt } port | range port1 port2 | group-object object-group-name }
undo port { { eq | lt | gt } port | range port1 port2 | group-object object-group-name }
undo object-id
Default
No port object exists.
Views
Port object group view
Predefined user roles
network-admin
Parameters
object-id: Specifies an object ID in the range of 0 to 4294967294. If you do not specify an object ID, the
system automatically assigns the object a multiple of 10 next to the greatest ID being used. For example,
if the greatest ID is 22, the system automatically assigns 30.
eq: Configures a port object with a port number equal to the specified port.
lt: Configures a port object with a port number smaller than the specified port.
gt: Configures a port object with a port number greater than the specified port.
port: Specifies a port number in the range of 0 to 65535.