Re: statische ip-adresse vergeben

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jens Hoerburger (jens_at_abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com)
Date: 09/07/04


Date: Tue, 07 Sep 2004 17:49:08 +0200

On Tue, 7 Sep 2004 17:30:12 +0200, "Leo-Hubert Kappes"
<Leo-Hubert@LKHome.de> wrote:

>Kann man über die DOS-Console einer Netzwerkkarte eine
>
>statische ip-adresse,
>statische subnet-maske
>dns-adresse
>standardgaeway
>
>zuweisen?

Yo:
http://support.microsoft.com:80/support/kb/articles/Q257/7/48.ASP&NoWebContent=1

How to Use the NETSH Command to Change from Static IP Address to DHCP
in Windows 2000

SUMMARY

You can use the netsh command in Windows 2000 to script the process of
changing a computer from a static Internet Protocol (IP) address to
Dynamic Host Configuration Protocol (DHCP) or vice versa. The netsh
command accomplishes this task without the need to restart the
computer. This feature is particularly useful for laptops that move
from one environment to another, when it is necessary to use
statically assigned IP addresses at one location and DHCP assigned IP
addresses at another.

MORE INFORMATION

To switch the specified adapter from a static address to DHCP, type
the following command:
netsh interface ip set address "Local Area Connection" dhcp

NOTE: Typing this command changes the interface named "Local Area
Connection" to DHCP.

To display all of the adapters in the computer with their current IP
addresses to determine the correct adapter name, type the following
command:
Netsh interface ip show config

To change to a static address, type the following command:
netsh interface ip set address "Local Area Connection" static ipaddr
subnetmask gateway metric

NOTE: Replace ipaddr with the static IP address, subnetmask with the
subnet mask, gateway with the default gateway and, if necessary,
metric with the appropriate metric. The following example changes the
interface "Local Area Connection" to a static address of 192.168.0.10
with a subnet mask of 255.255.255.0, and the interface has a default
gateway of 192.168.0.1 with a metric of 1:
netsh interface ip set address "Local Area Connection" static
192.168.0.10 255.255.255.0 192.168.0.1 1



Relevant Pages

  • Re: using PSExec to run NetSH
    ... I am interested in running NetSH on all of the computers on my domain. ... Area Connection dhcp". ... The following command was not found: ...
    (microsoft.public.win2000.networking)
  • Seperate Network Profiles
    ... I forgot to mention that I do have DHCP at work too, ... While all is setup and working at work, open command ... netsh -c interface dump> c:\officeinterface.txt ... you can setup a batch file to run this ...
    (microsoft.public.windowsxp.network_web)
  • netsh errors setting remote computer to dhcp
    ... I am trying to set a few remote computers from static address to DHCP ... I use the following command: ... netsh -r remotemachine interface ip set address "Local Area Connection" ...
    (microsoft.public.win2000.networking)
  • Re: DHCP wont authorize
    ... >You can use the command line netsh. ... follow to list DHCP ... >and the follow to delete a particular server ...
    (microsoft.public.win2000.active_directory)
  • Re: networking problem
    ... netsh extensions hoping that it will depend on the core networking ... Network Command Shell ... Command Shell Interface Context ...
    (microsoft.public.windowsxp.embedded)