Centos7.5 virtual Machine cannot ping gateway, extranet IP Address

Source: Internet
Author: User

Problem: The first two days Centos7.5 virtual machine, the next day after the restart using Xshell found unable to connect the virtual machine, detected that the virtual machines can not ping 192.168.1.1, Unable to ping through 192.168.1.118 (client) and www.baidu.com

Workaround:

These two days through the test found Systemctl restart network invalid, reload the NIC/etc/init.d/network Reload failed

After a search attempt to find 45021963, this situation is similar to mine, and then try to fix

The first step, reload the NIC program, the result failed

Second, turn off the network Port ENS33, and then turn it back on

[email protected] ~]# ifdown ens33 #关闭网络
Device ' Ens33 ' successfully disconnected.
[Email protected] ~]# ifup ens33 #启动网络
Connection successfully activated (D-bus active path:/ORG/FREEDESKTOP/NETWORKMANAGER/ACTIVECONNECTION/2)

Then reload the NIC program and still fail

However, the Ping gateway and the external network can ping through the

Ping the Gateway:

Ping client:

Ping www.baidu.com

Reference Link: 45021963

Centos7.5 virtual Machine cannot ping gateway, extranet IP Address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.