ip-protocol

Last Updated : Nov 06, 2012 |
Specifies that the current rule applies to packets having the specified IP protocol.
Prolog information
Use no ip-protocol to set the IP protocol to its default value.
Use not ip-protocol to specify that the current rule applies to all packets except those having the specified IP protocol.

Syntax

[not] ip-protocol protocol_name | protocol_number
no ip-protocol

Parameters

Parameter
Description
Possible Values
Default Value
protocol_name
Name of the IP protocol to match
protocol_number
Number of the IP protocol to match
1-255

User level

read-write

Context

ip access-control-list/ip-rule, ip capture-list/ip-rule, ip pbr-list/ip-rule, ip qos-list/ip-rule, crypto-list/ip-rule
Note:
The not ip-protocol command is not relevant in the crypto-list/ip-rule context.

Examples

To specify that rule 22 applies to all packets having an IP protocol of ICMP:
Gxxx-001(ACL 330/ip rule 22)# ip-protocol icmp
To specify that rule 22 applies to all packets having any IP protocol except ICMP:
Gxxx-001(ACL 330/ip rule 22)# not ip-protocol icmp