[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
<>时间轴
一个月前(2022.8)重新玩虚拟机,因为计算机网络这块不扎实,知识点模糊,不懂其中各种原由,当然现在也不是很明白,后续还需要系统的回顾,在那是一直有几个问题
<>遇到以下问题需要解决
1、怎么选择桥接、nat的连接方式【现在也不清楚】中间不明白为什么有时候会连不上网
2、两边互ping出现一方ping不通
3、之前虚拟机启动后不会在本地显示VMnet8【可能我之前删了重装VM的缘故】
4、Xshell等工具都连不上vm虚拟机
<>下面是跟着前辈解决的问题
* 在安装centos的时候选择桥接方式【后面改回nat】
* 启动虚拟机后无疑是无法互ping且无法上网
* 查看本地确保下面两个是开启的,VMnat8是nat模式,虚拟机只有在nat的模式下才能访问外网
* 在虚拟机设置nat
* 上图中将子网ip改为nat模式下的子网
* 设置网关
* 网卡配置信息的修改:输入 vim /etc/sysconfig/network-scripts/ifcfg-ens33
* 本机ping虚拟机
* 但是此时此刻还是不能浏览外网
10.需要增加nat网卡 ,点击虚拟机,选择设置
* 经过上面几步,可以浏览网页了,CRT和其他工具也可以连得上vm虚拟机了