在使用ubuntu13.04时,刚开始有线连接能上网,无线也能连接上,但是无线在使用过程中发现有时候明明是链接上的,
但是打开网页的速度特别慢,所以就把网卡驱动卸载了,卸载之后重新安装驱动后,无线上网是没问题了,但有线问题
又来了,插上网线连接不上网络,经过一番折腾,发现有线网卡驱动未安装。
1. 确认是否安装网卡驱动。
方法一: 打开系统->系统管理->网络工具 可以看到网络设备,一般包含三个:回环节口(lo),以太网卡(eth0),无线网卡(wlan0)。 有对应网络设备即已安装对应的驱动。2.终端输入 ifconfig
显示以下信息说明网卡驱动安装正常
eth0 Link encap:以太网 硬件地址 3c:97:0e:69:09:02
inet 地址:192.168.0.146 广播:192.168.0.255 掩码:255.255.255.0 inet6 地址: fe80::3e97:eff:fe69:902/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1 接收数据包:2339 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:2415 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:1757599 (1.7 MB) 发送字节:440380 (440.3 KB) 中断:44 基本地址:0x6000 eth1 Link encap:以太网 硬件地址 68:94:23:f3:13:f1 inet6 地址: fe80::6a94:23ff:fef3:13f1/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 跃点数:1 接收数据包:4401 错误:4 丢弃:0 过载:0 帧数:10993 发送数据包:4786 错误:34 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:3736896 (3.7 MB) 发送字节:704457 (704.4 KB) 中断:17 lo Link encap:本地环回 inet 地址:127.0.0.1 掩码:255.0.0.0 inet6 地址: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 跃点数:1 接收数据包:1841 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:1841 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:0 接收字节:160708 (160.7 KB) 发送字节:160708 (160.7 KB) 在这里我缺少的是有线网卡驱动,接下来主要说明有线驱动的安装一:首先确认网卡型号
终端输入:lspci
显示信息如下:
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4) 00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04) 00:1f.2 IDE interface: Intel Corporation 7 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04) 00:1f.5 IDE interface: Intel Corporation 7 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04) 02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 07)我的网卡型号为瑞昱 RTL8111/8168,所以就到瑞昱的官网去下载驱动
下载地址:,无法上网时可以在能上网的电脑上下载好后复制进行安装
如下图:
选择Unix(Linux)中的驱动进行下载,我下载的是第一个(最新的)
下载完成后进行解压,可以手动提取,也可以在终端中进行用命令解压
1.命令解压:
进入root:sudo -i
解压:tar vjxf r8168-8.036.00.tar.bz2
进入解压目录:cd r8168-8.036.00
安装:sudo ./autorun.sh
其他类型的网卡安装同理。