Skip to main content

assigning ip address from dos command

More
20 years 8 months ago #2888 by babarali
hi guys....

can anyone tell me!!...about any dos command through which we can change the ipaddress of our system :idea: ...or any remote system. :?: or is there any software which can fullfill this task.
please tell me.
waiting for ur reply :roll:
More
20 years 8 months ago #2891 by sahirh
Nope don't think theres any way to do that at all.. the closest you could get would be to add a static arp entry for a MAC address pointing to the new IP address...

a question
why in gods name do you want to do this from DOS ???!!?!?!?!?! Remember.. DOS natively doesn't even have a TCP/IP stack.. it just borrows Windows'....

furthermore, changing the IP address of a remote system would be sorta counter-productive.. because you'd get disconnected from it...
imagine

telnet 192.168.1.10
c:\>changeip 192.168.1.20
<connection to host lost>

You'd be cutting off the branch that you're sitting on.

What exactly do you need to do, because I'm sure there's a less complicated way of working this out.

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
20 years 8 months ago #2903 by Jack
Barbarali:

Like Sahrih stated Dos does not have this feature, TCP/IP was introduced with Windows 3.1 Workstation, the only command that can be ran (that I’m aware of) is Renew, this is only for DHCP.

More info: www.microsoft.com/windowsxp/home/using/p...tdoc/en/ipconfig.asp


Now if your trying to change TCP/IP from a DOS prompt or Command Line from within Windows try the “netsh” command. For further information on this command try these links from Microsoft. Please keep in mind this command is only for Windows 2K and above.

support.microsoft.com/default.aspx?scid=...P&NoWebContent=1

www.microsoft.com/windowsxp/home/using/p.../en/netsh_int_ip.asp

Jack Burgess,
Firewall.cx Staff
News Editor / Forum Moderator
www.jacksjunk.com
More
20 years 8 months ago #2906 by thompsg
I found those netsh articles an interesting read. Dry but interesting.

Good find.
More
20 years 8 months ago #2913 by sahirh
*Suddenly realises you can change an IP from the command line*
*desperately tries to delete Jacks post*
*Suddenly realises Jack is a member of the team !!*
*Howls in frustration*

Hehe no seriously, thats very useful information.. I hadn't a clue !

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
20 years 8 months ago #2916 by Jack
Arg!! I hate when that happens..... :)

Jack Burgess,
Firewall.cx Staff
News Editor / Forum Moderator
www.jacksjunk.com
Time to create page: 0.133 seconds