Centos7 cannot ping the gateway under the virtual machine
Apr 01, 2020 am 09:57 AMProblem:
After shutting down the Centos7.5 virtual machine, I found that I could not connect to the virtual machine using Xshell after restarting it the next day. After testing, I found that the virtual machine could not ping 192.168. .1.1. Unable to ping 192.168.1.118 (client) and www.baidu.com
Solution:
1. Close the network port ens33, and then reopen it
[root@ctos110 ~]# ifdown ens33 #关闭网络 [root@ctos110 ~]# ifup ens33 #启动网络
2. Reload the network card program
The above is the detailed content of Centos7 cannot ping the gateway under the virtual machine. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

CentOS7 various version image download addresses and version descriptions (including Everything version)

Convert VMware to VirtualBox and vice versa

How to install, configure and use the 'Windows Sandbox' feature

How to solve the problem that win11 virtual machine cannot connect to the network

The server encountered an error, 0x80070003, while creating a new virtual machine.

Steps to enter CentOS 7 emergency repair mode

Why can't I ping the gateway? Why can't ping?

How to convert a virtual machine to a physical machine?
