全新安装 Solaris 10 update 9 时的 netstat

全新安装 Solaris 10 update 9 时的 netstat

我正在尝试解释以下输出

bash-3.00$ netstat -a

UDP: IPv4
   Local Address        Remote Address      State
-------------------- -------------------- ----------
      *.sunrpc                            Idle
      *.*                                 Unbound
      *.32771                             Idle

TCP: IPv4
   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q    State
-------------------- -------------------- ----- ------ ----- ------ -----------
      *.*                  *.*                0      0 49152      0 IDLE
      *.sunrpc             *.*                0      0 49152      0 LISTEN
      *.*                  *.*                0      0 49152      0 IDLE
localhost.5987             *.*                0      0 49152      0 LISTEN
localhost.898              *.*                0      0 49152      0 LISTEN
localhost.32771            *.*                0      0 49152      0 LISTEN
localhost.5988             *.*                0      0 49152      0 LISTEN
localhost.32772            *.*                0      0 49152      0 LISTEN
      *.ssh                *.*                0      0 49152      0 LISTEN
      *.32785              *.*                0      0 49152      0 BOUND
localhost.6788             *.*                0      0 49152      0 LISTEN
localhost.6789             *.*                0      0 49152      0 LISTEN
localhost.32782            *.*                0      0 49152      0 LISTEN
localhost.smtp             *.*                0      0 49152      0 LISTEN
localhost.submission       *.*                0      0 49152      0 LISTEN
server-host-name.ssh pc-host-name.51269   64868     51 49640      0 ESTABLISHED

TCP: IPv6
   Local Address                     Remote Address                 Swind Send-Q Rwind Recv-Q   State      If
--------------------------------- --------------------------------- ----- ------ ----- ------ ----------- -----
      *.*                               *.*                             0      0 49152      0 IDLE        
      *.ssh                             *.*                             0      0 49152      0 LISTEN      

SCTP:
        Local Address                   Remote Address          Swind  Send-Q Rwind  Recv-Q StrsI/O  State
------------------------------- ------------------------------- ------ ------ ------ ------ ------- -----------
0.0.0.0                         0.0.0.0                              0      0 102400      0  32/32  CLOSED

Active UNIX domain sockets
Address  Type          Vnode     Conn  Local Addr      Remote Addr
ffffffff84e25ab8 stream-ord ffffffff8569c740 00000000    /var/run/.inetd.uds 
bash-3.00$ 

我觉得我们有以下物品

  • UDP
    • IPv4
      • 打开端口sunrpc32771
      • 问题 1:什么是*.* Unbound
  • TCP
    • IPv4
      • 打开端口sunrpcssh
      • 10 个端口仅开放给localhost
      • ssh我的电脑打开的连接
      • 问题2:什么是*.32785 *.* 0 0 49152 0 BOUND
      • 问题 3:什么是*.* *.* 0 0 49152 0 IDLE?(出现两次)
    • IPv6
      • 打开端口ssh
      • 问题 3:什么是*.* *.* 0 0 49152 0 IDLE
  • 问题 4:什么是SCTP
  • 问题 5:什么是Active UNIX domain sockets

答案1

套接字可以处于各种状态(绑定到地址/端口、解除绑定、监听广播地址等)。以下文章深入介绍了它在 Solaris 中的工作原理。

http://www.itworld.com/swol-0202-insidesolaris

相关内容