How to set the IP address of a virtual machine on VMWare

When doing embedded linux development, under normal circumstances, we will copy a virtual copy from others, because the cross-compilation environment has been built above. In many cases, it is painful to build the environment by yourself.

Without modifying the network parameters, the network of the copied virtual machine will not work. Here's how to modify the IP.

We are on the PC, usually the windows desktop environment. After VMware is installed (workstation full version is recommended), the VMware software will automatically set the virtual network card address, and we don’t need to change it.
Insert picture description here
The next few steps are more critical.

1 Click Edit on the VMware homepage, and then click the virtual network editor inside.
Insert picture description here
2. Then click DHCP settings in the opened window. After clicking, we can see the range of the network segment in the newly opened window.
Insert picture description here

  1. Let's look at the gateway again. Click to change settings below, then select NAT mode, and then click NAT settings.
    In general, the gateway suffix is ​​xx.2
    Insert picture description here
  2. Enter the virtual system, this example uses the Ubuntu system. Click System Settings in the upper right corner

Insert picture description here
5. Double-click Network
Insert picture description here

  1. Click Options
    Insert picture description here

  2. Select IPV4, fill in an IP address, between 127 and 254, fill in the gateway and DNS. DNS is required, otherwise the address cannot be resolved.
    Insert picture description here

  3. Test, PASS!
    Insert picture description here

Guess you like

Origin blog.csdn.net/malcolm_110/article/details/109221180