Hello,
Is there any way to change IP address of computer from Command prompt?
I use WinXP as OS and I would like to know if I can change IP from Command prompt
Please help me out.
to change DNS
Before running these commands, look at your existing (working) IP configuration with the ipconfig command:
This will show you the Default Gateway and DNS entries to put in the commands above where the {braces} are.
================================
C:\Documents and Settings\2xod>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : computar
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 XT Server Adapter
Physical Address. . . . . . . . . : 00-02-B3-B5-D6-J3
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.2
DNS Servers . . . . . . . . . . . : 192.168.0.2
C:\Documents and Settings\astana translations group>
netsh int ip set dns "local area connection" static 192.168.0.254 primary
This is assuming 3 things.
1) The network adapter you're trying to change the IP for is "local area connection". It could also be "local area connection 2" or "wireless network connection". Look in your control panel for the correct name
2) The IP you want to set is 192.168.0.101, change this to whatever IP to want to use.
3) The default gateway and dns are the same IP. If you are using some kind of router they usually are. Change this to match your network config found with the command ipconfig /all
You will need to run both commands to change the IP.
So, when you execute these NETSH commands from the command prompt, do they just last for the current session or are they made permanent to the system so are still in effect when you reboot?
I just want to know if the Ip address is assigned by the DHCP server i.e 169.254.x.x
And even if the ip release and ip renew commmand is also not assigning the required ip address of the network i.e 19.168.x.x. Then which command would work to change the DHCP ip address to the required one.
Your reply will be helpful.
Thanks for previous answer