STM32MP development board and the host can not ping the solution, both the computer and the virtual machine can access the Internet

purpose

The board and the laptop are connected through a network cable, and the laptop is connected to the Internet through WiFi; computers, virtual machines, and boards can all access the Internet;

step

  1. The computer can go online normally through wifi
  2. The virtual machine does not need to be set, the default is fine (it is better to ensure that the virtual machine can access the Internet normally, that is, the bridge mode)
  3. Turn on the network adapter on the computer, select your WIFI->Properties->Share, select the network device corresponding to your network cable (may be Ethernet or local connection), as shown below:

Insert picture description here

  1. Set a static IP for the laptop's local network

Insert picture description here
After starting the virtual machine, you will see that both the virtual machine and the local network of the notebook are on the same network segment, and both the virtual machine and the notebook can access the Internet;
Insert picture description here

  1. Set the IP address of the board, and then try to ping the virtual machine
setenv ipaddr 192.168.137.104
setenv gatewayip 192.168.137.1
setenv netmask 255.255.255.0
setenv serverip 192.168.137.105
saveenv

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_39809339/article/details/114435707