Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Change IP-address and computer name on Win32

by krujos (Curate)
on May 19, 2003 at 21:54 UTC ( #259313=note: print w/ replies, xml ) Need Help??


in reply to Change IP-address and computer name on Win32

This should give you information on setting the ip address. I have no idea if it works on anything other than XP and 2000, but its worth a shot. The syntax is something like

netsh interface ip add address [name=]InterfaceName [addr=]IPAddress [mask=]SubnetMask [[ +gateway=] DefaultGateway [gwmetric=]GatewayMetric]
This will give you a little more comprehensive information on using netsh.
Could not find anything on setting the hostname, sorry.
Good Luck
Josh
Update: ++JamesNC for a much better answer.


Comment on Re: Change IP-address and computer name on Win32
Download Code
Replies are listed 'Best First'.
Re: Re: Change IP-address and computer name on Win32
by JamesNC (Chaplain) on May 19, 2003 at 22:10 UTC
    You should note in my example above.. that the standard connection is Local Area Connection -vs- Production LAN which is what our segment is called... it makes a difference, you will have to plug your correct connection name in... caps don't matter, but spelling does! :) ++ to Josh too :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://259313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (17)
As of 2015-07-30 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (272 votes), past polls