취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 
cancel
958
VIEWS
5
Helpful
0
의견
Sally Oh
Cisco Employee
Cisco Employee

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  

 

시작하기

상단의 검색창에 키워드, 문구, 또는 질문을 입력하여 궁금한 내용을 찾아보세요.

이곳에서의 여러분의 여정이 훌륭하기를 바랍니다! 시스코 커뮤니티에 빠르게 익숙해지는 데 도움이 되는 몇 가지 링크를 준비했습니다.

빠른 링크