Jump to content

Bat Dosyası Ile Varsayılan Ağ Geçidini Değiştirmek


hdr...
 Share

Recommended Posts

Bence şöylede olabilir ;


[color=#006666]@echo[/color][color=#000000] off
echo [/color][color=#800080]Ağ geçidiniz değiştirmek üzeresiniz devam etmek istiyorsanız;[/color][color=#000000]
pause
echo [/color][color=#660066]Eski[/color][color=#000000] [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Siliniyor[/color]
[color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]flushdns
ipconfig [/color][color=#666600]/[/color][color=#000000]release
echo [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Adresiniz[/color][color=#000000] [/color][color=#660066]Yenileniyor[/color]
[color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]renew
echo [/color][color=#800080]Ip Adresiniz Yenilendi...[/color][color=#000000]
pause
[/color][color=#000088]exit[/color]

Link to comment
Share on other sites

  • 2 hafta sonra ...

[quote name='MAKINCI' timestamp='1348862883' post='1244208']
[b]Yanlış anlamadıysam bunu soruyorsun, not defterine yaz filanca.bat olarak kaydet...[/b]

[CODE]
@echo off
echo Eski Ip Siliniyor
ipconfig /flushdns
ipconfig /release
echo Ip Adresiniz Yenileniyor
ipconfig /renew
exit
[/CODE]
[/quote]
[quote name='HalilYanar' timestamp='1348863766' post='1244210']
Bence şöylede olabilir ;


[color=#006666]@echo[/color][color=#000000] off
echo [/color][color=#800080]Ağ geçidiniz değiştirmek üzeresiniz devam etmek istiyorsanız;[/color]
[color=#000000]pause
echo [/color][color=#660066]Eski[/color][color=#000000] [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Siliniyor[/color]
[color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]flushdns
ipconfig [/color][color=#666600]/[/color][color=#000000]release
echo [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Adresiniz[/color][color=#000000] [/color][color=#660066]Yenileniyor[/color]
[color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]renew
echo [/color][color=#800080]Ip Adresiniz Yenilendi...[/color]
[color=#000000]pause[/color]
[color=#000088]exit[/color]
[/quote]

ben varsayılan ağ gecidini el ile bat dosyasına girmek istiyorum.
yani bat dosyasını kullandığımda benim belirlediğim ağa geçsin istiyorum.

Link to comment
Share on other sites

netsh interface ip set address name="a" static 192.168.1.12 255.255.255.0 192.168.1.100 1

aynen bu şekilde değiştiriyor bunu bat dosyası olarak kaydet ve kullan name kısmı ağ geçidi ismi olması lazım
192.168.1.12 makine ip adresi
255............... netmask
192.168.1.100 ağ geçidi adresi istediğin ağ geçidi hangisi ise onu yap
sondaki 1 kodun çalışması için geçerli olan sayı idi yanlış hatırlamıyorsam
kolay gelsin

Link to comment
Share on other sites

[font="'Segoe UI"][size="2"][color="#000000"]Dos ekranından ağ bağdaştırıcı bilgisi girme[/color][/size][/font]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]netsh interface ip set address name="[/size][/font][/color]Yerel Ağ Bağlantısı[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]" static 192.168.0.10 255.255.255.0 192.168.0.1 1[/size][/font][/color]
Yerel Ağ Bağlantısı[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3] = Ağ bağdaştırıcın ismi[/size][/font][/color]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]192.168.0.10 = Almak istediğin ip[/size][/font][/color]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]255.255.255.0 = Alt ağ maskesi[/size][/font][/color]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]192.168.0.1 = Ağ geçidin[/size][/font][/color]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]sondaki 1 = metric değeri (öncelik)[/size][/font][/color]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]DNS değiştirme[/size][/font][/color]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]1.dns adresini değişme[/size][/font][/color]
[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]netsh interface ip set dns name="[/size][/font][/color]Yerel Ağ Bağlantısı[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]" static 208.67.222.222[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]
208.67.222.222 ==> girmek isteğin dns[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]
2. dns adresini değişme[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]
netsh interface ip add dns name="Yerel Ağ Bağlantısı" 208.67.220.220 index=2[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]
bunlardan sonra [font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]ipconfig [/background][/size][/font][color=#666600][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]/[/background][/size][/font][/color][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]flushdns yapman gerekli[/background][/size][/font][/size][/font][/color]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...