Windows网络常用命令
命令 | 描述 |
---|---|
ipconfig /all | 详细的IP配置信息 |
ipconfig /displaydns | 显示本地DNS缓存 |
netstat -ano | 显示开放的端口(连接) |
netstat -anop tcp 1 | netstat循环 |
netstat -an |findstr LISTENING | 显示LISTENING状态的端口 |
route print | 路由表 |
arp -a | arp表 |
nslookup | 域名信息收集 |
tftp -I < ip> GET < remotefile> | TFTP文件传输 |
netsh wlan show profiles | 显示无线网络的信息 |
netsh wlan export profile folder=. key=clear | 将无线密码明文显示出来 |
netsh interface ip show interfaces | 列出interface IDs |
netsh interface ip set address local static < ip> < nmask> < gw> < ID> | 设置静态IP |
netsh interface ip set dns local static < ip> | 设置DNS服务器 |
netsh interface ip set address local dhcp | 设置interface使用dhcp服务 |