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

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 5개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{다른뜻|영어 route}}
==개요==
==개요==
;리눅스 route
;리눅스 route
5번째 줄: 6번째 줄:


==route 확인==
==route 확인==
<source lang='cli'>
<syntaxhighlight lang='console'>
root@zetawiki:~# route
root@zetawiki:~# route
Kernel IP routing table
Kernel IP routing table
11번째 줄: 12번째 줄:
default        135.246.135.1  0.0.0.0        UG    0      0        0 eth0
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
135.246.135.0  *              255.255.255.0  U    0      0        0 eth0
</source>
</syntaxhighlight>
<source lang='cli'>
<syntaxhighlight lang='console'>
root@zetawiki:~# route -n
root@zetawiki:~# route -n
Kernel IP routing table
Kernel IP routing table
18번째 줄: 19번째 줄:
0.0.0.0        135.246.135.1  0.0.0.0        UG    0      0        0 eth0
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
135.246.135.0  0.0.0.0        255.255.255.0  U    0      0        0 eth0
</source>
</syntaxhighlight>


==기본 route 추가==
==기본 route 추가==
{{참고|리눅스 기본 게이트웨이 추가}}
{{참고|리눅스 기본 게이트웨이 추가}}
<source lang='bash'>
<syntaxhighlight lang='bash'>
route add default gw 192.168.1.254 eth0
route add default gw 192.168.1.254 eth0
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[route add default gw]]
* [[리눅스 route 확인]]
* [[리눅스 route 확인]]
* [[리눅스 게이트웨이 확인]]
* [[리눅스 게이트웨이 확인]]
33번째 줄: 35번째 줄:
* [[게이트웨이]]
* [[게이트웨이]]


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


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

2021년 9월 24일 (금) 23:18 기준 최신판

  다른 뜻에 대해서는 영어 route 문서를 참조하십시오.

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 }}