Bat ile İp değiştirmek
- Mithat ERSOYLU
- 25 Eyl 2022
- 1 dakikada okunur
Güncelleme tarihi: 21 Eki 2022
Ethernet ( Kablolu ) için aşağıdaki kod ile .bat hazırlayın.
@echo off
netsh interface IPv4 set Address name="Ethernet" static 192.168.2.30 255.255.255.0 192.168.2.2
@echo off
netsh interface IPv4 set dns name="Ethernet" source = static addr = 192.168.2.2
netsh interface IPv4 add dns name = "Ethernet" addr = 192.168.2.1
Not: " İp adresleri temsilidir. Kendi ağınızdaki İplere göre düzenleme yapmalısınız. "
"Ethernet" bu alana kendi Ağ bağlantınızın adını yazın.
Genelde kabloluda "Ethernet" kablosuzda "Wi-Fi" yazar kontrol edin.
Wi-Fi ( Kablosuz ) için aşağıdaki kod ile .bat hazırlayın.
rem Reset network settings for DHCP
netsh interface ip set address name = "Wi-Fi" source = dhcp
netsh interface ip set dns name = "Wi-Fi" source = dhcp
netsh interface ip set wins name = "Wi-Fi" source = dhcp
netsh interface ip show config

Comments