分享:
如果想要觀看IP參數等網路設定,指令的用法還是需了解下才好。
以下是個人常用的網路指令
ping
![ping ping](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f798b9071.jpg&width=532&height=484)
![ping2 ping2](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f79c8e9fb.jpg&width=644&height=287)
ipconfig /all
![ipconfig-all ipconfig-all](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f7a002138.jpg&width=482&height=484)
ipconfig /release ipconfig /renew
![ipconfig-release-renew ipconfig-release-renew](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f7a3d64b2.jpg&width=644&height=464)
ipconfig /flushdns
![ipconfig-flushdns ipconfig-flushdns](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f7a6598ff.jpg&width=644&height=173)
netstat -a
SYN_SENT:連線初始時,發送封包的狀態。
TIME_WAIT:等候對方回應的狀態。
ESTABLISHED:連線已建立完成的狀態。
在這些欄位中要特別檢視的是
『Local Address』欄位內的 port number 以及『State』欄位的 SYN_SENT 這個狀態。
若出現大量的連線,port number 呈現連續性(正常的話應為隨機性,不至於出現大量的連續性,除非整個網路只有一部主機連線),並且 State持續為 SYN_SENT 的狀態時,則可大約判定網路連線是處於異常狀態。
netstat -n
通常我比較習慣用 netstat -an 的結合
![netstat -n netstat -n](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f7b166295.jpg&width=602&height=484)
netstat -r
![netstat -r netstat -r](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f7b70a94f.jpg&width=644&height=417)
tracert
![tracert tracert](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f7bc8aae5.jpg&width=612&height=484)
nslookup
![nslookup nslookup](https://imageproxy.pixnet.cc/imgproxy?url=https://pic.pimg.tw/neo2124/4a03f7c3816e6.jpg&width=672&height=675)