Having the ability to conduct packet captures is a valuable tool for troubleshooting connectivity issues within a network. IOS routers 12.4(20)T and up has the Embedded Packet Capture (EPC) built in to it.
How to do packet captures on a Cisco ASA
How to do packet capture on Cisco Nexus OS
Routers
(All commands can be done from the exec mode except for creating the ACL which requires config mode)
Define the capture point/interface/direction
|
Define the buffer and size and how to react when it fills up
|
Create an ACL to hit on the interesting traffic and assign it to the capture buffer
|
Associate the capture point with the capture buffer
|
Start the packet capture
|
To stop it:
|
Now show what you’ve collected:
|
It is probably easier to read this in wireshark so here is how to export it:
|
Comments