Configures protocol-based matching for a route-map sequence number.
Protocol-based matching is not configured.
Route-map configuration mode
When match protocol and match ip icmp-code are specified in the same stanza, the protocol specified by the match protocol command must be ICMP; specifying any other protocol value using the match protocol command results in the rule being evaluated as false and it becomes inactive.
When match protocol and match ip icmp-type are specified in the same stanza, the protocol specified by the match protocol command must be ICMP; specifying any other protocol value using the match protocol command results in the rule being evaluated as false and it becomes inactive.
When match protocol and match port, match source-port, or match destination-port are specified in the same stanza, the protocol specified by the match protocol command must be either TCP or UDP.
When multiple match protocol statements of the same type exist, matching occurs when traffic matches any one of the statements.
Note
Configuring the range option may create a lot of TCAM entries (due to rule expansion).The no form of the command disables the configuration.
The following example shows how to configure protocol-based matching for sequence number 4 in a route-map named rm; a match occurs when traffic is not equal to 34 and 56 and 67.
device# configure terminal device(config)# route-map rm permit 4 device(config-route-map-rm/permit/4)# match protocol neq 34 56 67
The following example shows how to configure matching based on a range of protocols (3 through 10) for sequence number 4 in a route-map named rm.
device# configure terminal device(config)# route-map rm permit 4 device(config-route-map-rm/permit/4)# match protocol range 3 10