This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: setting IP address & mask via CLI
- From: "Benjamin Lindner" <lindner at flll dot uni-linz dot ac dot at>
- To: cygwin at cygwin dot com
- Date: Thu, 05 Feb 2004 09:05:57 +0100
- Subject: Re: setting IP address & mask via CLI
- References: <Pine.CYG.4.58.0402041845150.3132@bgbeb>
- Reply-to: cygwin at cygwin dot com
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/