配置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:
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.
Note:
On Windows 2000 and NT you need to run Regedt32 instead.
Navigate to
(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):
In Windows 98 you'll also need to reboot your computer for the trick to
work.
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.
相关文章推荐
- [Ubuntu网络配置]Ubuntu GNOME版网络配置中无法将默认DHCP方式修改为静态IP的解决办法
- hadoop:在vmare中配置的多个虚拟机CentOS配置静态ip,并能ping通windows主机,使得主机与虚拟机之间的网络互通
- LTE项目stm32单片机硬件测试(原来网络dhcp动态ip方式配置成静态ip方式)
- Windows (诊断后)提示:wlan没有有效的IP配置及无法连接该网络的原因
- Windows下的VMware下的Centos7.2静态IP配置
- ubuntn 虚拟机NAT 静态IP 网络配置
- 网络配置实例---DNS服务、DHCP服务、交换机管理VLAN配置、静态路由
- 【树莓派】树莓派网络配置:静态IP、无线网络、服务等
- windows之DNS7种资源记录和flushdns命令清除DNS缓存以及nslookup解析域名和ipconfig/all命令查看网络配置使用总结
- 检查IP配置来修复Windows网络连接
- 配置linux网络环境 设置静态ip
- Centos7 网络配置 设置静态Ip
- Azure 中国篇之网络服务—(4)为 Azure虚拟机配置静态内部 IP 地址 (DIP)
- windows虚拟机静态ip配置
- CentOS静态IP的网络配置方法
- [转]Windows下netsh配置网络DNS,IP,Gateway
- 《连载 | 物联网框架ServerSuperIO教程》-4.如开发一套设备驱动,同时支持串口和网络通讯。附:将来支持Windows 10 IOT
- 复制虚拟机vmware centos搭建集群节点过程中网络配置eth0和eth1遇到的问题以及NAT模式下虚拟机静态IP配置方法
- VMware中CentOS 7设置固定IP同时连接内外网,网络配置!!! 分分钟解决的事儿