当前位置:网站首页>ping www.baidu.com虚拟机中ping百度
ping www.baidu.com虚拟机中ping百度
2022-08-09 15:02:00 【BigData_C】
在虚拟机中ping我们的外网。以虚拟机的net模式和虚拟机中配的静态ip为例。




(以上我的配置是成功的例子。可以参考)
(图中的网段设置都要和虚拟机中配置的网段相通)
静态ip配置要和虚拟机中的虚拟网络配置的子网地址保持在同一个网段内。
如果ping IP地址的时候可以ping通,但是ping域名却不可以,这说明绝大部分原因是由于dns服务器没有配置导致的问题。
(虚拟机中建议dns配置1和2两个114.114.114.114.和8.8.8.8)
最后虚拟机要重启网络服务,service network restart
边栏推荐
- Heap series _0x04: Internal structure of heap (_HEAP=_HEAP_SEGMENT+_HEAP_ENTRY)
- unity3d画布/UI自适应屏幕的方式
- fiddler的下载与安装
- Cloud Models and Logistic Regression - Applications of MATLAB in Mathematical Modeling (2nd Edition)
- 在任务管理器中结束任务进程之后电脑直接黑屏了
- 事务的隔离级别
- 堆(heap)系列_0x08:NT堆调试支持_立刻发现调试支持(DPH)
- Unity Shader零基础入门3:逐像素光照、Blinn-Phong、透明度
- 【力扣】96. 不同的二叉搜索树
- 7.25-7.29学习总结(状态机及PWM原理)
猜你喜欢

Vim实用技巧_2.普通模式和插入模式

Monte Carlo simulation

Candide3 face animation model

Face recognition sample code analysis (1) - program parameter analysis

Face recognition sample code analysis (2) - face recognition analysis
![[Paper reading] LIME: Low-light Image Enhancement via Illumination Map Estimation (the most complete notes)](/img/ca/6c8939fd752cc8928c2ffce0b090ed.png)
[Paper reading] LIME: Low-light Image Enhancement via Illumination Map Estimation (the most complete notes)

堆(heap)系列_0x06:NT全局标志和gflags.exe一页纸

Heap series _0x02: The past and present of the heap (WinDbg+Visual Studio compilation)

Vim实用技巧_6.复制和粘贴原理(寄存器)

RTP/RTCP协议的FFmpeg demux源码解析
随机推荐
Gray Relevance Matrix——Application of MATLAB in Mathematical Modeling
The practical skills Vim _1. Vim way of solving problems
主成分分析——MATLAB在数学建模中的应用(第2版)
【力扣】98. 验证二叉搜索树
基于FTP协议的文件上传与下载
【QT】窗口的显示与模态窗口
【QT】窗口几何布局学习
灰色关联度矩阵——MATLAB在数学建模中的应用
【力扣】55. 跳跃游戏
数据拟合方法 MATLAB在数学建模中的应用(第二版)
软件安全内存区域详解
缓存层与数据库层数据同步问题
Vim实用技巧_4.管理多个文件(打开 + 切分 + 保存 + netrw)
使用NATS及其nats.c客户端简单示例用法(nats.c的API接口)
堆(heap)系列_0x09:堆破坏示例(非法访问+未初始化+堆句柄不匹配)
Vim practical skills_3. Visual mode and command mode
Word 2016 撰写论文(1): 公式居中、编号右对齐
事务的隔离级别
PE format series _0x05: output table and relocation table (.reloc)
【力扣】75. 颜色分类