windows 网卡配置的设置命令

(1)设置为DHCP自动分配

netsh interface ip set address "本地连接"  dhcp

netsh interface ip set dns "本地连接"  dhcp

(2) 设置为静态IP信息

netsh interface ip set address "本地连接" static  10.10.2.1 255.255.255.0 10.10.2.254

netsh interface ip set dns "本地连接" static 114.114.114.114

netsh interface ip add dns "本地连接" 8.8.8.8 

(3)查看当前的IP配置信息

netsh interface ip show address/config/dns

(4)查看windows的网络配置文件

netsh -c interface dump 

猜你喜欢

转载自www.cnblogs.com/mountain2011/p/9005047.html