一、配置一个固定IP范例:
netsh interface ip set address name="本地连接" source=static addr=192.168.8.201 mask=255.255.255.0
gateway=192.168.8.50
netsh interface ip set dns name="本地连接" source=static addr=
二、配置多个IP范例:
netsh interface ip set address name="本地连接" source=static addr=199.188.177.242 mask=255.255.255.0 gateway=
netsh interface ip add address name="本地连接" addr=192.168.1.66 mask=255.255.255.0
netsh interface ip set dns name="本地连接" source=static addr=
三、配置自动获取IP范例:
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip set dns name="本地连接" source=dhcp
网友评论