2.C:\Documents and Settings\Administrator>netsh
3.netsh>int ip
4.netsh interface ip>dump
# 接口 IP 配置
# ----------------------------------
5.pushd interface ip //以下是静态ip地址的配置
set dns name="本地连接" source=static addr=xxx.xxx.xxx.xxx register=PRIMARY
add dns name="本地连接" addr=xxx.xxx.xxx.xxx index=2
set wins name="本地连接" source=static addr=none
set dns name="本地连接" source=dhcp register=PRIMARY
set wins name="本地连接" source=dhcp
popd
# 接口 IP 配置结束
netsh int ip dump >d:\staticIP.txt
如果要导入配置那直接用netsh -f d:\staticIP.txt