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

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


<source lang='dos'>
==route 확인==
[root@jmnote ~]# route
<syntaxhighlight lang='console'>
root@zetawiki:~# route
Kernel IP routing table
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.0.0     *              255.255.255.0  U    1     0        0 eth1
default        135.246.135.1  0.0.0.0         UG    0      0        0 eth0
default         192.168.0.1     0.0.0.0        UG    0      0        0 eth1
135.246.135.0   *              255.255.255.0  U    0     0        0 eth0
</source>
</syntaxhighlight>
<syntaxhighlight lang='console'>
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
</syntaxhighlight>
 
==기본 route 추가==
{{참고|리눅스 기본 게이트웨이 추가}}
<syntaxhighlight lang='bash'>
route add default gw 192.168.1.254 eth0
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[route add default gw]]
* [[리눅스 route 확인]]
* [[리눅스 route 확인]]
* [[ifconfig]]
* [[리눅스 게이트웨이 확인]]
* [[리눅스 스태틱 라우팅 설정]]
* [[리눅스 ifconfig]]
* [[게이트웨이]]
* [[게이트웨이]]


==참고 자료==
==참고==
*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 }}