"리눅스 route"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
33번째 줄: 33번째 줄:
* [[게이트웨이]]
* [[게이트웨이]]


==참고 자료==
==참고==
*https://en.wikipedia.org/wiki/Route_(command)
*https://en.wikipedia.org/wiki/Route_(command)


[[분류: /sbin]]
[[분류: /sbin]]
[[분류: 리눅스 네트워크]]
[[분류: 리눅스 네트워크]]

2017년 7월 11일 (화) 04:02 판

1 개요

리눅스 route
/sbin/route
  • 리눅스에서 route 설정 상태 확인하는 명령어

2 route 확인

root@zetawiki:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         135.246.135.1   0.0.0.0         UG    0      0        0 eth0
135.246.135.0   *               255.255.255.0   U     0      0        0 eth0
root@zetawiki:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         135.246.135.1   0.0.0.0         UG    0      0        0 eth0
135.246.135.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

3 기본 route 추가

route add default gw 192.168.1.254 eth0

4 같이 보기

5 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}