Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



DOS command to add (assign) an IP address to machine

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-03-2009
Member
 
Join Date: Jan 2006
Posts: 181
DOS command to add (assign) an IP address to machine
  

hello,
I want to know is that true that there is a DOS command that allows you to add (assign) an IP address to the machine !!!!!!!
in fact I want to know that for ethernet router, So what if the network card with a single PC on the command line backs up!
thank you in advance

__________________
S.P.A.M=Stupid Posts And Message
Reply With Quote
  #2  
Old 06-03-2009
Member
 
Join Date: Jan 2006
Posts: 2,255
Re: DOS command to add (assign) an IP address to machine

In the days of DOS, the IP was not used at all in micro-informatics.
What version of DOS do you use? You use drivers NDIS2 or "Packet"?
Normally, the settings of the IP address are in the CONFIG.SYS file or Protocol.ini (often in the NET).
__________________
With great power comes great responsibility - Spiderman's Uncle

The Greatest Sig Ever
Reply With Quote
  #3  
Old 06-03-2009
Member
 
Join Date: Jan 2006
Posts: 181
Re: DOS command to add (assign) an IP address to machine

I'm on Win XP but just curious I ask if there is a command to assign an IP address to an interface of a computer through DOS (Start - Run - cmd).
__________________
S.P.A.M=Stupid Posts And Message
Reply With Quote
  #4  
Old 06-03-2009
Member
 
Join Date: Jan 2006
Posts: 605
Re: DOS command to add (assign) an IP address to machine

netsh /?
netsh interface /?
netsh interface ipv4 /?
netsh interface ipv4 set /?
netsh interface ipv4 set address /?
Reply With Quote
  #5  
Old 06-03-2009
Member
 
Join Date: Jan 2006
Posts: 3,781
Re: DOS command to add (assign) an IP address to machine

You can change the IP from the command prompt.

The command is:
to change IP and default gateway:
netsh int ip set address "local area connection" static 192.168.0.101 255.255.255.0 192.168.0.254 1

to change DNS:
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.
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "DOS command to add (assign) an IP address to machine"
Thread Thread Starter Forum Replies Last Post
How to assign fixed IP address and DNS to Nokia Lumia 710 for Wi Fi Sha-kaal Portable Devices 2 14-03-2012 04:24 PM
DSL Modem won't assign router an IP address Huron Networking & Security 7 12-05-2010 10:36 AM
how do isp assign ip address and how to configue it on a router maverick09 Networking & Security 2 21-07-2009 10:16 PM
Cannot assign static IP address on Windows 2003 std 64bit Larry Windows Server Help 3 06-01-2009 04:35 PM
How to Hide an IP Address of a Machine? Walter.D Technology & Internet 4 10-11-2008 11:50 AM


All times are GMT +5.5. The time now is 10:16 AM.