@echo off echo. echo IP cim beallitasa a "LAN"-ra (a "Helyi kapcsolat"-ot "LAN"-ra kell atnevezni) echo. echo Ird be a kivant szamot es enter echo. echo. echo IP address configuration for "LAN" by Gyorgy Dolanszky ( www.dola.hu ) echo Rename the "Local Area Connection" to "LAN" echo. echo Connect the ethernet cable then echo Type a number and press enter echo. setlocal set OK=N :start REM Rename the xxx yyy zzz as you like, then change the settings at :2 :3 :4... set /p choice= 1-DHCP 2.xxx 3.yyy 4-zzz 9-Kilepes/Exit if /i [%choice%]==[vege] endlocal&goto end if [%choice%]==[] goto again if [%choice%]==[1] goto 1 if [%choice%]==[2] goto 2 if [%choice%]==[3] goto 3 if [%choice%]==[4] goto 4 if [%choice%]==[5] goto 5 if [%choice%]==[6] goto 6 if [%choice%]==[7] goto 7 if [%choice%]==[9] goto endend set /p xxx=Hibas bevitel, press any key to exit. endlocal goto endend :1 echo. echo DHCP Kis turelmet... / Plase wait... netsh int ip set addr LAN dhcp netsh int ip set dns LAN dhcp netsh int ip set wins LAN dhcp goto end echo. echo Internet Explorer proxy kikapcsolasa. echo Ha fut az IE, be kell zarni es ujra elinditani. echo. echo Switch OFF the proxy for Internet Explorer echo If IE runs, close and reopen it. IEproxyKI.vbs :2 echo. echo xxx: FIX IP, DNS Kis turelmet... / Plase wait... netsh int ip set addr LAN static 10.0.2.xxx 255.255.0.0 10.0.0.11 1 netsh int ip set dns LAN static 10.0.1.1 REM netsh int ip set wins LAN static 10.0.1.1 REM DNS-utótag ???? goto end echo. echo Internet Explorer proxy bekapcsolasa echo Ha fut az IE, be kell zarni es ujra elinditani. echo. echo Switch ON the proxy for Internet Explorer echo If IE runs, close and reopen it. echo. IEproxy_set-Csak_egyszer_kell.vbs IEproxyBE.vbs :3 echo. echo yyy: FIX IP, DNS Kis turelmet... / Plase wait... netsh int ip set addr LAN static 10.0.2.xxx 255.255.0.0 10.0.0.1 1 netsh int ip set dns LAN static 10.0.1.1 goto end echo. echo Internet Explorer proxy bekapcsolasa echo Ha fut az IE, be kell zarni es ujra elinditani. echo. echo Switch ON the proxy for Internet Explorer echo If IE runs, close and reopen it. echo. IEproxy_set-Csak_egyszer_kell.vbs IEproxyBE.vbs :4 echo. echo zzz FIX IP, DNS Kis turelmet... / Plase wait... netsh int ip set addr LAN static 192.168.1.111 255.255.255.0 192.168.1.1 1 netsh int ip set dns LAN static 192.168.1.10 goto end :5 goto end :6 goto end :7 goto end ------------------------------------------------------------------------------ Notes / Megjegyzések: Rename the "Local Area Connection" to "LAN". A "Helyi kapcsolat"-ot átnevezni "LAN"-ra kell átnevezni. Add secondary address: Második, harmadik cím hozzáadása: add dns name="Local Area Connection" addr=192.168.1.218 index=1 add dns name="Local Area Connection" addr=202.77.0.1 index=2 netsh int ip set dns LAN static 84.2.44.1 netsh int ip add dns LAN 84.2.46.1 2 set wins name="Local Area Connection" source=static addr=192.168.11.21 add wins name="Local Area Connection" addr=192.168.13.21 Examples Set LAN connection to DHCP NETSH set address name="Local Area Connection" source=dhcp Set LAN connection to the static IP address 192.168.5.99 NETSH set address name="Helyi kapcsolat" source=static addr=192.168.5.99 mask=255.255.255.0 gateway=192.168.5.1 Show IP configuration: NETSH interface ip show config Show DNS settings: (DNS Suffix Search List) netsh interface ip show dns netsh dhcp server set dnscredentials Connect to port NETSH diag connect iphost www.ss64.com 80 Export IP settings to file NETSH -c interface dump > netsh.txt Import IP settings from a file NETSH -f netsh.txt http://www.ss64.com/nt/netsh.html http://www.asp101.com/articles/stanley/nicsettings/default.asp little utility is written in C#: http://www.thecodeproject.com/csharp/OazSwitchNetConfig.asp http://www.experts-exchange.com Microsoft sites: http://support.microsoft.com/?kbid=257748 http://support.microsoft.com/kb/275553 http://support.microsoft.com/default.aspx?scid=kb;en-us;823191 http://www.microsoft.com/technet/network/evaluate/technol/tcpipfund/tcpipfund_ch09.mspx http://technet2.microsoft.com/windowsserver/en/library/b2c92af5-425a-4c0b-8604-7a8c4ac497e01033.mspx?mfr=true "SET" and "ADD" commands: http://support.microsoft.com/default.aspx?scid=kb;en-us;818835 Dolánszky György www.dola.hu ------------------------------------------------------------------------------ :end echo Varj 5 masodpercet / Wait 5 sec... @ping 127.0.0.1 -n 1 -w 1000 > nul @ping 127.0.0.1 -n 5 -w 1000 > nul echo. ipconfig /all pause :endend