Home Operation and Maintenance CentOS Centos7 cannot ping the gateway under the virtual machine

Centos7 cannot ping the gateway under the virtual machine

Apr 01, 2020 am 09:57 AM
centos7 gateway virtual machine

Centos7 cannot ping the gateway under the virtual machine

Problem:

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  #启动网络
Copy after login

2. Reload the network card program

Centos7 cannot ping the gateway under the virtual machine

## Recommended related tutorials:

centos tutorial

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CentOS7 various version image download addresses and version descriptions (including Everything version) CentOS7 various version image download addresses and version descriptions (including Everything version) Feb 29, 2024 am 09:20 AM

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

Convert VMware to VirtualBox and vice versa Convert VMware to VirtualBox and vice versa Feb 19, 2024 pm 05:57 PM

Convert VMware to VirtualBox and vice versa

How to install, configure and use the 'Windows Sandbox' feature How to install, configure and use the 'Windows Sandbox' feature Feb 19, 2024 pm 01:00 PM

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

How to solve the problem that win11 virtual machine cannot connect to the network How to solve the problem that win11 virtual machine cannot connect to the network Jan 04, 2024 pm 07:00 PM

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. The server encountered an error, 0x80070003, while creating a new virtual machine. Feb 19, 2024 pm 02:30 PM

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

Steps to enter CentOS 7 emergency repair mode Steps to enter CentOS 7 emergency repair mode Jan 13, 2024 am 09:36 AM

Steps to enter CentOS 7 emergency repair mode

Why can't I ping the gateway? Why can't ping? Why can't I ping the gateway? Why can't ping? Mar 13, 2024 pm 03:40 PM

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

How to convert a virtual machine to a physical machine? How to convert a virtual machine to a physical machine? Feb 19, 2024 am 11:40 AM

How to convert a virtual machine to a physical machine?

See all articles