Search This Blog

Sunday, 15 January 2017

To change IP address using Command Line interface Windows

To change IP address using Command Line interface in Windows 7 use the following example ,



netsh int ipv4 set address name="LAN" address=192.168.14.52 mask=255.255.255.224
netsh int ipv4 add address name="LAN" address=192.168.7.251 mask=255.255.255.0
netsh int ipv4 add address name="LAN" gateway=192.168.14.33 gwmetric=0
netsh int ipv4 set dns name="LAN" source=static addr=192.168.7.254 register=PRIMARY
netsh int ipv4 add dns name="LAN" addr=192.168.5.254 index=2
netsh int ipv4 add dns name="LAN" addr=8.8.8.8 index=3
netsh int ipv4 add dns name="LAN" addr=8.8.4.4 index=4
netsh exit

To run it as a batch file save this file in notepad program as file extension .bat.

No comments:

Post a Comment

Linux Partitioning Disk & Formatting commands

Linux Partitioning Disk & Formatting commands fdisk man fdisk pi@rasberrypi ~$ sudo fdisk -l