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.
The next few steps are more critical.
1 Click Edit on the VMware homepage, and then click the virtual network editor inside.
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.
- 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
- Enter the virtual system, this example uses the Ubuntu system. Click System Settings in the upper right corner
5. Double-click Network
-
Click Options
-
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.
-
Test, PASS!