当前位置:网站首页>Several reasons and solutions of virtual machine Ping failure
Several reasons and solutions of virtual machine Ping failure
2022-06-10 22:52:00 【Meng Chu】
Image download 、 Domain name resolution 、 Time synchronization please click Alibaba cloud open source image station
One : The host computer of the virtual machine is interconnected ping no
Question 1 : A firewall
Omitted , It is recommended that both the host and the host turn off the firewall , And shut down seLinux(Linux The security system of )
Question two : Network card is not effective
performance
Enter the command ifcongig, If the output network card information does not contain inet [ip Address ], It means that the network card is not effective

After the network card takes effect, it will become

terms of settlement
This is caused by an error in the network card configuration file .CentOS7 System network card configuration file path :
/etc/sysconfig/network-scripts/ifcfg-[ adapter name ] The name of the network card is ifconfig The leftmost column of command output information eg:/etc/sysconfig/network-scripts/ifcfg-ens32Profile contents :

If you haven't modified this file , Then you just need to join with IP Address related IPADDR NETMASK GATEWAY DNS1, It is better to modify the green dot configuration , Start up .
If you have multiple network cards , The red dot configures different items for each network card . If UUID The loss of , It can be done by uuidgen Command regeneration . The author passed cp Copy ens32 The network card gets ens34 The network card added the synchronization option by mistake -s, Lead to ens32 Of UUID The loss of , The network card takes effect after modification .
Question 3 :IP Address , gateway ,DNS facilities
There are many specific online tutorials on how to set up . Simply speaking , Namely
- Windows The virtual network adapter VMnet8 Of IP Address and VMWare The virtual network adapter VMnet8 Subnets of IP Address and Network card settings file IPADDR In the same LAN
- Windows The virtual network adapter VMnet8 Gateway and DNS Address and VMWare Virtual network card gateway and DNS The address is consistent
- All the above are under the same LAN (IP The third number of the address , Here is 80)
Host settings :

The virtual machine setting method is : edit -> Virtual Network Editor

Two : Virtual machine host ping no , But it can ping Extranet
Question 1 : The virtual network adapter VMnet8
The communication between the virtual machine and the host is through the virtual network card VMware Network Adapter VMnet8 Realized , Its functions can be seen in the following virtual network card closing experiment :
Control panel -> The Internet and Internet-> Network and Sharing Center -> Change adapter settings


VMnet8 Disabled , The host and virtual machine cannot communicate , But it can communicate with the Internet ( Because the virtual machine and the host share the same network card ) as follows :

if VMNet8 Not disabled , Nor can it be ruled out , There may be a problem with its settings , See the previous article for details .
Question two : Switch the network during virtual machine startup ( Problems encountered by bloggers )
Such as hanging a ladder , Switch WIFI. This operation changes the gateway , The essence is virtual network card VMnet8 Why .
Question 3 : A firewall
It's recommended to turn off
3、 ... and : Virtual machine host ping through , You can't ping Extranet
problem : Gateway and DNS Problems setting up the
See article 1 for the specific setting method
In this paper, from :https://blog.csdn.net/a_vegetable/article/details/122868444
边栏推荐
- [raise bar C #] how to call the base of the interface
- Web3 ecological decentralized financial platform sealem Finance
- Whale conference sharing: what should we do if the conference is difficult?
- 【phpstorm】 No data sources are configured to run this SQL and provide advanced c
- [applet] the vant wearp radio radio radio component cannot trigger the bind:change event
- CCF CSP 202109-1 array derivation
- CCF CSP 202109-3 脉冲神经网络
- 【TcaplusDB知识库】TcaplusDB查看进程所在机器介绍
- 【TcaplusDB知识库】TcaplusDB进程启动介绍
- CCF CSP 202109-4 collect cards
猜你喜欢

TcaplusDB君 · 行业新闻汇编(一)

Opencv_ 100 questions_ Chapter IV (16-20)

The definition of the metauniverse and the seven infinite features

Blue Bridge Cup_ A fool sends a letter_ recursion

Opencv_100问_第三章 (11-15)

Keras deep learning practice (8) -- using data enhancement to improve neural network performance

Sealem Finance打造Web3去中心化金融平台基础设施

鲸会务为智能化防疫工作赋能
![[tcapulusdb knowledge base] Introduction to tcapulusdb patrol inspection statistics](/img/67/e0112903cb3992a64bab02060dd59a.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb patrol inspection statistics

Tcapulusdb Jun · industry news collection (I)
随机推荐
kubernetes 二进制安装(v1.20.15)(六)部署WorkNode节点
TcaplusDB君 · 行业新闻汇编(五)
中小型会议如何进行数字化升级?
C语言内功修炼【整型在内存中的存储】
小微企业如何低成本搭建微官网
Blue Bridge Cup_ A fool sends a letter_ recursion
[tcapulusdb knowledge base] Introduction to tcapulusdb process startup
TcaplusDB君 · 行业新闻汇编(四)
Tcapulusdb Jun · industry news collection (V)
Swin_ Interpretation of transformer source code
SQLSERVER database application and development: Chapter 9 computer operation
leetcode 130. Surrounded regions (medium)
鯨會務智慧景區管理解决方案
[MySQL] summary of common data types
【原创】医鹿APP九价HPV数据抓包分析
[tcapulusdb knowledge base] tcapulusdb shard relocation introduction
PKI/TLS瑞士军刀之cfssl
How can small and medium-sized conferences be upgraded digitally?
SQLServer数据库应用与开发:第九章上机
图像拼接摄像头拼接笔记