본문 바로가기
Backup Solution & IT Study/OS

[Linux]route 명령어

by blue_licht 2021. 3. 2.

route

 

출력내용

 Destination

Gateway 

Genmask 

 Glags

 Metric

 Ref

 Use

 Iface

 목적지주소

게이트웨이 

넷마스크 

해당경로 상태 

다음라우터 거리 

라우터에 대한  

 

 


route add -net 192.168.10.0 netmask x.x.x.x dev eth0
라우트 테이블에 경로 추가

route add -host 192.168.10.5 netmask x.x.x.x dev eth0

 

라우트 테이블 경로 삭제

route del -net 192.168.10.0 netmask x.x.x.x dev eth0

route del -host 192.168.10.5 netmask x.x.x.x dev eth0

 

게이트웨이 라우터 테이블 추가/삭제

route add default gw 192.168.1.2

route del default gw 192.168.1.2

 

ping -c 20 -i 0.2 -s 1000 192.168.32.2

20개 패킷 0.2초 간격으로 1000바이트 사이즈로 192.168.32.2 로 보냄

 

netstat -atunp |grep 포트번호 or 서비스 명령어

 

LISTEN 연결이 가능하게 열려있는 상태

ESTABLISHED 연결이 완료된 상태

CLOSED 연결이 종료된 상태

'Backup Solution & IT Study > OS' 카테고리의 다른 글

[HP-UX] Install 명령어  (0) 2021.03.02
[AIX]Install 명령어  (0) 2021.03.02
[Debian,Ubuntu] Install 명령어  (0) 2021.03.02
[SLES]MAC 주소 변경  (0) 2021.03.02
[Redhat]MAC 주소 변경  (0) 2021.03.02

댓글