Chinaunix首页 | 论坛 | 博客
  • 博客访问: 734408
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: LINUX

2011-01-20 21:01:37

A while back I picked up an ECS 945GCD-M motherboard to replace my dead VIA board that was running my RAID server. The board is pretty nice, sitting there completely silent, running 64-bit Ubuntu and packing far more power than the board it was replacing. But it has one glaring problem; the network card on the thing didn’t work out of the box in Linux. I had been running a cheap USB network card I had laying around, but it was slow and I hated that I couldn’t get it working. So, I set out to make the onboard Atheros AR8131M chipset work.

Google will give you a plethora of guides for compiling the drivers (), but I just couldn’t get things to load. It was also never clear what version of the drivers I should be trying to run. Most tutorials made reference to 1.0.0.9, some to 1.0.0.10, but the current version (at the time of this writing) is 1.0.1.9. In the end, though, that’s the version I did manage to get working. Here’s how I did it:

  • Grab the driver from the
  • Locate the file on your computer, then make a new directory (name it anything, AR8131 will work) and move that file there
  • Decompress the file
  • Enter the resulting src directory

Once you in there, it’s time to start that terminal magic! One note; if you’ve already added another network card to your machine, the Atheros card may be eth1, not eth0. This was the case for me, and I’ll treat all the instructions here as though that’s the case for you too. If it’s not, just change eth1 to eth0.

  1. make && sudo make install
  2. sudo modprobe atl1e
  3. sudo ifconfig eth1 up
  4. sudo dhclient eth1

At this point, the machine will try to assign an IP address for the card. This may or may not work; for me, it did not. To get mine working, I simply restarted the networking init script. Before that though, let’s add the following to /etc/network/interfaces

  1. # The secondary network interface
  2. auto eth1
  3. iface eth1 inet dhcp

And lastly, restart the network on the machine (you CAN reboot, but there’s no need).

  1. sudo /etc/init.d/networking restart

At this point, you should have your network card up and running with an IP address assigned by your DHCP server or router. If not, keep hunting I guess, but you should at least be very close!

阅读(897) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~