JetStream 52-Port Gigabit Stackable L3 Managed Switch CLI Guide
25.8 match srcl4port
Description
The match srcl4port command definites a match condition based on the
source TCP/UDP port of a packet using a port number or a port keyword.
Syntax
match srcl4port {
port-num | port-key
}
Parameter
port-num
—— The TCP/UDP port number, ranging from 0 to 65535.
port-key
—— The supported port keyword (domain / echo / ftp / ftpdata / http
/ smtp / snmp / telnet / tftp / www).
Command Mode
Class-Map Configuration Mode
Example
Create a class whose name is “Market”, definites a match condition that the
packets’s source TCP/UDP port number should be 80:
T3700G-52TQ(config)#class-map match-all Market
T3700G-52TQ(config-cmap)#match srcl4port 80
25.9 match protocol
Description
The match protocol command definites a match condition based on the
value of the IP Protocol field in a packet using a protocol number or a
protocol name.
Syntax
match protocol {
protocol-num | protocol-name
}
Parameter
protocol-num
—— The protocol number is a standard value assigned by
IANA, ranging from 0 to 255.
protocol-name
—— The supported protocol name. For an ipv4 class, the
supported values are: icmp, igmp, ip, tcp, udp. For an ipv6 class, the
supported values are: icmpv6, ipv6, tcp, udp.
187