kinglebron
Lt. Junior Grade
- Registriert
- März 2008
- Beiträge
- 491
Erstmal ganz wichtig: Ich möchte nix bei Rapidshare oder so runterladen!!!
Das ganze beruht auf diesem Thread (als Anleitung)
Hi,
mein Problem: Ich möchte meine IP Adresse ändern
ISP: Kabel Deutschland
Modem: webstar scientific atlanta epx2203
Router: D-Link DI 524 Firmware Version: V3.12
System: Windows 7 64bit
Ich möchte die IP durch ein .bat Datei wechseln.
Ich habe schon 2 .bat Dateien erstellt, allerdings funktionieren beide nicht.
reconnect.bat: (XX = mein MAC)
Mein 2ter Versuch ist etwas anders aufgebaut:
boot.dat
data.txt: (XX = mein MAC)
zahl.txt:
Ich weiß jetzt nich so recht weiter....Irgendiwe klappt das alles nicht. Durchforste schon siet 3 Tagen das Internet, vielleicht könnt ihr mir ja helfen.
Gruß
kl
Das ganze beruht auf diesem Thread (als Anleitung)
Hi,
mein Problem: Ich möchte meine IP Adresse ändern
ISP: Kabel Deutschland
Modem: webstar scientific atlanta epx2203
Router: D-Link DI 524 Firmware Version: V3.12
System: Windows 7 64bit
Ich möchte die IP durch ein .bat Datei wechseln.
Ich habe schon 2 .bat Dateien erstellt, allerdings funktionieren beide nicht.
reconnect.bat: (XX = mein MAC)
Code:
C:\Users\Lars\Desktop\reconnect\curl.exe "http://192.168.0.1/cgi-bin/logi" -d "rc=%40&PN=admin&PS=&rd=menu"
C:\Users\Lars\Desktop\reconnect\wget.exe "http://admin:@192.168.0.1/cgi-bin/prim?rc=%40prim&rf=&rd=x&Wt=0100&IM1=1500&lf=0037& ai=0&LH=&En=[COLOR="Red"]XX[/COLOR]-[COLOR="Red"]XX[/COLOR]-[COLOR="Red"]XX[/COLOR]-[COLOR="Red"]XX[/COLOR]-[COLOR="Red"]XX[/COLOR]-%zahl%&ID00=0.0.0.0&ID01=0.0.0.0&IM1=1500&DF0 1=x&DF00=x" --delete-after
C:\Users\Lars\Desktop\reconnect\wget.exe "http://admin:@192.168.0.1/cgi-bin/rebo?D=&ZT=1198710163421" --delete-after
C:\Users\Lars\Desktop\reconnect\wget.exe "http://admin:@192.168.0.1/x.htm?v0=@prim&v1=&v2=x&v3=0100&v4=1500&v5=0037&v6 =show" --delete-after
C:\Users\Lars\Desktop\reconnect\wget.exe "http://admin:@192.168.0.1/prim.htm?rc=_&rf=&ZT=1198710167359" --delete-after
Mein 2ter Versuch ist etwas anders aufgebaut:
boot.dat
Code:
FOR /F %%i IN (zahl.txt) DO set /a zahl=%%i
wget --post-data="BUTTON_INPUT=Restart Cable Modem" http://192.168.100.1/configdata.html --delete-after
wget --user=admin --password= --post-file=data.txt http://192.168.0.1/h_wan_dhcp.cgi --delete-after
set /a zahl=zahl+1
if %zahl%==51 set /a zahl=30
set dat=%zahl%.txt
echo %zahl% >zahl.txt
type %dat% >data.txt
@Echo "WARTEN bis Booten zu ende ist"
@Echo off
set /a warte=1
:count
rem echo %warte%
set /a warte=warte+1
if %Warte%==17000 goto ende
goto count
:ende
data.txt: (XX = mein MAC)
Code:
connType=0&host=DI-624%2B&mac1=[COLOR="Red"]XX[/COLOR]&mac2=[COLOR="Red"]XX[/COLOR]&mac3=[COLOR="Red"]XX[/COLOR]&mac4=[COLOR="Red"]XX[/COLOR]&mac5=[COLOR="Red"]XX[/COLOR]&mac6=30&dns1=0.0.0.0&dns2=0.0.0.0&mtu=1500
zahl.txt:
Code:
30
Ich weiß jetzt nich so recht weiter....Irgendiwe klappt das alles nicht. Durchforste schon siet 3 Tagen das Internet, vielleicht könnt ihr mir ja helfen.
Gruß
kl