debug packet filter

Use this command to filter debug messages based upon the specified criteria.

Syntax

debug packet filter {[vlan-in-list vlan-list] [vlan-out-list vlan-list] [port-in-list port-list] [port-out-list port-list] [src-mac mac-address] [dest-mac mac-address] [etype value] [access-list access-list] [arp {ip-address netmask | ip-address/length}]}
no debug packet

Parameters

vlan-in-list vlan-list (Optional) Filters packet debug messages based upon an inbound VLAN ID or range of IDs. Valid values are 1 - 4094.
vlan-out-list vlan-list (Optional) Filters packet debug messages based upon an outbound VLAN ID or range of IDs. Valid values are 1 - 4094.
port-in-list port-list (Optional) Filters packet debug messages based upon an inbound port or range of ports in a media.slot.port format.
port-out-list port-list (Optional) Filters packet debug messages based upon an outbound port or range of ports in a media.slot.port format.
src-mac mac-address (Optional) Filters packet debug messages based upon a 48-bit MAC hardware source address.
dest-mac mac-address (Optional) Filters packet debug messages based upon a 48-bit MAC hardware destination address.
etype value (Optional) Filters packet debug messages based upon an IEEE Ethernet type number or keyword:
  • value – a hex value IEEE Ethernet type number
  • LLC_IP – 0606: IP over EEE 802.2 Logical Link Control/SNAP
  • IP – 0800: IP ethernet version 2
  • ARP – 0806: Address Resolution Protocol
  • REVARP – 8035: Reverse Address Resolution Protocol
  • VLAN – 8100: IEEE 802.1Q VLAN tagging
  • IPV6 – 86dd: IPv6
access-list access-list (Optional) Filters packet debug messages based upon the contents of an IPv4 or IPv6 access list.
arp ip-address netmask | ip-address/length (Optional) Filters packet debug messages based upon an ARP IP network address.

Defaults

At least one option must be specified. Filtering does not take place for unspecified options.

Mode

Configuration command.

Usage

Packet debug messages only display for the specified options. At least one option must be specified.

This command overwrites any preexisting debug filter configuration.

Use the no debug packet command to reset all packet debug parameters to the default value or behavior. In the case of packet debug filtering, all packet debug messages display.

Use the show debugging packet command to display packet debug settings, including the current debug packet filter settings.

Example

This example shows how to filter packet debug such that only packets that meet the criteria specified in access-list doctest display:

System(rw-config)->debug packet filter access-list doctest
System(rw-config)->