今天买了台电脑双网卡做VPN服务器,考虑到windows2003 VPN服务器不够稳定,准备使用Linux搞一个,结果发现,系统装好后只有1个网卡。用ifconfig查看只有eth0和lo,晕 /etc/sysconfig/network-scripts/下也没有ifcfg-eth1文件,很明显系统没装驱动。
02:00.0 Ethernet controller: Atheros Communications Atheros AR8132 / L1c Gigabit Ethernet Adapter (rev c0)
04:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
说明我有两张网卡,还有张 AR8132 1000M网卡没装上驱动。
1.系统主板驱动里面居然没有for Linux的,interl的就有,看样子以后选intel的啦。
2.到官方下载个驱动:http://partner.atheros.com/Download.aspx?id=93
3.上传到服务器上(如果只有1个网卡的话,就用优盘吧)
4.用tar xzvf
5.进入解压目录的src下 执行make install ,结果报错说我没安装kernel,只好拿出安装盘,把kernel开头的没装的包全装了,再执行,报错说没GCC模块,又装。
6.终于好了,make install成功了(应该atl1e.ko这个文件就是驱动吧),按照说明可以执行insmod et11e,但是我都失败,所以我选择重启让电脑自己安装,重新启动一下电脑,ifconfig,有eth0和eth1了,大功告成。
希望对各位有点帮
原文链接:http://www.hao9go.com/blog/?p=109