网站索引量,单仁牛商,西安竞价托管,做视频网站 服务器现场还原
虚拟机突然无法访问外部网络
ping 8.8.8.8的时候显示网络不可达
ping 8.8.8.8ping www.baidu.com#xff08;报#xff1a;未知的名称或服务或请求超时#xff09;
ping www.baidu.comyum操作 也提示错误#xff1a;为仓库 ‘appstream’ 下载元数据失败 :
C…现场还原
虚拟机突然无法访问外部网络
ping 8.8.8.8的时候显示网络不可达
ping 8.8.8.8ping www.baidu.com报未知的名称或服务或请求超时
ping www.baidu.comyum操作 也提示错误为仓库 ‘appstream’ 下载元数据失败 :
Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
利用虚拟机的浏览器Firefox也无法访问网址 命令ifconfig可以查看IP地址
[rootlocalhost-cs8 ~]# ifconfig
ens160: flags4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500inet 192.168.122.128 netmask 255.255.255.0 broadcast 192.168.122.255...XShell等工具都能正常访问虚拟机
Connecting to 192.168.122.128:22...
Connection established.
To escape to local shell, press CtrlAlt].Activate the web console with: systemctl enable --now cockpit.socketLast login: Tue Sep 12 16:20:38 2023 from 192.168.122.1
Session lifetime based on X11 requested, but X11 initialization failed.
[rootlocalhost-cs8 ~]#
解决方案
尝试网卡配置防火墙配置 域名解析配置等操作均无法达到目的
最终在虚拟机中的虚拟网络编辑器里重新配置 NAT模式后成功访问百度一切恢
[adminlocalhost-cs8 ~]$ ping www.baidu.com
PING www.wshifen.com (104.193.88.77) 56(84) bytes of data.
64 bytes from 104.193.88.77 (104.193.88.77): icmp_seq1 ttl128 time173 ms
64 bytes from 104.193.88.77 (104.193.88.77): icmp_seq2 ttl128 time179 ms
^Z
[1] 已停止 ping www.baidu.com
[adminlocalhost-cs8 ~]$