====== Linux 網路相關整理 ====== ===== 看到 Liston Port 要確認是哪個程式在執行? ===== 假設看到主機有程式在 Liston 732 lsof -i :732 ++++結果| [root@x206-web bin]# lsof -i :732 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME rpc.statd 2246 rpcuser 7u IPv4 7749 TCP *:732 (LISTEN) ++++ 或是 netstat -anp | grep ':732' ++++結果| [root@x206-web bin]# netstat -anp | grep ':732' tcp 0 0 0.0.0.0:732 0.0.0.0:* LISTEN 2246/rpc.statd ++++ ===== 確認現在網卡的連線速度 ===== 因為無法遠端看到網卡燈號是綠燈或橘燈. ethtool eth0 | grep Speed ++++結果| [root@HP-ML10G9 ~]# ethtool eth0 | grep Speed Speed: 1000Mb/s ++++ 也可以使用以下語法 cat /sys/class/net/eth0/speed ++++結果| [root@asus-ts100e7 ~]# cat /sys/class/net/eth0/speed 1000 ++++ ===== 參考資料 ===== * http://forum.soft32.com/linux/Port-732-ftopict348880.html * http://www.cyberciti.biz/faq/howto-setup-linux-lan-card-find-out-full-duplex-half-speed-or-mode/ {{tag>network tips}}