﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; vps12com</title>
	<atom:link href="http://help.vps12.com/tag/vps12com/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>AR8131 网卡驱动 for linux 安装(转)</title>
		<link>https://help.vps12.com/372.html</link>
		<comments>https://help.vps12.com/372.html#comments</comments>
		<pubDate>Fri, 29 Jun 2012 07:53:40 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12com]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=372</guid>
		<description><![CDATA[因客户需要，在公司库存的服务器中安装centos，库存所有机器都是华硕P5G41T-MLX主板，集成Atheros AR8131网卡，这种网卡虽然提供了Linux驱动安装包，但是居然是编译安装的，过程也很坑，一度以为无法成功，加班加点在公司找方法，还好最终解决了，看来今晚就睡在这了。。 1.安装系统，我安装的是centos5.6，定制软件时选择立即定制，把开发-开发工具勾选上。 2.确认是否能够识别到网卡，运行lspci -v，最后显示的应该是Atheros 网卡信息。 3.进入系统安装盘，搜索kernel，安装kernel-devel-2.6.18-238-el5.i686.rpm。 4.在其他机器中，打开http://www.asus.com.cn/Motherboards/Intel_Socket_775/P5G41TM_LX/#download，Linux系统，其他驱动程序，下载Linux driver，解压并在lan中找到srv文件夹，将其拷贝到U盘中，接入Linux，如果是命令行就手动挂载，如果有桌面就自动挂载。在srv目录中执行make，kcompat.h的1561行出现重定义错误，用编辑器打开kcompat.h，把1561-1565行删除或者注释掉，然后再执行make，再执行make install。 5. cd /lib/modules/KERNEL版本/kernel/drivers/net/atl1e insmod atl1e.ko 6.此时执行ifconfig -a应该就能看到eth0了，不过暂时还不能激活，需要先配置ip和网关，下面的IP地址、网关、子网掩码都可不设，dhcp默认获取。 nano /etc/sysconfig/network-scripts/ifcfg-eth0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; #网卡名称 DEVICE=eth0 #ONBOOT关键字决定开机是否自动开启该网卡 ONBOOT=yes #如若不使用网卡MAC地址使用MACADDR关键字 MACADDR=00:50:1d:24:52:67 #子网掩码参数 NETMASK=255.255.255.0 #ip地址参数 IPADDR=192.168.1.194 #网络类型参数 TYPE=Ethernet #网关参数 GATEWAY=192.168.1.254 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 然后配置DNS，激活eth0，再重启network nano /etc/resolv.conf &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; nameserver 8.8.8.8 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; ifup eth0 service network restart OK,完工。 PS:后来遇到一个问题，执行yum update后黑屏无法进入桌面，预防办法是nano /etc/yum.conf，在[main]的最后添加exclude=kernel* 还有一个问题Device eth0 has different [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/372.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
