Centos 6 网卡休眠的问题

广告位

部分服务器的安装Centos 6 以后,一开始是可以ping通的,但是过了一段时间以后,网卡就没有办法ping…

部分服务器的安装Centos 6 以后,一开始是可以ping通的,但是过了一段时间以后,网卡就没有办法ping通了。但是通过IPMI重启以后立即又恢复了,如此往复,真的非常的蛋疼。

经过查看了一下相关的文档后发现e1000的网卡的驱动存在不兼容的问题,导致服务器在一段时间以后会有自动休眠的情况。

一些比较老一些的服务器都基本使用的是这个型号的集成网卡。

那我们如何将自动休眠的功能给disable掉呢?

[root@vps001 ~]# dmesg|grep PCIe
PCIe ASPM is disabled

编辑Grub的启动配置文件:menu.lst

vim /boot/grub/menu.lst

在Kernel后面加上:

pcie_aspm=off

例如:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg-root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-754.9.1.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-754.9.1.el6.x86_64 ro root=/dev/mapper/vg-root rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet pcie_aspm=off
        initrd /initramfs-2.6.32-754.9.1.el6.x86_64.img

重启后问题解决!

关于作者: Harrison

Harrison_K 是 HostingWiki.cn 的核心编辑与站长,长期专注于服务器、虚拟主机、VPS、独立服务器、高防服务器等领域内容建设与研究。凭借对全球IDC市场的深入理解与丰富实操经验,Harrison_K 致力于为中文用户提供权威、详实且实用的主机购买指南、使用教程与平台测评内容。

为您推荐

广告位

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注