Applying rules to packets with IP protocols

Last Updated : Nov 06, 2012 |
Prolog information
  1. Use the ip-protocol command, followed by the name of an IP protocol, to apply the rule to all packets with the specified IP protocol.
  2. If you want the rule to apply to all protocols, use any after the command (ip-protocol any).
    For example, the following rule is defined to capture all TCP packets:
    Gxxx-001(super)# ip capture-list 520
    Gxxx-001(super-Capture 520)# ip-rule 20
    Gxxx-001(super-Capture 520/ip rule 20)# composite-operation capture
    Done!
    Gxxx-001(super-Capture 520/ip rule 20)# ip-protocol tcp
    Done!
    Gxxx-001(super-Capture 520/ip rule 20)#
  3. To apply the rule to all protocols except the specified protocol, use the no form of this command.
    ADDITIONAL INFORMATION:
    For example:
    Gxxx-001(super-Capture 520/ip rule 20)# no ip-protocol tcp
    Done!
    Gxxx-001(super-Capture 520/ip rule 20)#