The debugging packet filter command sets the filter condition for tracing protocol packets.
The undo debugging packet filter command cancels the filter condition for tracing protocol packets.
By default, all protocol packets are displayed after the protocol packet tracking function is enabled.
debugging packet filter L2 { application | link }
debugging packet filter L3 { transport | ipv4 | application }
debugging packet filter { ingress | egress }
undo debugging packet filter L2 { application | link }
undo debugging packet filter L3 { transport | ipv4 | application }
undo debugging packet filter { ingress | egress }
Parameter | Description | Value |
---|---|---|
application |
Filters application layer protocol packets. |
- |
link |
Filters link layer protocol packets. |
- |
L3 |
Filters Layer 3 protocol packets. |
- |
transport |
Filters transport layer protocol packets. |
- |
ipv4 |
Filters IPv4 protocol packets. |
- |
ingress |
Filters protocol packets on the inbound interface. |
- |
egress |
Filters protocol packets on the outbound interface. |
- |
L2 |
Filters Layer 2 protocol packets. |
- |
Usage Scenario
When the debugging information about layer 2 or layer 3 protocol packets needs to be output on a terminal, the debugging packet filter command sets the filter condition for tracing the specified protocol packets. The debugging information about the protocol packets that meets the filter condition is not output on the terminal.
Follow-up Procedure
After the filter condition for tracing protocol packets is set, run the display debugging packet all command to view the debugging information about the protocol packets on the terminal.