Modify IPV4 setting via CMD or .Bat file | Nagarams Blog

Wednesday 19 November 2014

Modify IPV4 setting via CMD or .Bat file

Rate this Post:

If you change you network IPv4 settings regularly, it is difficult to do it manually. To reduce the effort you can use Command Prompt in Windows OS to change the IPv4 settings. Simply save the CMD command lines given below in a text file and save it as .bat file to change the IPv4 setting with a double click on .bat file.


Command Prompt in Windows gives complete privileges to modify system parameters. One such thing is netsh
using this command we can edit different parameters of Local Area Connection Properties such as IP add, IP delete, IP set DNS etc.

Here is the commands to modify IPv4 setting via CMD

To set IP address & Default gate way

      netsh interface ip set address "local area connection" static 172.178.11.7 255.255.0.0 192.168.2.1

To add Alternate IP address

      netsh interface ip add address name="Local Area Connection" 182.188.11.43 255.255.0.0

To add Preferred & Alternate DNS server Ip

      netsh interface ip set dns "Local Area Connection" static 158.148.255.176

      netsh interface ip add dnsservers name="Local Area Connection" 118.178.255.199


To Delete IP address, Default gate way & DNS server IP

      netsh interface ip delete address name="Local Area Connection" 172.178.11.7 255.255.0.0 192.168.2.1
      
      netsh interface ip delete address name="Local Area Connection" 182.188.11.43 255.255.0.0

      netsh interface ip set dns "Local Area Connection" static none 


Description:

Comment Syntax:    :: comment goes here after two colons
Color: IP Address
Color: Subnet Mask Address
Color: Default Gate Way Address
Color: DNS server Address
IPv4 Settings
You can type those commands in command prompt with your IP & Gateways to change the IPv4 settings.
OR
Save the above few commands based on your need in a Text file and save it as .bat file, so that you can modify IPv4 settings by simply opening that batch file.

You can Download Add IP.bat here
You can download Delete IP.bat here

You may like to read :


Thank you
Please leave your comments

2 comments :

Unknown said...

full hd movies here with hollywood and bollywood collection click here

Annalise Campbell said...

Looking great work dear. I'm happy to read your blog, really appreciated this quality work. Thanks for sharing. If you want to know about Setting Up Google Wifi you can visit here.

Post a Comment