Cisco Systems 1000 Series Manual De Usuario

Descargar
Página de 702
 
21-5
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17
Chapter 21      Packet Trace
  Configuring Packet Trace
DETAILED STEPS
Command
Purpose
Step 1
enable
Example:
Router> enable
Enables the privileged EXEC mode. Enter your 
password if prompted.
Step 2
debug platform packet-trace enable
Example:
Router# debug platform packet-trace enable
Enables packet-trace accounting.
Note
This command is required for all levels of 
inspection. 
Step 3
debug platform packet-trace packet pkt-num [fia-trace | 
summary-only] [circular] [data-size 
data-size]
Example:
Router# debug platform packet-trace packets 2048 
summary-only
Collects summary data for a specified number of 
packets. Captures feature path data by the default, 
and optionally performs FIA trace.
pkt-num—Specifies the maximum number of 
packets maintained at a given time.
fia-trace—Provides detailed level of data capture, 
including summary data, feature-specific data. Also 
displays each feature entry visited during packet 
processing. 
summary-only—Enables the capture of summary 
data with minimal details.
circular—Saves the data of the most recently traced 
packets.
data-size—Specifies the size of data buffers for 
storing feature and FIA trace data for each packet in 
bytes. When very heavy packet processing is 
performed on packets, users can increase the size of 
the data buffers if necessary. The default value is 
2048.
Step 4
debug platform packet-trace copy packet {in | out | both} 
[L2 | L3 | L4] [size 
num-bytes]
Example:
Router# debug platform packet-trace copy packet 
input size 2048
Enables copying of ingress or egress packets or both. 
Also, optionally, allows specifying the layer of the 
packet in which the packet copy should start. If the 
specified layer does not exist for the packet, the 
default behavior is to copy the packet at layer 2. 
num-bytes—Specifies the maximum number of 
octets to copy. Default value is 64.
Step 5
debug platform condition [ipv4 | ipv6] [interface 
interface][access-list access-list -name ipv4-address 
subnet-mask ipv6-address / subnet-mask] [ingress| egress]
Example:
Router# debug platform condition interface g0/0/0 
ingress 
Specifies the matching criteria for tracing packets. 
Provides the ability to filter by protocol, IP address 
and subnet mask, access control list (ACL), 
interface, and direction.