http://www.linuxwind.org/html/install-atheros-ar8161-ethernet-driver-on-ubuntu12-04.html#comments
2013.03.23 Update
++++++++++++++++++++++++++++++++++++++++++
Please don't forget exec this command, If you have update the Linux kernel.
alan@Alan-dell-14R-Turbo:~$ sudo apt-get install linux-backports-modules-cw-3.6-`uname -r`
It will reload the kernel module.
alan@Alan-dell-14R-Turbo:~$ sudo reboot
0.Confirm your Gigabit Ethernet verison
root@Alan-dell-14R-Turbo:~# lspci | grep Ethernet 03:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)
1.Download Driver Package.
sudo su - #input your password wget http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-03-12-p.tar.bz2
2.Uncompress files and exec commands.
apt-get install linux-headers-generic tar xvf compat-wireless-2012-03-12-p.tar.bz2 cd compat-wireless-2012-03-12-p ./scripts/driver-select alx make make install ./scripts/alx-enable atl1c ./scripts/alx-enable alx modprobe alx ifconfig # You will see some information like this root@Alan-dell-14R-Turbo:~# ifconfig eth1 Link encap:以太网 硬件地址 5c:f9:dd:xx:xx:xx inet 地址:192.168.1.102 广播:192.168.1.255 掩码:255.255.255.0 inet6 地址: fe80::5ef9:ddff:fe3d:8c91/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1 接收数据包:151919 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:86314 错误:0 丢弃:0 过载:0 载波:3 碰撞:0 发送队列长度:1000 接收字节:224592215 (224.5 MB) 发送字节:6266739 (6.2 MB) 中断:16 lo Link encap:本地环回 inet 地址:127.0.0.1 掩码:255.0.0.0 inet6 地址: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 跃点数:1 接收数据包:581 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:581 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:0 接收字节:54360 (54.3 KB) 发送字节:5436k0 (54.3 KB) root@Alan-dell-14R-Turbo:~#ping www.google.com.hk PING www.l.google.com (74.125.71.105) 56(84) bytes of data. 64 bytes from hx-in-f105.1e100.net (74.125.71.105): icmp_req=1 ttl=52 time=261 ms 64 bytes from hx-in-f105.1e100.net (74.125.71.105): icmp_req=2 ttl=52 time=264 ms
Congratulations.It works.