This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setting IP address & mask via CLI


Victor,

under windows2000 the tool you might use is netsh.exe.
It's a kind of a scripting interface to network parameters

by doing
netsh interface dump

you get the current configuration, which you can alter to your needs
(IP, gateway, DHCP yes/no, DNS, WINS etc)
save the configuration to a file and call

netsh -f <configfile>

which loads the settings in your configuration file.
Under Windows2000 you do not have to reboot for the new settings
to become effective if you have an active network connetction while
calling netsh -f ...
(at least this is my experience)

HTH
benjamin


On 04.02.2004 at 18:49 Victor Stepanov wrote:

>Hello,
>
>Possibly an off-topic, but may someone recommend the way to set up Windows
>IP parameters (address, mask, gw...) via command like interface? I'm
>looking
>for tool similar to netconfig of RedHat Linux.
>
>Thanks in advance!
>
>V.
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]