How to make Win7 support both DHCP and fixed IP methods

  
        

With the popularity of the network, we often face different network environments. By default, the NIC in Windows 7 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, right-click the corresponding network card in the open window, select "Properties" ” Command, double-click the “Internet Protocol Version 4 (TCP/IPv4)” item in the open window, and select “Automatically obtain IP address” and “Automatically obtain DNS server address” in the window that opens.

Switch to the "Alternate Configuration" tab, then select the "User Configuration" item in the open window, and then enter the fixed IP address, subnet mask, default gateway, preferred DNS server address, 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 opens the "Network Connections" folder through the "Network Neighborhood → Properties" command. Right-click the corresponding network card, such as "Local Area Connection", select "Properties → Internet Protocol (TCP/IP)" to set.

Copyright © Windows knowledge All Rights Reserved