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

5번째 줄: 5번째 줄:


<source lang='cli'>
<source lang='cli'>
[root@zetawiki ~]# 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
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>
<source lang='cli'>
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
</source>
</source>



2015년 12월 18일 (금) 14:14 판

1 개요

리눅스 route
/sbin/route
  • 리눅스에서 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

2 같이 보기

3 참고 자료