본문 바로가기

기타

[리눅스] route 테이블 추가/삭제

728x90

route 테이블 추가/삭제

net 로 라우팅 테이블 추가/삭제

route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.1

route del -net 192.168.0.0 netmask 255.255.255.0

host 로 라우팅 테이블 추가/삭제

route add -host 192.168.0.12 gw 192.168.0.1

route del -host 192.168.0.12 gw 192.168.0.1
728x90