日期:2014-05-17 浏览次数:20814 次
@echo off set NIC="本地连接" set IP="192.168.10.157" set MASK="255.255.255.0" set GW="192.168.10.1" set DNS="202.101.172.3" set GM=1 @echo on netsh interface ip set address name=%NIC% source=static addr=%IP% mask=%MASK% gateway=%GW% gwmetric=%GM% netsh interface ip set dns name=%NIC% source=static addr %DNS% register=PRIMARY