rem 设置动态IP
netsh interface ip set address "本地连接" dhcp
netsh interface ip set dns "本地连接" dhcp
rem 增加两个地址
netsh interface ip set address "本地连接" static 192.168.0.114 255.255.255.0 192.168.0.1
netsh interface ip add address "本地连接" 192.168.2.2 255.255.255.192
rem 添加一个静态 DNS 服务器地址。
netsh interface ip add dnsservers "本地连接" 192.168.0.1
pause