Cisco Catalyst 9k 스위치에서 이벤트 프로토콜 데이터 유닛을 캡처하는 방법은 내장 패킷 캡처 (EPC) 툴로 실현 할 수 있습니다.
1.먼저 캡쳐 할 인터페이스를 지정합니다.
본 문서에서는 인터페이스 gi1/0/1에서 양방향 트래픽을 캡쳐 하도록 설정하였습니다.
#monitor capture intcap interface gi1/0/1 both match any
2.캡쳐 버퍼 사이즈와 패킷 rate를 제한 합니다.
캡쳐 버퍼 크기는 10MB로 설정하고 안전 조치로 초당 1000패킷 rate를 제한 하였습니다.
#monitor capture intcap buffer size 10
#monitor capture intcap limit pps 1000
3.컨피그 검증.
#show monitor capture intcap parameter
monitor capture intcap interface GigabitEthernet1/0/1 BOTH
monitor capture intcap match any
monitor capture intcap buffer size 10
monitor capture intcap limit pps 1000
#show monitor capture intcap
Status Information for Capture intcap
Target Type:
Interface: GigabitEthernet1/0/1, Direction: BOTH <<<
Status : Inactive
Filter Details:
Capture all packets
Buffer Details:
Buffer Type: LINEAR (default)
Buffer Size (in MB): 10 <<<
File Details:
File not associated
Limit Details:
Number of Packets to capture: 0 (no limit)
Packet Capture duration: 0 (no limit)
Packet Size to capture: 0 (no limit)
Maximum number of packets to capture per second: 1000 <<<
Packet sampling rate: 0 (no sampling)
4.캡쳐를 시작합니다.
#monitor capture intcap start
Started capture point : intcap
5.버퍼 카운터에서 증가하는지 확인합니다.
# show monitor capture intcap buffer
buffer size (KB) : 10240
buffer used (KB) : 128 <<<
packets in buf : 13 <<<
packets dropped : 0
packets per sec : 0
6.캡쳐를 중단하고 캡쳐 된 패킷을 .pcap 파일로 저장합니다.
#monitor capture intcap file location flash:intcap.pcap
#monitor capture intcap stop
7.flash: 디렉터리에서 패킷 캡쳐 파일이 생성되었는지 확인합니다.
#dir flash:
8.캡쳐 완성후 해당 컨피그를 삭제합니다.
#no monitor capture
참조 문서:
https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-embedded-packet-capture/116045-productconfig-epc-00.html