Specifies that the current rule applies to a specific type of ICMP packet.
Use not icmp to specify that the rule applies to all packets except those of the requested ICMP attribute. If the IP protocol is not ICMP, it is set to ICMP.
Use no icmp to specify that the current rule applies to any type of ICMP packet.
Note:
The icmp command also sets the IP protocol to ICMP.
Syntax
[not] icmp {name | {icmp_type icmp_code}}
no icmp
Parameters
Parameter
Description
Possible Values
Default Value
name
Specify that the rule applies to this ICMP name
icmp_type
Specify that the rule applies to this icmp type
For an ip-rule: 0-256
For a QoS rule: 0-65535
icmp_code
Specify that the rule applies to this icmp code
For an ip-rule: 0-256
For a QoS rule: 0-65535
User Level
read-write
Context
ip capture-list/ip-rule, ip access-control-list/ip-rule, ip pbr-list/ip-rule, ip qos-list/ip-rule, ip crypto-list ip-rule
Note:
The not icmp command is not relevant in the crypto-list ip-rule context.
Examples
To specify that rule 27 applies to ICMP error-reply packets:
Gxxx-001(ACL 333/ip rule 27)# icmp Echo-Reply
To specify that rule 33 applies to any ICMP packet type except type 1 code 2: