Applying the rule to ICMP type and code

Last Updated : Nov 06, 2012 |
Prolog information
  1. To apply the rule to a specific type of ICMP packet, use the icmp command.
    ADDITIONAL INFORMATION:
    This command sets the IP protocol parameter to ICMP, and specifies an ICMP type and code to which the rule applies. You can specify the ICMP type and code by integer or text string, as shown in the examples below.
  2. To apply the rule to all ICMP packets except the specified type and code, enter no icmp
For example, the following command specifies an ICMP echo reply packet for rule 1 in QoS list 401:
Gxxx-001(QoS 401/rule 1)# icmp Echo-Reply
The following command specifies any ICMP packet except type 1 code 2 for rule 5 in access control list 321:
Gxxx-001(ACL 321/ip rule 5)# no icmp 1 2