본문 바로가기

Network System/Linux

netstat

netstat [option] | grep [server name]

* grep : 텍스트 검색기능을 가진 명령어

 

<option>

-t : tcp

-u : udp

 

-l : listen, 연결 가능 상태

-n : number port, 포트넘버

-p : pid, 프로그램 이름

-a : 모두

 

-r : 라우팅 테이블

-s : 네트워크 통계

-i : 이더넷 카드별 확인(정상/에러/드랍 송수신/패킷 수)

 

예제

netstat를 활용한 DNS 동작확인

-t : tcp

-a : 모두

-n : 포트넘버

-p : 프로그램 이름

'Network System > Linux' 카테고리의 다른 글

RAID와 mdadm 유틸리티  (0) 2021.02.05
dpkg-reconfigure  (0) 2021.02.02
Linux iptables(방화벽)  (0) 2021.01.25
Linux isc-dhcp-server Setting  (0) 2021.01.24
Linux scp(Scure Copy Protocol)  (0) 2021.01.23