IPv4 地址:
Windows: ipconfig
Linux/macOS: ip addr show
或 ifconfig
IPv6 地址:
Windows: ipconfig /all
Linux/macOS: ip addr show
或 ifconfig
Ping:
使用 ping
命令检查主机是否可达,并测试网络延迟。
Traceroute:
使用 tracert
(Windows) 或 traceroute
(Linux/macOS) 命令跟踪数据包从源头到目的地的路由路径。
Netstat:
使用 netstat
命令检查网络连接、端口和协议的使用情况。