cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3166
Views
45
Helpful
1
Comments
Fabian Ortega
Level 1
Level 1

IMPORTANT: In order to retrieve the packet capture file you need a TFTP server such as TFTP32. (Freeware)

1. The first set of command will create a buffer on the router in order to capture the data.

monitor capture buffer MYBUFFER size 10000 max-size 1550 circular
monitor capture point ip cef CAPTUREONG1 g1/0 both
monitor capture point associate CAPTUREONG1 MYBUFFER

NOTE: g1/0 is the interface we will capture the traffic in and out on this example. You have to select here the interface you want to capture the traffic on.

2. Second, an ACL will be created in order to capture all the interesting traffic. (Filter ACL)

ip access-list extended MYCAPTURE
permit ip host 192.168.1.1 host 10.1.1.1
permit ip host 10.1.1.1 host 192.168.1.1
end

3. The next step is to link the access-list to the buffer and start the capture.

monitor capture buffer MYBUFFER filter access-list MYCAPTURE
monitor capture point start CAPTUREONG1

NOTE: This command "show monitor capture point all" will show if the capture is active.

4. Once the traffic was sent and has been captured on the router's buffer, the capture needs to be stopped before we can sent the file to the TFTP Server using the following command:

monitor capture point stop CAPTUREONG1

5. The last command will send the capture file to the TFTP server, therefore it could be open with Wireshark or any other packet-analyzer.

monitor capture buffer MYBUFFER export tftp://192.168.100.200/CAPTURE.cap

Comments
Marvin Ruiz
Level 1
Level 1

Great post. 

To put my two cents in:

Once the necessary data has been collected, delete the "capture point" and "capture buffer":

- no monitor capture point ip cef CAPTUREONG1 g1/0 both

- no monitor capture buffer MYBUFFER

In situations where you do not have a TFPT server available,  you can take a copy of the hex dump and use any online hex-pcap convertor in order to view the files.

Example:

http://sadjad.me/phd/

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: