Strony

Thursday, 27 August 2015

Packet Capture - ASR


On the Cisco ASR platform - Embedded Packet Capture (EPC) tool is available. It allows for capturing and analyzing the packets flowing to, from and through the device.

The configuration process of EPC is similar to configuration of packet capturing on Cisco 4500x platform (description of capturing the packets on Cisco 4500x platform can be found under this link - Packet Capture - VSS )

In that blog entry configuration for simple capture on Cisco ASR platform will be presented:

#Configuration of access list which defines traffic for capture
ip access-list extended aclcaptra
permit udp host 192.168.1.1 host 192.168.1.2
permit udp host 192.168.1.2 host 192.168.1.1

#Configuration for capture details
monitor capture captra access-list aclcaptra
monitor capture captra limit duration 200
monitor capture captra interface GigabitEthernet 0/1
monitor capture captra buffer circular size 10

#To start capture process
monitor capture captra start

#To display the captured packets
show monitor capture captra buffer brief

#To clear the capture buffer
monitor capture captra clear

No comments:

Post a Comment