match layer4
Use this command to classify the traffic based on layer4 protocol src/dest port value.
Use the no command to remove the match configuration.
Note: The match commands which accept range has silent exit which makes removal of these match configuration easier. Only one type of layer4 matching criteria is supported per class-map.
Command Syntax
match layer4 (tcp|udp|any) (source-port|destination-port) WORD
no match layer4 (((tcp|udp|any) (source-port|destination-port) WORD) |all)
Parameters
tcp
Specify TCP protocol
udp
Specify UDP protocol
any
Specify ANY protocol – TCP/UDP
source-port
Specify source TCP/UDP port
destination-port
Specify destination TCP/UDP port
WORD
Enter TCP/UDP port value <1-65535> or range of values separated by commas.
e.g. 1 or 1,4-5 or 50,51,52
all
Delete all layer4 port entries
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match layer4 tcp source-port 1
Last modified date: 10/20/2023