免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 36943 | 回复: 8
打印 上一主题 下一主题

[系统安装] ubuntu14.04 安装后无法上网 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-10-27 14:00 |只看该作者 |倒序浏览
本人安装了Ubuntu14.04,有线无线都没无法上网,有遇到类似情况的朋友指点一下
root@vince:/# ifconfig
lo        Link encap:本地环回  
       inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  跃点数:1
          接收数据包:185 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:185 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:0
          接收字节:13263 (13.2 KB)  发送字节:13263 (13.2 KB)
很郁闷竟然没有etho,要如何去修改或者查看eth0?无线上网图标显示“没有可用的网络设备”。
是台笔记本,型号为Dell INSPIROM 6400,之前安装过Ubuntu8.04/9.10等也是这情况,也有发个帖,但是一直没解决
安装14.04还是这样,无线网卡是Broadcom的,之前的位朋友说Broadcom写的驱动很烂,现在有点相信了。

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2014-10-27 14:25 |只看该作者
有线网卡是什么?

无线网卡在linux上出问题多半都是驱动没加载,但是有线网卡兼容性还是很好的。我这里有个14.04的服务器就是博通的网卡
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)

论坛徽章:
13
技术图书徽章
日期:2014-04-29 14:15:42IT运维版块每日发帖之星
日期:2015-12-12 06:20:00IT运维版块每日发帖之星
日期:2015-08-30 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-08-02 06:20:002015年亚洲杯之澳大利亚
日期:2015-04-03 15:03:12申猴
日期:2015-03-20 09:00:292015年迎新春徽章
日期:2015-03-04 09:54:452015年辞旧岁徽章
日期:2015-03-03 16:54:15季节之章:冬
日期:2015-01-20 17:08:47双子座
日期:2014-11-21 16:30:31技术图书徽章
日期:2014-07-11 16:29:08
3 [报告]
发表于 2014-10-27 14:28 |只看该作者
关于这个问题

首先,你要确保网卡正常被系统识别到,如果没识别到,网络一定不行

如果连Ubuntu都没驱动到,估计你要网卡厂商下载for Linux的驱动,自己来安装了

其实你自己写了一堆都看了出来,网卡没识别,要自己安装驱动

论坛徽章:
0
4 [报告]
发表于 2014-10-27 14:31 |只看该作者
回复 2# jixuuse

用lspci 结果如下;
root@MM061:~# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 01)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
0b:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
大家帮看一下是不是没有有线的网卡,无线网卡的型号为:Broadcom Corporation BCM4401-B0 100Base-TX .


   

论坛徽章:
0
5 [报告]
发表于 2014-10-27 14:37 |只看该作者
回复 3# dengbao2001
用lspci 结果如下;
root@MM061:~# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 01)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
0b:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
这两个驱动都要去硬件厂商下载手动编译对吗?
http://bbs.chinaunix.net/thread-4139557-1-1.html
之前的帖,进行到编译这一步提示出后,之前没解决的!
   

论坛徽章:
0
6 [报告]
发表于 2014-10-28 08:38 |只看该作者
在Broadcom网站(http://www.broadcom.com/support/ethernet_nic/4401.php) 找到linux i368驱动.
使用tar解压后,README文件内容,从README中发现三个问题。
1.刚安装的Ubuntu14.04系统还不能连接到互联网,没有安装RPM程序,所以RPM Package无法解压。
2.ubuntu14.04的内核版本为3.16.0-10-generic.
3.Building Driver From TAR File第二项内容下如;
(2. Build the driver b44.o (or b44.ko) as a loadable module for the
running kernel:)
   cd src
   make
明明使用tar -xvzf b44-1.00g.tar.gz文件,为什么此步骤要求cd src文件(b44-1.00g-1.src.rpm)这个文件没没法解压。
4.如果直接cd b44-1.00g文件,然后make提示如下;如何解决呀?
root@vince:/home/vince/data/linux/b44-1.00g# make
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -I/lib/modules/3.16.0-10-generic/build/include  -DOLD_NETIF -DOLD_DMA -DNO_DMA_MAPPING_ERROR -O2   -c -o b44.o b44.c
b44.c:10:26: fatal error: linux/config.h: 没有那个文件或目录
#include <linux/config.h>
compilation terminated.
<builtin>: recipe for target 'b44.o' failed
make: *** [b44.o] Error 1





Installation Notes
                        Broadcom b44 Linux Driver
                               Version 1.00g
                                06/07/2006

                          Broadcom Corporation
                          16215 Alton Parkway,
                          Irvine, CA 92619-7013

                   Copyright (c) 2006 Broadcom Corporation
                           All rights reserved


Table of Contents
=================

  Introduction
  Limitations
  Packaging
  Installing Source RPM Package
  Building Driver From TAR File
  Driver Settings
  Driver Defaults
  Unloading and Removing Driver
  Driver Messages
  

Introduction
============

This file describes the b44 Linux driver for the Broadcom 440x
10/100 Mbps PCI Network Controllers.
The latest driver is in the latest 2.6 Linux kernel. It can also be
downloaded from http://www.broadcom.com as a source package, but is
generally not necessary to do so if you are using the latest 2.6
upstream kernel from http://www.kernel.org or one of the latest
vendor kernels from Red Hat, SuSE, or others.

The b44 driver from this Broadcom package is almost identical to the
b44 driver in the latest 2.6 upstream Linux kernel. It includes some
additional kernel compatible code to allow it to compile on older 2.6
and some 2.4 kernels. The version number is also similar but generally
has a one letter suffix at the end, (e.g. 1.00a) to distinguish it from
the in-kernel b44 driver.

The next few sections on packaging, compiling, and installation apply
to the Broadcom driver package only.


Limitations
===========

The current version of the driver has been tested on 2.4.x kernels starting
from 2.4.24 and all 2.6.x kernels. The driver may not compile on kernels
older than 2.4.24. Testing is concentrated on i386 and x86_64 architectures.
Only limited testing has been done on some other architectures such as
powerpc and sparc64.

Minor changes to some source files and Makefile may be needed on some
kernels.


Packaging
=========

To replace an older previously installed or in-kernel b44 driver, follow
the instructions below.

The driver package from http://www.broadcom.com is released in two packaging
formats: source RPM and compressed tar formats. The file names for the two
packages are b44-<version>.src.rpm and b44-<version>.tar.gz.
Identical source files to build the driver are included in both packages.


Installing Source RPM Package
=============================

The following are general guidelines for installing the driver.

1. Install the source RPM package:

   rpm -ivh b44-<version>.src.rpm

2. CD to the RPM path and build the binary driver for your kernel:

   cd /usr/src/{redhat,OpenLinux,turbo,packages,rpm ..}

   rpm -bb SPECS/b44.spec

or

   rpmbuild -bb SPECS/b44.spec (for RPM version 4.x.x)

Note that the RPM path is different for different Linux distributions.

3. Install the newly built package (driver and man page):

   rpm -ivh RPMS/<arch>/b44-<version>.<arch>.rpm

<arch> is the architecture of the machine, e.g. i386:

   rpm -ivh RPMS/i386/b44-<version>.i386.rpm

Note that the --force option may be needed on some Linux distributions
if conflicts are reported.

The driver will be installed in the following path:

2.4.x kernels:

    /lib/modules/<kernel_version>/kernel/drivers/net/b44.o

2.6.x kernels:

    /lib/modules/<kernel_version>/kernel/drivers/net/b44.ko

4. Load the driver:

   insmod b44.o
or
   insmod b44.ko (on 2.6.x kernels)
or
   modprobe b44

5. To configure network protocol and address, refer to various Linux
documentations.


Building Driver From TAR File
=============================

The following are general guidelines for installing the driver.

1. Create a directory and extract the files:

   tar xvzf b44-<version>.tar.gz

2. Build the driver b44.o (or b44.ko) as a loadable module for the
running kernel:

   cd src
   make
3. Test the driver by loading it:

   insmod b44.o
or
   insmod b44.ko (on 2.6.x kernels)
or
   insmod b44

4. Install the driver:

   make install

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux
documentations.


Driver Settings
===============

This and the rest of the sections below apply to both the in-kernel b44
driver and the b44 driver package from Broadcom.

Driver settings can be queried and changed using ethtool. The latest ethtool
can be downloaded from http://sourceforge.net/projects/gkernel if it is not
already installed. The following are some common examples on how to use
ethtool. See the ethtool man page for more information. ethtool settings do
not persist across reboot or module reload. The ethtool commands can be put
in a startup script such as /etc/rc.local to preserve the settings across a
reboot.

1. Show current speed, duplex, and link status:

   ethtool eth0

2. Change speed, duplex, autoneg:

Example: 100Mbps half duplex, no autonegotiation:

   ethtool -s eth0 speed 100 duplex half autoneg off

Example: Autonegotiation with full advertisement:

   ethtool -s eth0 autoneg on

Example: Autonegotiation with 100Mbps full duplex advertisement only:

   ethtool -s eth0 speed 100 duplex full autoneg on

3. Show flow control settings:

   ethtool -a eth0

4. Change flow control settings:

Example: Turn off flow control

   ethtool -A eth0 autoneg off rx off tx off

Example: Turn flow control autonegotiation on with tx and rx advertisement:

   ethtool -A eth0 autoneg on rx on tx on

   Note that this is only valid if speed is set to autonegotiation.

5. Get statistics:

   ethtool -S eth0

6. See ethtool man page for more options.


Driver Defaults
===============

Speed :                    Autonegotiation with all speeds advertised

Flow control :             Autonegotiation with rx and tx advertised

MTU :                      1500 (range 46 - 1500)


Unloading and Removing Driver
=============================

To unload the driver, use ifconfig to bring down all eth# interfaces opened
by the driver, then do the following:

rmmod b44

Note that on 2.6 kernels, it is not necessary to bring down the eth#
interfaces before unloading the driver module.


If the driver was installed using rpm, do the following to remove it:

rpm -e b44


If the driver was installed using make install from the tar file, the driver
b44.o (or b44.ko) has to be manually deleted from the system. Refer
to the section "Installing Source RPM Package" for the location of the
installed driver.


Driver Messages
===============

The following are the most common sample messages that may be logged in the file
/var/log/messages. Use dmesg -n <level> to control the level at which messages
will appear on the console. Most systems are set to level 6 by default. To see
all messages, set the level higher.

Driver signon:
-------------

b44.c:v1.00b (Apr 20, 2006)


NIC detected:
------------

Link up and speed indication:
----------------------------

b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and on for RX.


Link down indication:
--------------------

b44: eth0: Link is down.


b44 notes:
----------
speed 10Mbs  
The link LED is also a speed LED and when the b44 is set to speed 10Mbs the
link/speed LED will not illuminate. It only illuminates when speed is 100Mbs
AND link is detected.

Tx Pause
Tx pause frame generation is disabled by default. When it is enabled it may
affect b44 performance.

论坛徽章:
0
7 [报告]
发表于 2014-10-28 09:52 |只看该作者
安装了Ubuntu最新版本 14.04 之后,发现无线网卡不能使用,偿试安装驱动后,问题解决。

首先确定无线网卡类型:

lspci -vnn -d 14e4:

比如我的网卡类型为

04:00.0 Network controller [0280]:Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315]

根据网卡类型14e4:4315,对照下面这张表,找到所要安装的驱动,此处我所需要安装的就是wl种类的

安装步骤:

1、先安装b43-fwcutter工具,如下:

下载b43-fwcutter源码:

http://bues.ch/b43/fwcutter/b43-fwcutter-018.tar.bz2

解压后,进入到目录中,执行

make

sudo make install

2、安装驱动

下载驱动文件:

http://www.lwfinger.com/b43-firm ... l-5.100.138.tar.bz2 使用b43-fwcutter工具安装驱动 sudo b43-fwcutter -w /lib/firmware broadcom-wl-5.100.138/linux/wl_apsta.o

3、加载驱动

modprobe b43

加载驱动可能需要时间比较长,请耐心等待。

对于其他种类的无线网卡,可参考网址:

http://wireless.kernel.org/en/users/Drivers/b43#devicefirmware

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2
网址:http://www.linuxidc.com/Linux/2014-04/100115.htm 的步骤,问题已经解决.

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
8 [报告]
发表于 2014-10-28 14:59 |只看该作者
然后你会发现用一段时间就内核崩溃,无线网卡丢失



论坛徽章:
0
9 [报告]
发表于 2014-10-28 15:51 |只看该作者
回复 8# jixuuse
会有这样的事发生。


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP