您的位置:首页 > 理论基础 > 计算机网络

配置Windows网络同时支持DHCP和静态IP

2011-06-28 14:26 316 查看
(http://www.petri.co.il/configure_tcp_ip_to_use_dhcp_and_a_static_ip_address_at_the_same_time.htm)

 

To configure your computer (tested on Windows 2000, Windows XP and Windows
Server 2003) to use both a DHCP obtained IP address and a statically configured
IP address follow these steps:

Configure your computer to use DHCP

Right-click My Network Places and choose Properties.

On the NIC that is (usually) labeled as Local Area Connection - right-click
and choose Properties.




Select TCP/IP (make sure you don't remove the check mark
accidentally) and press the Properties button.




Make sure you have "Obtain Automatically" selected.




You can verify your settings by running ipconfig /all at a Command
Prompt:




Ok all the way out.

Add a second (or third and so on), static, IP address

Click Start and choose Run. Enter Regedit and press Enter.

Note:
On Windows 2000 and NT you need to run Regedt32 instead.

Navigate to

HKEY_LOCAL_MACHINE
/SYSTEM/CurrentControlSetServices/Tcpip/Parameters/Interfaces/{
B003AD4A-B6DB-44FD-9741-CBA3C51B6498}


(actual GUID of the NIC may vary, select the one that represents your own NIC
(from step 2 above)

Select the IPAddress key and double click it.

In the Edit Multi String dialog box, keep first line (0.0.0.0), enter a second (and third and so on) IP
address. Make sure you enter each IP on a separate line. Click Ok.




Select the SubnetMask key and double click it.

In the Edit Multi String dialog box, keep first line (0.0.0.0) and enter a second (and third and so on)
Subnet Mask. Make sure you enter each Subnet Mask on a separate line. Click Ok.




Close the registry editor.

Go back to your network properties, right-click your NIC and select Disable.




Right-click your NIC and select Enable.




Verify your settings by running ipconfig /all at a Command Prompt:




Done!

Windows 98 users:
This trick can also be accomplished with Windows 98,
only there you need to modify the following registry path (instead of the one in
step 2 above):

HKEY_LOCAL_MACHINE
/System/CurrentControlSet/Services/Class'/etTrans


In Windows 98 you'll also need to reboot your computer for the trick to
work.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐