2008年2月26日 星期二

路由表

cora@host[/tmp]>#route  <-看路由的資訊
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.30.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.30.254 0.0.0.0 UG 0 0 0 eth1
cora@host[/tmp]>#route -n <-以IP方式顯示路由
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.30.254 0.0.0.0 UG 0 0 0 eth1
cora@host[/tmp]>#netstat -r <-看路由的資訊
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.30.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.30.254 0.0.0.0 UG 0 0 0 eth1
cora@host[/tmp]>#

沒有留言: