Get the App
SLTechnology News&Howtos  ›  Servers  › 

WIN7 under VMware Workstation sets fixed IP when DHCP is turned on.

Shulou Source: shulou.com Published: 2022-06-03 04:08:13 09月19日 Update

Environment: VMware Workstaion12.0 virtual machine running Sever2008R2 under WIN7 system

Objective: to set a fixed IP for Server2008 under the premise that virtual machine DHCP is enabled

[please add a link description to access the virtual machine Linux in NAT network mode through ssh] (https://blog.csdn.net/jiuduan2009/article/details/51737004) wrote this article to remind himself that many technology software companies have come up with solutions, and what they need to do is to read and learn more. Well, when doing experiments in a virtual machine, it is more convenient to set a fixed IP, but if the DHCP of the virtual machine itself is turned off, it can not guarantee the normal Internet access of other virtual machines, so let's take a look at how to set the fixed IP when the virtual machine DHCP is turned on.

1. View the virtual machine network editor.

Our virtual machine here is in NET network mode. Under the scarlet letter 2-NAT mode, check the NAT settings and DHCP settings, respectively.

We can see that in the virtual machine network editor, DHCP assigns the IP address from 192.168.160.128, and the gateway is 192.168.160.2

OK, there is no need to modify it here. After confirmation, enter the sever2008 system where you need to set a fixed IP.

2. Set a fixed IP in sever2008.

As shown in the figure above, set up an IP that is not within the scope of DHCP and is not used. I have here 192.168.160.100; when the setting is complete, make sure.

At this point, you can use the 192.168.160.100 IP to surf the Internet.

Tags: Network mode system editor status handy above no company premise backward address technology article scheme time environment purpose scarlet letter gateway Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi Linux OPPO Reno Shulou Technology