Let Windows 7 support both DHCP and fixed IP

  
By default, the network card in Windows 7 only allows you to select a fixed IP or dynamically obtain IP from a DHCP server. Some network environments do not provide DHCP services. At this time, if we want to go online, we only have to modify the IP manually. When you switch to a network environment with DHCP service, you need to reset the network card. This is too much trouble.

With the popularity of the network, we often face different network environments. By default, the network card in Windows7

only allows you to select a fixed IP or dynamically obtain an IP from a DHCP server. Some network environments do not provide DHCP services. At this time, if we want to go online, we only have to modify the IP manually. When you switch to a network environment with DHCP service, you need to reset the network card. This is too much trouble.

Actually, if we study it carefully, we can let Windows 7 support both DHCP and fixed IP, that is, if there is a DHCP server, it will get IP from the DHCP server, otherwise we will use a IP we specify, so Will bring us a lot of convenience.

Operation method: Right-click the taskbar network icon, select “Network and Sharing Center", click the “Change Adapter Settings” link in the open window, and right click on the corresponding network card in the open window. , select the "Properties" command, and then double-click the "Internet Protocol Version 4 (TCP/IPv4)" option in the open window, select "Automatically obtain IP address" and "Automatically obtain DNS" in the window that opens. Server address & rdquo; item.

Switch to the "Alternate Configuration" tab, then select the "User Configuration" item in the Open window, and enter the fixed IP address, subnet mask, default gateway, and preferred DNS server. Addresses such as 192.168.1.8, 255.255.255.0, 192.168.1.1, 192.168.1.1, etc.

After this setting, when our computer finds that DHCP exists, it will get the IP address from the DHCP server. Otherwise, we will use the fixed IP, subnet mask, default gateway, preferred DNS server address, etc. we set.

◆ Tip: Windows XP system through the "Network Neighborhood → Properties" command, open the "Network Connections" folder. Right click on the corresponding network card, such as "local connection", select the "properties → Internet Protocol (TCP /IP) & rdquo; items to set.

Copyright © Windows knowledge All Rights Reserved