< Home

service service-set

Function

The service service-set command adds a service or service group to a service group.

The undo service command deletes a service or service group from a service group.

Format

service [ id ] service-set service-set-name [ description description ]

undo service { id | all }

Parameters

Parameter Description Value
id Specifies the ID of a service or service group. The value is an integer ranging from 0 to 255.
service-set service-set-name Specifies the name of a service or service group. The value must be the name of an existing service or service group.
NOTE:

The service groups cannot reference the predefined services with dynamic ports, namely, the predefined services whose port is identified as dynamic port.

description description Specifies the description. It is a string of 1 to 64 characters without spaces.
all Indicates all the members. -

Views

Service set group view

Default Level

2: Configuration level

Usage Guidelines

The ID is unique for each service and service group. If no ID is specified, the system automatically assigns an ID for it.

The service/service group referenced in a service group can be either a predefined service or user-defined service/service group. You can use the ip service-set command to configure user-defined services/service groups. The system provides predefined services. You can run the display predefined-service command to display details on predefined services.

Example

# Add s1 and s2 to service group s3.

<sysname> system-view
[sysname] ip service-set s1 type object
[sysname-group-service-set-s1] service protocol tcp destination-port 21
[sysname-group-service-set-s1] quit
[sysname] ip service-set s2 type group
[sysname-group-service-set-s2] service service-set dns
[sysname-group-service-set-s2] quit
[sysname] ip service-set s3 type group
[sysname-group-service-set-s3] service service-set s1
[sysname-group-service-set-s3] service service-set s2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >