linux下安装网卡驱动

1)网卡驱动不适配可能致使linux服务器网络时断时续linux

2)去官网下载驱动,检测到本机网卡类型为Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet,检测方法参考http://my.oschina.net/u/555061/blog/487239  第23条 shell

3)到官网下载驱动,通常下载下来就是10k左右服务器

4)查看Read Me文件
网络

<Quick install with proper kernel settings>
	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 :

		# ./autorun.sh	(as root or with sudo)

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

		# lsmod | grep r8168
		# ifconfig -a

	If there is a device name, ethX, shown on the monitor, the linux 
	driver is loaded. Then, you can use the following command to activate 
	the ethX.

		# ifconfig ethX up

		,where X=0,1,2,...

也就是第一步解压,第二步进入目录,第三步执行autorun.sh,不一样驱动状况不一样,但都有ReadMe文件ui

5)安装完毕,重启网卡spa

[root@localhost ~]# ifconfig eth0 down
[root@localhost ~]# ifconfig eth0 up

注明:这里的eth0是查看网卡配置来的,查看方法参考http://my.oschina.net/u/555061/blog/526020中的DEVICE="eth0",或者使用/sbin/ifconfig查看网卡配置一样能查到eth0.net

相关文章
相关标签/搜索