IP地址的查看
- Windows:
ipconfig -
网络连通性测试
ping命令
> ping 192.168.178.1Pinging 192.168.178.1 with 32 bytes of data:Reply from 192.168.178.1: bytes=32 time=2ms TTL=64Reply from 192.168.178.1: bytes=32 time=3ms TTL=64Reply from 192.168.178.1: bytes=32 time=3ms TTL=64Reply from 192.168.178.1: bytes=32 time=3ms TTL=64Ping statistics for 192.168.178.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 2ms, Maximum = 3ms, Average = 2ms
telnet命令 测试端口的连通性
~ telnet www.baidu.com 80Trying 104.193.88.123...Connected to www.wshifen.com.Escape character is '^]'.HTTP/1.1 400 Bad RequestConnection closed by foreign host.
traceroute 路径探测跟踪
Linux下使用
tracepath~ tracepath www.baidu.com1?: [LOCALHOST] pmtu 15001: DESKTOP-FQ0EO8J 0.430ms1: DESKTOP-FQ0EO8J 0.188ms2: 192.168.178.1 3.371ms3: no reply4: gv-rc0052-cr102-et91-251.core.as33915.net 13.970ms5: asd-tr0021-cr101-be156-10.core.as9143.net 19.190ms6: nl-ams04a-ri3-ae51-0.core.as9143.net 213.589ms7: 63.218.65.33 16.887ms8: HundredGE0-6-0-0.br04.sjo01.pccwbtn.net 176.099ms asymm 109: HundredGE0-6-0-0.br04.sjo01.pccwbtn.net 173.399ms asymm 1010: 63-219-23-98.static.pccwglobal.net 177.337ms asymm 1111: 104.193.88.13 178.197ms asymm 1212: no reply13: no reply14: no reply15: no reply16: no reply17: no reply18: no reply19: no reply20: no reply21: no reply22: no reply23: no reply24: no reply25: no reply26: no reply27: no reply28: no reply29: no reply30: no replyToo many hops: pmtu 1500Resume: pmtu 1500
Windows下使用
TRACERT.EXE> TRACERT.EXE www.baidu.comTracing route to www.wshifen.com [104.193.88.123]over a maximum of 30 hops:1 4 ms 3 ms 3 ms 192.168.178.12 * * * Request timed out.3 21 ms 18 ms 19 ms gv-rc0052-cr102-et91-251.core.as33915.net [213.51.197.37]4 14 ms 13 ms 12 ms asd-tr0021-cr101-be156-10.core.as9143.net [213.51.158.2]5 23 ms 19 ms 14 ms nl-ams04a-ri3-ae51-0.core.as9143.net [213.51.64.194]6 15 ms 14 ms 13 ms 63.218.65.337 172 ms 169 ms 167 ms HundredGE0-6-0-0.br04.sjo01.pccwbtn.net [63.223.60.58]8 167 ms 168 ms 168 ms HundredGE0-6-0-0.br04.sjo01.pccwbtn.net [63.223.60.58]9 168 ms 173 ms 167 ms 63-219-23-98.static.pccwglobal.net [63.219.23.98]10 172 ms 170 ms 171 ms
curl命令 请求web服务
参看:curl 的用法指南
