< Home

service (traffic policy rule view)

Function

The service command creates a service in a traffic policy rule.

The undo service command deletes a service from a traffic policy rule.

Format

service { service-name &<1-6> | any }

undo service { service-name &<1-6> | all }

Parameters

Parameter Description Value
service-name &<1-6> Specifies the name of a service or service group. The service or service group must exist. A maximum of six services or service groups can be specified or deleted at a time.
any Indicates any service. -
all Deletes all services from the traffic policy rule. -

Views

Traffic policy rule view

Default Level

2: Configuration level

Usage Guidelines

The service/service group referenced in a traffic policy 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.

Traffic policies cannot reference the predefined services with dynamic ports, namely, the predefined services whose ports are identified as dynamic port.

Example

# Set the service to h323 in traffic policy rule traffic_rule.

<sysname> system-view
[sysname] traffic-policy
[sysname-policy-traffic] rule name traffic_rule
[sysname-policy-traffic-rule-traffic_rule] service h323
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >