Alcatel-Lucent 6850-48 参考指南
QoS Policy Commands
page 53-28
OmniSwitch CLI Reference Guide
September 2009
policy service protocol
Configures a service with a protocol and IP port or port range that may be used as part of a policy service
group or included as part of a policy condition.
group or included as part of a policy condition.
policy service service_name protocol protocol {[source ip port port[-port]]
[destination ip port port[-port]]}
[destination ip port port[-port]]}
no policy service service_name
policy service service_name [no source ip port] [no destination ip port]
Syntax Definitions
service_name
The name of the service (up to 31 alphanumeric characters).
protocol
The protocol associated with the service. The range of values is 0–255.
Currently a value of 6 (for TCP) or 17 (for UDP) is supported.
Currently a value of 6 (for TCP) or 17 (for UDP) is supported.
port
The well-known port number (or port range) for the desired service. For
example, the port number for Telnet is 23. A port range should be sepa-
rated by a hyphen (for example, 22-23).
example, the port number for Telnet is 23. A port range should be sepa-
rated by a hyphen (for example, 22-23).
Defaults
N/A
Platforms Supported
OmniSwitch 6400, 6850, 6855, 9000, 9000E
Usage Guidelines
• Use the no form of the command to remove a service from the configuration, or to remove parameters
from a particular service. (A protocol value cannot be removed from a service.)
• Shortcut commands for the
command include the following:
,
, and
• If the snapshot command is entered after the policy service command is configured, the resulting
ASCII file will include the following additional syntax for the policy service command:
from {cli | ldap | blt}
This syntax indicates how the service was created. The cli and ldap options may be changed by a user
modifying the ASCII file; however, changing this setting is not recommended. The blt option indicates
a built-in object, this setting is not configurable.
modifying the ASCII file; however, changing this setting is not recommended. The blt option indicates
a built-in object, this setting is not configurable.
Examples
-> policy service telnet2 protocol 6 destination ip port 23 source ip port 22
-> policy service telnet2 no source ip port