N1K Posted April 25, 2006 Posted April 25, 2006 Guys,I have created two bat files, one is for quick change to DHCP configuration and the other one is for static IP..DHCP:netsh interface ip set address "Local Area Connection" dhcpStatic IP:netsh interface ip set address "Local Area Connection" static 192.168.1.115 255.255.255.0 10.156.1.100 1StaticIP.bat changes IP address, subnet mask and default gateway..Can I somehow put DNS servers in it also?
Mr Snrub Posted April 25, 2006 Posted April 25, 2006 netsh interface ip set address "Local Area Connection" static 192.168.1.115 255.255.255.0 10.156.1.100 1StaticIP.bat changes IP address, subnet mask and default gateway..Can I somehow put DNS servers in it also?To set the primary DNS to a static value:netsh interface ip set dns "Local Area Connection" static 192.168.1.53To revert it to use DHCP:netsh interface ip set dns "Local Area Connection" dhcpEnter "netsh interface ip set dns" to see the usage options.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now