如下图作者: zerostudy 时间: 2006-11-11 05:43 netsh作者: ccwan 时间: 2006-11-11 05:52 @echo off
netsh interface ip set address name="本地连接" source=static addr=192.168.1.3 mask=255.255.255.0
::设置本地连接的ip地址为:192.168.1.3,子网掩码为:255.255.255.0
netsh interface ip set address name="本地连接" gateway=192.168.1.1 gwmetric=1
::设置网关
netsh interface ip set dns name="本地连接" source=static addr=202.102.199.68 register=PRIMARY
::设置主dns
netsh interface ip add dns name="本地连接" addr=202.102.192.68
::设置备份dns
netsh interface ip set wins name="本地连接" source=static addr=none
::设置wins
[ Last edited by ccwan on 2006-11-11 at 05:53 AM ]作者: eech 时间: 2006-11-11 06:26 netsh -c interface ip set address name="本地连接" source=static addr=192.168.1.3 mask=255.255.255.0
netsh -c interface ip set address name="本地连接" gateway=192.168.1.1 gwmetric=0
netsh -c interface ip set dns name="本地连接" source=static addr=202.102.199.68 register=PRIMARY
netsh -c interface ip add dns name="本地连接" addr=202.102.192.68