动作 / Windows / Linux
| 动作 | Windows | Linux |
|---|---|---|
| 接口与地址 | ipconfig /all | ip -br a / ifconfig |
| 路由表 | route print / Get-NetRoute | ip route |
| 连通测试 | ping -t / Test-Connection | ping -c |
| 路径追踪 | tracert / pathping | traceroute / mtr |
| DNS 查询 | nslookup / Resolve-DnsName | dig / host |
| DNS 缓存 | ipconfig /flushdns | resolvectl flush-caches |
| 端口连接 | netstat -ano | ss -tanp / netstat -tanp |
| 端口测试 | Test-NetConnection -Port | nc -zv |
| ARP 表 | arp -a | ip neigh / arp -a |
| 防火墙 | netsh advfirewall / Get-NetFirewallRule | iptables / nft / firewalld / ufw |
| 抓包 | pktmon / netsh trace | tcpdump / tshark |
| 网卡统计 | Get-NetAdapterStatistics | ip -s link / ethtool -S |
Windows 侧快速打点
Windows 侧快速打点
ipconfig /all; route print -4
test-connection 8.8.8.8; test-netconnection 10.0.0.5 -port 443
resolve-dnsname www.example.com -server 8.8.8.8Windows 10/11 与 Server 2019+ 自带 curl.exe 与 Test-NetConnection,排障时不必找第三方工具。