本文檔介紹一個嵌入式資料包捕獲(EPC)配置示例,該配置從GigabitEthernet 0/0和GigabitEthernet 0/1介面捕獲循環捕獲緩衝區中高達1550位元組的幀。
EPC是一種板載資料包捕獲工具,允許網路管理員捕獲流入、流經或流自裝置的資料包,並在本地分析這些資料包,或將其儲存並匯出(匯出到Wireshark等工具)進行離線分析。
本文件沒有特定需求。
本檔案中的資訊是根據Cisco IOS®軟體版本15.x。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
此配置從GigabitEthernet 0/0和GigabitEthernet 0/1介面捕獲循環捕獲緩衝區中高達1550位元組的幀:
!-- Define a capture buffer.
monitor capture buffer pcap-buffer1 size 10000 max-size 1550
!-- Define a capture point.
monitor capture point ip cef pcap-point1 g0/0 both
monitor capture point ip process-switched pcap-point2 both
!-- Associates the capture point with the capture buffer
!-- so that packets captured from the specified capture
!-- point can be dumped to the associated capture buffer.
monitor capture point associate pcap-point1 pcap-buffer1
monitor capture point associate pcap-point2 pcap-buffer1
!-- Repeat the same steps for second interface.
monitor capture buffer pcap-bufferA size 10000 max-size 1550
monitor capture point ip cef pcap-pointA g0/1 both
monitor capture point ip process-switched pcap-pointB both
monitor capture point associate pcap-pointA pcap-bufferA
monitor capture point associate pcap-pointB pcap-bufferA
!-- Optionally you can specify an access-list in order to capture
!-- only interesting traffic as defined by access-lists 110 and 120.
monitor capture buffer pcap-buffer1 filter access-list 110
monitor capture buffer pcap-bufferA filter access-list 120
!-- Enable the capture point in order to start packet data capture.
monitor capture point start pcap-point1
monitor capture point start pcap-point2
monitor capture point start pcap-pointA
monitor capture point start pcap-pointB
!-- Verify the configuration.
show monitor capture point all
show monitor capture buffer all
!-- Disable the capture point, and stop the packet data capture process.
monitor capture point stop pcap-point1
monitor capture point stop pcap-point2
monitor capture point stop pcap-pointA
monitor capture point stop pcap-pointB
!-- Export the data for analysis.
monitor capture buffer pcap-buffer1 export tftp://192.0.2.100/1.cap
monitor capture buffer pcap-bufferA export tftp://192.0.2.100/A.cap
目前沒有適用於此組態的驗證程序。
目前尚無適用於此組態的具體疑難排解資訊。
修訂 | 發佈日期 | 意見 |
---|---|---|
1.0 |
07-Feb-2014 |
初始版本 |