设置ip为固定ip:
netsh interface ip set address "本地连接" static 192.168.0.233 255.255.255.0 192.168.0.1 auto
netsh interface ip set dns "本地连接" 202.106.0.20
netsh interface ip add dns "本地连接" 219.141.136.10 2
设置ip为动态ip:
netsh interface ip set address "本地连接" dhcp
netsh interface ip set dns "本地连接" dhcp
注:
设置ip为固定ip命令的意思是:
将“本地连接”的 ip地址设置成 192.168.0.233 子网掩码是 255.255.255.0 网关设置成192.168.0.1 并且自动跃点数
将“本地连接”的DNS设置成 202.102.224.68