Information Technology Reference
In-Depth Information
See Also
Windows IT Pro, “Run Multiple Sites on Your IIS Server” ( http://www.windowsitpro.com/
Windows/Article/ArticleID/21871/21871.html )
1-6. Configuring Dynamic IP Address Assignment
Problem
You want to configure a Windows Server 2003 computer to receive IP addressing information
from a Dynamic Host Configuration Protocol (DHCP) server.
Solution
Using a Graphical User Interface
1.
Open the Network Connections applet.
2.
Double-click on the Local Area Connection icon.
3.
Click on Internet Protocol (TCP/IP), and select Properties.
4.
Select the radio button next to Obtain an IP Address Automatically.
5.
Click Close when you're finished.
Using a Command-Line Interface
The following command configures the NIC associated with the connection called Local Area
Connection to receive its IP address automatically. You can change the name of the connection
being configured to meet the needs of your environment:
> netsh interface ip set address "Local Area Connection" dhcp
Using the Registry
To configure an individual NIC to receive its IP address automatically from DHCP, set the following
Registry value:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Tcpip\Parameters\Interfaces\ {<Interface GUID>} \]
"EnableDHCP"=dword:1
Using VBScript
This code will configure the local computer to receive its IP configuration from a DHCP server.
' ------ SCRIPT CONFIGURATION ------
strComputer = "."
' --------- END CONFIGURATION ------
Search WWH ::




Custom Search