Does anything like that exist? I want to make a batch which will set my IP address to like: 30.3.3.3, with 255.0.0.0 as subnet mask, and another which will reset it back to "Obtain IP address automatically".
Can someone help me with that? I am on Windows 7 Ultimate 64 bit, and my LAN connection's name is just Local Area Connection. Here is an image of what I am talking about.
http://i.imgur.com/e1URh.jpg
Batch to set my ipv4 IP settings?
Moderator: DosItHelp
Re: Batch to set my ipv4 IP settings?
Thank you, that worked very well. I am currently using
Netsh interface ip set address name="Local Area Connection" source=static addr=192.168.150.149 mask=255.0.0.0 gateway=192.168.0.1 gwmetric=1
How would I set it back to the original settings, which is to just get the recommended values from the network?
Netsh interface ip set address name="Local Area Connection" source=static addr=192.168.150.149 mask=255.0.0.0 gateway=192.168.0.1 gwmetric=1
How would I set it back to the original settings, which is to just get the recommended values from the network?
Re: Batch to set my ipv4 IP settings?
U mean DHCPNL111 wrote:How would I set it back to the original settings, which is to just get the recommended values from the network?

Code: Select all
netsh interface ip set address name="Local Area Connection" source=dhcp
Re: Batch to set my ipv4 IP settings?
Not exactly, the above only set dhcp, to set dns aswell useNL111 wrote:Is that what this default setting is?
http://i.imgur.com/e1URh.jpg
If it is then thank you
Code: Select all
netsh interface ip set dns name="Local Area Connection" source=dhcp
Code: Select all
netsh interface ip set dns /?
