标签:dns 网卡 ip配置 window nbsp address 信息 stat net
(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
标签:dns 网卡 ip配置 window nbsp address 信息 stat net
原文地址:https://www.cnblogs.com/mountain2011/p/9005047.html