1. 安装网卡  

机器太新,以至于现有的Linux版本无法认出,比如机器找不到网卡,这时候怎么办呢?  

别急,首先你需要知道网卡是什么型号的,以本实验室新购入的电脑为例,它的网卡是集成的,型号是Realtek RTL8168/8111 PCI-E Gigabit Ethernet NIC。然后我们到Realtek的官方网站去下载相应的Linux驱动程序r8168-8.005.00.tar.bz2,按照说明安装。  

Unpack the tarball :  

# tar vjxf r8168-8.aaa.bb.tar.bz2  

Change to the directory:  

# cd r8168-8.aaa.bb  

If you are running the target kernel, then you should be able to do :  

# make clean modules (as root or with sudo)  

# make install  

# /sbin/depmod -a  

# /sbin/insmod ./src/r8168.ko (or r8168.o in linux kernel 2.4.x)  

You can check whether the driver is loaded by using following commands.  

# /sbin/lsmod | grep r8168(看看有没有加载网卡驱动)