首页 > Web开发 > 详细

netstat和lsof查看网络状态

时间:2018-04-07 12:08:53      阅读:287      评论:0      收藏:0      [点我收藏+]

netstatlsof都是linux下的工具,可以用于查看系统的网络状态。

netstat

-i 显示接口表,也就是eth0,wlan0这些
-r 显示路由表,和命令$route显示的一样
-g 显示组播

  • $netstat -r
    显示路由表,Flag的意思如下

    A Receive all multicast at this interface.
    B OK broadcast.
    D Debugging ON. 
    M Promiscuous Mode.
    O No ARP at this interface.
    P P2P connection at this interface. 
    R Interface is running. 
    U Interface is up. 
    G Not a direct entry.

netstat和lsof查看网络状态

原文:https://www.cnblogs.com/xcw0754/p/8732538.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!