看错了
cmd↙
c:\>netsh↙
netsh>interface↙
interface>ip↙
interface ip>set address name static addr mask gateway gwmetric
"name "为本地网络接口的名称,用show addr可查看当前配置,2000中的网络接口名为"本地连接"
"gwmetric"代表默认网关的跃点数,一般为"1"
for example: set address "本地连接" static 192.168.50.34 255.255.255.0 192.168.50.72 1
动态分配IP: set address "本地连接" source=dhcp
指定DNS,使用set dns命令即可