VM virtual machine simulation network problems

In electronic data forensics, when you get an image and need to simulate it, you often encounter network problems. Especially for Linux server images, such as centos operating system images, generally the image will have a fixed IP setting. After simulation, the system cannot establish a connection with the local machine, cannot connect to the Internet, and cannot proceed with the next step of evidence collection. Solved a similar problem today for the record.

1. Environment

1. The image is centos 7. After simulation through Honglian simulation software, the IP is 192.168.110.188. Baidu cannot be pinged and the Internet cannot be connected.

 2. The network environment of this machine, the IP address is 192.168.1.4.

 3. This machine cannot ping the virtual machine.

4. Analyze the image and set a fixed IP for viewing. Enter /etc/sysconfig/network-scripts, view the files in the directory, and open them through viifcfg-ens33这个文件。

 It is certain that the mirror is indeed set with a fixed IP.

2. Modify IP to achieve networking

1. Click "Edit" of the virtual machine, then select "Virtual Network Editor", select VMnet8 to view the subnet IP, which is 192.168.137.0, so when setting a fixed IP in the virtual machine, it must be consistent with this IP segment. The last bit can be set arbitrarily without conflict.

 2. Click NAT settings to view the gateway settings. When setting a fixed IP, the gateway must be consistent with this.

 

 3. Set the virtual machine IP to 192.168.137.188, the gateway to 192.168.137.2, and the following DNS settings to ensure normal resolution and ability to connect to the Internet.

 4. Use  cd /etc/udev/relus.d/ to enter the folder and delete it 70-persistent-net.rules
(if there is one, it must be deleted)

5. Restart the virtual machine. Make sure the virtual machine's network settings are in NAT mode.

Guess you like

Origin blog.csdn.net/weixin_47401101/article/details/130942186