在DOS下查看网络连接的命令

最好详细些

@echo off
title 网络参数
call :select "ip address" "ip"
call :select "subnet mask" "mask"
call :select "Physical Address" "mac"
call :select "Default Gateway" "gateway"
call :select "DNS Servers" "dns"
call :select "Description" "netcard"
echo 实际 地址:%mac%
echo I P 地址:%ip%
echo 子网 掩码:%mask%
echo 默认 网关:%gateway%
echo DNS服务器:%dns%
echo 网卡 信息:%netcard%
pause>nul
goto :eof
:select
for /f "tokens=2 delims=:" %%i in ('ipconfig /all ^| findstr /i /c:%1') do if not "!%~2!" == "" set "%~2=%%i"
goto :eof
_______________________上面是批处理代码______________________________

在DOS下查看网络连接信息,直接输入 ipconfig
需要测试网络连接质量,输入 ping 需要连接的地址
温馨提示:内容为网友见解,仅供参考
第1个回答  2010-06-05
ping
相似回答
大家正在搜