Let the mod ping the virtual machine
1. Turn off the firewall of the pc
2. Set the ip of the pc and the ip of the virtual machine to be in the same network segment
The first step: virtual machine configuration
a. Connect the bridge mode of the virtual machine to the Ethernet used
2. Let the virtual machine choose bridge mode
3. Enter the virtual machine
Set the ip of the virtual machine to the same network segment as the computer
or command to set the ip of the virtual machine
ifconfig ens33 192.168.139.130 netmask 255.255.255.0 up
If the gateway is found to be incorrect,
first delete the gateway
route del default gw 192.168.139.1
and then add the gateway
route del default gw 192.168.139.1 netmask 255.255.255.0 dev ens33
Step 2: Set the computer ip
virtual machine ping computer
computer ping virtual machine