511
<Sysname> system-view
[Sysname] object-group port portgroup
[Sysname-obj-grp-port-portgroup] port gt 60000
# Configure a port object with a port number in the range of 1000 to 2000.
<Sysname> system-view
[Sysname] object-group port portgroup
[Sysname-obj-grp-port-portgroup] port range 1000 2000
# Configure a port object referencing object group portgroup2.
<Sysname> system-view
[Sysname] object-group port portgroup
[Sysname-obj-grp-port-portgroup] port group-object portgroup2
service (service object group view)
Use service to configure a service object.
Use undo service to delete the service object.
Syntax
[ object-id ] service { protocol [ { source { { eq | lt | gt } port | range port1 port2 } | destination { { eq
| lt | gt } port | range port1 port2 } } * | icmp-type icmp-code | icmpv6-type icmpv6-code ] |
group-object object-group-name }
undo service { protocol [ { source { { eq | lt | gt } port | range port1 port2 } | destination { { eq | lt |
gt } port | range port1 port2 } } * | icmp-type icmp-code | icmpv6-type icmpv6-code ] | group-object
object-group-name }
undo object-id
Default
No service object is configured.
Views
Service object group view
Predefined user roles
network-admin
Parameters
object-id: Configures an object ID in the range of 0 to 4294967294 manually or automatically. If you do
not configure an ID for the object, 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 automatically assigned ID is 30.
Protocol: Configures the protocol number in the range of 0 to 255, or the protocol name such as TCP,
UDP, ICMP, and ICMPv6.
source: Configures a service object with a source port when the protocol is TCP or UDP.
destination: Configures a service object with a destination port when the protocol is TCP or UDP.
eq: Configures a port equal to the specified port.
lt: Configures a port smaller than the specified port.
gt: Configures a port greater than the specified port.