@1.设置动态IP(DHCP自动获取IP)
netsh interface ip set address "本地连接" dhcp
@2.设置指定的IP,此处以设置本机IP为10.16.15.226,子网掩码为255.255.255.0,网关IP为10.16.15.1为例
netsh interface ip set address "本地连接" static 10.16.15.226 255.255.255.0 10.16.15.1
@3.设置动态DNS(DHCP自动获取DNS)
netsh interface ip set dns "本地连接" dhcp
@4.设置指定的DNS,此处以设置DNS为210.45.240.10为例
netsh interface ip set dns "本地连接" 210.45.240.10