同一台电脑多个金税盘(同一台电脑多个ip)
大家好!今天讓小編來大家介紹下關于同一臺電腦多個金稅盤(同一臺電腦多個ip)的問題,以下是小編對此問題的歸納整理,讓我們一起來看看吧。
您好,今天芳芳來為大家解答以上的問題。同一臺電腦多個金稅盤,同一臺電腦多個ip相信很多小伙伴還不知道,現在讓我們一起來看看吧!
1、給你個批處理,自己在里面修改下,支持1個自動獲取。
2、3個手動填寫的,我就一直用著:@echo offmode con cols=80 lines=10&color 0dtitle IP 切換設置:stclsecho.echo 1.(自動獲取) 2.(手動1) 3.(手動2)4.(手動3)echo.set /p ip=請輸入:echo.if %ip%==1 goto zdif %ip%==2 goto sd1if %ip%==3 goto sd2if %ip%==4 goto sd3echo|set /p a=輸入錯誤,請重新輸入...&pause>nul&&goto st:zdnetsh interface ip set address name=本地連接 source=dhcpnetsh interface ip set dns name=本地連接 source=dhcpecho 設置完畢...ping n 2 127.1>nulexit:sd1netsh interface ip set address "本地連接" static (此處填IP 子網掩碼 和網關 用空格隔開)netsh interface ip set DNS "本地連接" static (首選NDS)netsh interface ip add dns "本地連接" (備用NDS)index=2if exist %SystemRoot%setupapi.log del /q %SystemRoot%setupapi.logecho 設置完畢...exit:sd2netsh interface ip set address "本地連接" static (此處填IP 子網掩碼 和網關 用空格隔開)netsh interface ip set DNS "本地連接" static (首選NDS)netsh interface ip add dns "本地連接" (備用NDS)index=2if exist %SystemRoot%setupapi.log del /q %SystemRoot%setupapi.logecho 設置完畢...exit:sd3netsh interface ip set address "本地連接" static (此處填IP 子網掩碼 和網關 用空格隔開)netsh interface ip set DNS "本地連接" static (首選NDS)netsh interface ip add dns "本地連接" (備用NDS)index=2if exist %SystemRoot%setupapi.log del /q %SystemRoot%setupapi.logecho 設置完畢...exit:errecho.echo 手動設置失敗echo|set /p a=請檢查一下IP輸寫是否正確...pause>nulgoto st 如果還要多的IP的話。
3、可以在下面自己再加:這段:if %ip%==1 goto zdif %ip%==2 goto sd1if %ip%==3 goto sd2if %ip%==4 goto sd3if %ip%==5 goto sd4if %ip%==6 goto sd5……但是下面的有相應的段,這段添加在:err 段前面::sd4(前面的數字4,隨著你的添加改變 )netsh interface ip set address "本地連接" static (此處填IP 子網掩碼 和網關 用空格隔開)netsh interface ip set DNS "本地連接" static (首選NDS)netsh interface ip add dns "本地連接" (備用NDS)index=2if exist %SystemRoot%setupapi.log del /q %SystemRoot%setupapi.logecho 設置完畢...exit。
本文就為大家分享到這里,希望小伙伴們會喜歡。
以上就是小編對于同一臺電腦多個金稅盤(同一臺電腦多個ip)問題和相關問題的解答了,同一臺電腦多個金稅盤(同一臺電腦多個ip)的問題希望對你有用!
總結
以上是生活随笔為你收集整理的同一台电脑多个金税盘(同一台电脑多个ip)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 角瓜馅饺子怎么做好吃呢?
- 下一篇: TCL也搞屏下镜头手机!机身正面很美背面