辦公網(wǎng)絡(luò)和家里的網(wǎng)絡(luò)不一樣 總是要換來(lái)?yè)Q去,弄了一個(gè)腳本,雙擊運(yùn)行就可以了,win7 要用超級(jí)管理員去運(yùn)行
netsh interface ip set address "無(wú)線網(wǎng)絡(luò)連接" static 192.168.137.111 255.255.255.0 192.168.137.1
echo 設(shè)置ip 默認(rèn)子網(wǎng) 默認(rèn)網(wǎng)關(guān) 結(jié)束
echo 設(shè)置主dns ip 開始
netsh interface ip set dns "本地連接" static 192.168.4.4
echo 設(shè)置主dns ip 結(jié)束
echo 設(shè)置副dns ip 開始
netsh interface ip add dns "本地連接" 192.168.5.5
echo 設(shè)置副dns ip 結(jié)束
echo 先禁用網(wǎng)卡
netsh interface set interface "本地連接" disable
echo 使用reg add命令修改物理地址(D4BED9989936 mac地址)
reg add HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Class/{4D36E972-E325-11CE-BFC1-08002BE10318}/0011 /v NetworkAddress /d D4BED9989936 /f
echo 再啟用網(wǎng)卡
netsh interface set interface "本地連接" enable
pause
(責(zé)任編輯:VEVB)