我使用的是 Cent OS 6.4,它在官方实验室中。
ping google.com
给出以下输出并挂起:
[root@LAB1 ~]# ping google.com PING google.com (74.125.236.195) 56(84) 字节数据。
ping 8.8.8.8
也产生相同的结果。我可以从浏览器(Mozilla)访问互联网。网络设置或配置有问题吗?
以下是输出traceroute - n 8.8.8.8
[root@LAB1 ~]# traceroute -n 8.8.8.8 跟踪路由到 8.8.8.8 (8.8.8.8),最大 30 跳,60 字节数据包 1 ** * * 2 ** * * 3 ** * * 4 ** * * 5 ** * * 6 *^Z
route -n
以下是如果有帮助的话的输出
[root@LAB1 ~]# 路线 -n 内核IP路由表 目标网关 Genmask 标记度量参考使用 Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 …
我在企业实验室使用 CentOS 6.4,yum 更新失败并出现以下错误:
我可以通过浏览器访问相同的存储库。
[root@LAB1 ~]# yum 更新 加载的插件:refresh-packagekit、security 基地| 3.7 KB 00:00 http://centosmirror.go4hosting.in/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primerno/1e584feac3f3fb76ad4b6fb7e1bc8d44e9d186dc913ded3c63a216b3-primor. x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 seconds of the last byte/30sec 尝试其他镜像。 . . . 错误:失败:repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2 来自基地:[Errno 256] 没有更多的镜像可以尝试。
下面是我所拥有的 /etc/yum.repos.d/CentOS-Base.repo
[根据] 名称=CentOS-$releasever - 基础 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #发布更新 [更新] name=CentOS-$releasever - 更新
这是我所拥有的 /etc/resolv.conf
# 由网络管理器生成 搜索 xxx.xxx 名称服务器 192.168.1.3
yum.conf
文件:
[主要的] cachedir=/var/cache/yum/$basearch/$releasever 保持缓存=0 调试级别=2 日志文件=/var/log/yum.log 精确定位=1 过时=1 gpgcheck=1 插件=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum distroverpkg=centos-release http_caching=packages
我能够 ping 上面的名称服务器。我已经尝试了yum update
after …