블로그   태그   위치로그   이웃로그   방명록
          
 
 
 
 
     
 
  tcpdump packets dropped by kernel로 덤프 되지 않을때  +   [Information]   |  2011. 5. 13. 10:08
http://blog.naver.com/sale_sian?Redirect=Log&logNo=10092052348
위 불로그 글을 참조했습니다.

가금 TCPDUMP를 사용하여 덤프를 패킷 덤프를 할때 아무런 표시없어 CTRL+C를 눌러 종료하고 보면
packets dropped by kernel에 표시되는경우가 있다.
이럴때 -n 옵션을 이용하면 정상적인 덤프가 가능하다.


1. 첫번째  해결책은 아래와 같다.

 address translation을 off 하면 kernel drop이 없어진것을 볼수 있다.
-n : 주소(호스트 주소와 포트번호)를 이름으로 바꾸지 않음.

$ tcpdump -i eth0 -n
Now the results look as expected.

6941 packets captured
7011 packets received by filter
0 packets dropped by kernel


2. 두번째로는 아래와 같다.   nsswitch.conf에서 dns lookup을 설정이 되어 있는데, linux의 dns가 정상적으로 설정되지 않아 있는 경우에 발생하게 된다.   이경우 nsswitch.conf 에서 dns를 삭제해 주면 된다.  
hosts:  files

 


 
믹시 대한민국 No.1 무료 개인 홈페이지 사이트 순위

  
 
 
<<이전   | 1 | ··· | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ··· | 67 |   다음>>
 

gooja's Blog is powered by Daum & tistory