netservice [tcp | udp | port]
Syntax
netservice <NAME-STR> [tcp | udp | <PROTOCOL>]
port <PORT-LIST>
no netservice <NAME-STR> [tcp | udp | <PROTOCOL>]
port <PORT-LIST>
Description
Configures net-service.
No form of this command disables net-service configuration.
Parameters
- protocol
IP protocol number.
Range: 0-255
- TCP
Configure an alias for a TCP protocol.
- UDP
Configure an alias for a UDP protocol.
- port
Specify a single port or a list of noncontiguous port numbers, by entering up to six port numbers, separated by commas or range of ports.
Range: 0-65535
Example net-service tcp-service tcp 100 for ACL
netservice tcp-service tcp 100 ip access-list extended “acl1” permit alias-src src-ip alias-dst destn-ip alias-srvc tcp-service
Example net-service tcp-service tcp 100 for classifier
netservice tcp-service tcp 100 class ipv4 “abc” match alias-src “src-ip” alias-dst “destn-ip” alias-srvc "tcp-service”