diandianrong 发表于 2007-06-04 16:02

浅析路由表 netstat

# netstat -rn

参数解释:

r :Show the routingtables
n :Show network addressesasnumbers
Routing Table: IPv4
Destination         Gateway         FlagsRef   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0          192.168.0.61         U         1      7pcn0
default            192.168.0.2          UG      1      2
127.0.0.1            127.0.0.1            UH      7    305lo0

环境:Solaris 10 X86平台,故网卡名称是Pcn0

Routing Table: IPv4
Destination         Gateway         FlagsRef   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0          192.168.0.101      U         1   24hme0
224.0.0.0            192.168.0.101      U         1      0hme0
default            192.168.0.2          UG      1      8
127.0.0.1            127.0.0.1            UH      614964lo0

环境:Solaris 10 sparc 平台,网卡是sun公司自己生产的
#
Destination 目标网络或主机
Gateway 转发数据包的主机
Flags 这条路由的状态,这个参数有这样几个选项:

U 端口处于激活状态(up)
H 目标是个主机,而不是网段
Ref 同一个网络接口地址拥有的路由条目数量
Use 通过这条路由的包数量,对于localhost来说,这个数字代表 所以接收的包数量比较大
Interface 路由的网络接口名称


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26090/showart_314249.html
页: [1]
查看完整版本: 浅析路由表 netstat