close

1. ping:檢查你的網路環境狀況,或是確認某電腦(主機)是否有回應,運作方式是丟出一個ping的封包訊息到網路上,若該主機有接收到就會回應。


C:\>ping 168.95.1.1


Pinging 168.95.1.1 with 32 bytes of data:


Reply from 168.95.1.1: bytes=32 time=74ms TTL=248
Reply from 168.95.1.1: bytes=32 time=56ms TTL=248
Reply from 168.95.1.1: bytes=32 time=55ms TTL=248
Reply from 168.95.1.1: bytes=32 time=57ms TTL=248


Ping statistics for 168.95.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 55ms, Maximum = 74ms, Average = 60ms


===================================================
2. tracert:用於找出有發出訊息的電腦,到要tracert的電腦之間連線的路徑,並可根據回應時間來判斷哪一段時間花的比較多,進而找出連線問題。


C:\>tracert 168.95.1.1


Tracing route to dns.hinet.net [168.95.1.1]
over a maximum of 30 hops:


1 68 ms 51 ms 53 ms 61-230-48-254.dynamic.hinet.net [61.230.48.254]
------------------->因有線字數,中間省略
7 57 ms 57 ms 55 ms dns.hinet.net [168.95.1.1]


Trace complete.



===================================================
3. netstat:可以查看電腦目前的連線狀態,包括主機IP、Port等


C:\>netstat -na


Active Connections


Proto Local Address Foreign Address State
UDP 0.0.0.0:1026 *:*
UDP 0.0.0.0:4500 *:*UDP 172.16.100.252:123 *:*
UDP 172.16.100.252:137 *:*
UDP 172.16.100.252:138 *:*
UDP 172.16.100.252:1900 *:*
C:\>


===================================================
4. ipocnfig:最簡單功能就是看目前網卡設定
C:\>ipconfig


Windows IP Configuration


Ethernet adapter 區域連線:


Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.16.100.252
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.100.253


補充
 
PING是丟封包到網路上去問,被PING的主機是否在線上,因此這PING封包會傳送給同一個區網中的每壹台機器,有以下兩種情形:
1. 當其他主機收到這訊息時,比對不是找自己這台電腦,就會將封包丟棄。
2. 當被PING的主機收到訊息,比對是找自己這台電腦,就會回應。



 

arrow
arrow
    全站熱搜

    賢 發表在 痞客邦 留言(0) 人氣()