-
September 2nd, 2005, 11:31 AM
#1
Quickly changing IP in Windows
I've got a little 3 machine network on my desk so I play about with eEye Retina for evaluation.
I'm changing the IPs quite frequently for hopping off and on the corp network.
Just wondering if there is a quick way to change IP rather than going through the network settings windows.
Like the ifconfig command in linux.
TIA
-
September 2nd, 2005, 12:50 PM
#2
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
-
September 2nd, 2005, 02:19 PM
#3
ifconfig lets you do a bit more.
I can change IP in shell with
ifconfig Eth0 192.168.3.5
That would change my ip to the address there. It's a lot faster than going through menus.
IPconfig just seems to display info or dump/renew the IP when it's allocated by a DNS.
I was after a quick way to manually set the IP via the command line in windows.#
Does IPconfig do that? My DOS is pretty poor.
-
September 2nd, 2005, 03:11 PM
#4
Junior Member
Try "netsh" instead of "ipconfig" at your command prompt.
This may be of use:
http://www.petri.co.il/configure_tcp_ip_from_cmd.htm
-
September 2nd, 2005, 03:50 PM
#5
Yep, ipconfig will dislpay any info you want about your connection and you can release / renew your ip address but only if you have a DHCP server running. You cant change your ip manually with ipconfig.
The two ways I would probably do it is either:
Double click on your connection monitors in your system tray > Properties > Internet Protocol (TCP/IP) > Properties and then select Use the following IP address and fill in the fields with the relevent information.
The other way is to use netsh as has been sugested
Open a comand prompt and type netsh you sould then get the netsh prompt.
Then type the following:
set address name="[Your connection name]" source=static addr=[your ip] mask=[Your mask] gateway=[your gateway]
So it would look something like the following:
set address name="Local Area Connection" source=static addr=192.168.0.10 mask=255.255.255.0 gateway=192.168.0.1
The benifit of this way is you can write a small batch file to allow you to do this pretty quickly, just double click on it and you away!
Im sure there are other ways but these are just the two I use!
You can find more info on netsh at Microsoft
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|