delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/05/03:06:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <200402050905570141.006D6D17@email.uni-linz.ac.at>
In-Reply-To: <Pine.CYG.4.58.0402041845150.3132@bgbeb>
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0402041845150 DOT 3132 AT bgbeb>
Date: Thu, 05 Feb 2004 09:05:57 +0100
Reply-To: cygwin AT cygwin DOT com
From: "Benjamin Lindner" <lindner AT flll DOT uni-linz DOT ac DOT at>
To: cygwin AT cygwin DOT com
Subject: Re: setting IP address & mask via CLI
Mime-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i1586OJS025989

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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019