linux如何查看路由表

linux如何查看路由表

路由表内容说明:
查看路由
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.57.66.200 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Destination:目标网络或主机。
Gateway:网关地址。
Genmask:目标网络的网络掩码。""255.255.255.255""表示一个主机。""0.0.0.0""表示网关。
Flags:标记。
U、路由被启用。
H、目标是一个主机
G、使用网关。
更多的这方面的知识欢迎查看《Linux就该这么学》这本金典书籍。
温馨提示:内容为网友见解,仅供参考
第1个回答  2016-09-28
route -n
相似回答