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

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
잔글 (로봇: 자동으로 텍스트 교체 (-[root@jmnote +[root@zetawiki))
5번째 줄: 5번째 줄:
{{참고|리눅스 route}}
{{참고|리눅스 route}}
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# route
[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
13번째 줄: 13번째 줄:
</source>
</source>
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# route -n
[root@zetawiki ~]# route -n
Kernel IP routing table
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
24번째 줄: 24번째 줄:
{{참고|리눅스 netstat}}
{{참고|리눅스 netstat}}
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# netstat -r
[root@zetawiki ~]# netstat -r
Kernel IP routing table
Kernel IP routing table
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
32번째 줄: 32번째 줄:
</source>
</source>
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# netstat -rn
[root@zetawiki ~]# netstat -rn
Kernel IP routing table
Kernel IP routing table
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
43번째 줄: 43번째 줄:
{{참고|리눅스 ip}}
{{참고|리눅스 ip}}
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# ip route list
[root@zetawiki ~]# ip route list
175.246.80.0/24 dev eth0  proto kernel  scope link  src 175.246.80.11  
175.246.80.0/24 dev eth0  proto kernel  scope link  src 175.246.80.11  
169.254.0.0/16 dev eth0  scope link  
169.254.0.0/16 dev eth0  scope link  

2015년 2월 12일 (목) 02:09 판

OS 라우트 확인, OS 라우팅 확인
리눅스 게이트웨이 확인

1 방법 1: route

[root@zetawiki ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
175.246.80.0    *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         175.246.80.1    0.0.0.0         UG    0      0        0 eth0
[root@zetawiki ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
175.246.80.0    *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
0.0.0.0         175.246.80.1    0.0.0.0         UG    0      0        0 eth0

2 방법 2: netstat

[root@zetawiki ~]# netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
175.246.80.0    *               255.255.255.0   U         0 0          0 eth0
169.254.0.0     *               255.255.0.0     U         0 0          0 eth0
default         175.246.80.1    0.0.0.0         UG        0 0          0 eth0
[root@zetawiki ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
175.246.80.0    *               255.255.255.0   U         0 0          0 eth0
169.254.0.0     *               255.255.0.0     U         0 0          0 eth0
0.0.0.0         175.246.80.1    0.0.0.0         UG        0 0          0 eth0

3 방법 3: ip

[root@zetawiki ~]# ip route list
175.246.80.0/24 dev eth0  proto kernel  scope link  src 175.246.80.11 
169.254.0.0/16 dev eth0  scope link 
default via 175.246.80.1 dev eth0

4 같이 보기