Computer NetworksNETWORKS

IP Change By CMD and Bat file

Static IP
@echo
netsh interface ipv4 set address name=”Ethernet” static 192.168.1.20 255.255.255.0 192.168.1.1
netsh interface ipv4 set dns name=”Ethernet” static 8.8.8.8
netsh interface ipv4 add dns name=”Ethernet” 8.8.4.4 index=2

Dynamic Ip
@echo
netsh interface ipv4 set address name=”Ethernet” source=dhcp
netsh interface ipv4 set dns name=”Ethernet” source=dhcp

source

ipv4

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.

Leave a Reply

Your email address will not be published. Required fields are marked *