ルーティング情報を表示する

ルーティング情報を表示するには、route コマンドのオプション -n を使用します。

-n は、出力をIPアドレスのみに抑制するオプションとなります。

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
133.xxx.xxx.xxx 0.0.0.0         255.255.255.xxx U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.xxx.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth1
169.xxx.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth0
0.0.0.0         133.242.125.xxx 0.0.0.0         UG    0      0        0 eth0

 

[対象]
CentOS 5.x
CentOS 6.x