ubuntu server以太网网卡驱动问题

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
几何爱伦雷
帖子: 5
注册时间: 2015-04-13 17:23
系统: Ubuntu server 14.04

ubuntu server以太网网卡驱动问题

#1

帖子 几何爱伦雷 » 2015-04-14 11:31

acer4752G win8/ubuntu-server14.04双系统,在安装ubuntu时候没有连接网线,现在可以使用无线上网,无法使用有线。
执行ifconfig -a,没有eth0,网卡是BCM857758在其官网下载过linux驱动安装,但还是不可用,不知道是不是安装有误(make,make install)
请问大神如何解决?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu server以太网网卡驱动问题

#2

帖子 poloshiao » 2015-04-14 13:10

請先參閱
https://help.ubuntu.com/stable/ubuntu-h ... nnect.html
如果還未解決
把下面指令 複製 貼進終端機 執行
0. uname -r
1. udo lspci -knn
2. sudo lshw -numeric -class network
3. sudo ifconfig -a
4. sudo route -nv
5. sudo dhclient -v
把結果直接 選取/複製/貼上來
不必擷圖
几何爱伦雷
帖子: 5
注册时间: 2015-04-13 17:23
系统: Ubuntu server 14.04

Re: ubuntu server以太网网卡驱动问题

#3

帖子 几何爱伦雷 » 2015-04-15 19:50

已按照提示得如下信息
uname -r
3.13.0-48-generic

sudo lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [8086:0101] (rev 09)
Kernel driver in use: pcieport
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
Subsystem: Acer Incorporated [ALI] Device [1025:0507]
Kernel driver in use: i915
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
Kernel driver in use: mei_me
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b4)
Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b4)
Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation HM65 Express Chipset Family LPC Controller [8086:1c49] (rev 04)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
Kernel driver in use: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 04)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
Subsystem: Acer Incorporated [ALI] Device [1025:0506]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce GT 540M] [10de:0df4] (rev a1)
Subsystem: Acer Incorporated [ALI] Device [1025:0507]
Kernel driver in use: nouveau
03:00.0 Network controller [0280]: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) [168c:002e] (rev 01)
Subsystem: Quanta Microsystems, Inc Device [1a32:2309]
Kernel driver in use: ath9k
04:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5] (rev 10)
Subsystem: Acer Incorporated [ALI] Device [1025:0500]
Kernel driver in use: tg3
04:00.1 SD Host controller [0805]: Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader [14e4:16bc] (rev 10)
Subsystem: Acer Incorporated [ALI] Device [1025:0500]
Kernel driver in use: sdhci-pci
04:00.2 System peripheral [0880]: Broadcom Corporation BCM57765/57785 MS Card Reader [14e4:16be] (rev 10)
Subsystem: Acer Incorporated [ALI] Device [1025:0500]
04:00.3 System peripheral [0880]: Broadcom Corporation BCM57765/57785 xD-Picture Card Reader [14e4:16bf] (rev 10)
Subsystem: Acer Incorporated [ALI] Device [1025:0500]

sudo lshw -numeric -class network
*-network
description: Wireless interface
product: AR9287 Wireless Network Adapter (PCI-Express) [168C:2E]
vendor: Qualcomm Atheros [168C]
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 01
serial: 20:7c:8f:77:fc:9a
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=3.13.0-48-generic firmware=N/A ip=192.168.1.4 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:f3900000-f390ffff
*-network DISABLED
description: Ethernet interface
product: NetLink BCM57785 Gigabit Ethernet PCIe [14E4:16B5]
vendor: Broadcom Corporation [14E4]
physical id: 0
bus info: pci@0000:04:00.0
logical name: p3p1
version: 10
serial: 20:6a:8a:59:44:ac
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.134 firmware=sb latency=0 link=no multicast=yes port=twisted pair
resources: irq:19 memory:f3800000-f380ffff memory:f3810000-f381ffff memory:f3850000-f38507ff

sudo ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3664 (3.6 KB) TX bytes:3664 (3.6 KB)

p3p1 Link encap:Ethernet HWaddr 20:6a:8a:59:44:ac
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:19

wlan0 Link encap:Ethernet HWaddr 20:7c:8f:77:fc:9a
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::227c:8fff:fe77:fc9a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1472 errors:0 dropped:0 overruns:0 frame:0
TX packets:573 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:364685 (364.6 KB) TX bytes:62230 (62.2 KB)

sudo route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0

sudo dhclient -v
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/20:7c:8f:77:fc:9a
Sending on LPF/wlan0/20:7c:8f:77:fc:9a
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0x35beb5e6)
DHCPREQUEST of 192.168.1.9 on wlan0 to 255.255.255.255 port 67 (xid=0x35beb5e6)
DHCPOFFER of 192.168.1.9 from 192.168.1.1
DHCPACK of 192.168.1.9 from 192.168.1.1
bound to 192.168.1.9 -- renewal in 17637 seconds.
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu server以太网网卡驱动问题

#4

帖子 poloshiao » 2015-04-16 7:34

网卡是BCM857758
*-network DISABLED
description: Ethernet interface
product: NetLink BCM57785 Gigabit Ethernet PCIe [14E4:16B5]
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.134 firmware=sb latency=0 link=no multicast=yes port=twisted pair
p3p1 Link encap:Ethernet HWaddr 20:6a:8a:59:44:ac
BROADCAST MULTICAST MTU:1500 Metric:1
把下面指令 複製 貼進終端機 執行
1. sudo cat /etc/network/interfaces
2. sudo cat /etc/udev/rules.d/70-persistent-net.rules
3. sudo cat /etc/NetwrokManager/NetwrokManager.conf
把結果直接 選取/複製/貼上來
不必擷圖
几何爱伦雷
帖子: 5
注册时间: 2015-04-13 17:23
系统: Ubuntu server 14.04

Re: ubuntu server以太网网卡驱动问题

#5

帖子 几何爱伦雷 » 2015-04-16 22:13

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_config.conf

cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x168c:0x002e (ath9k)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="20:7c:8f:77:fc:9a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu server以太网网卡驱动问题

#6

帖子 poloshiao » 2015-04-17 6:39

*-network DISABLED
product: NetLink BCM57785 Gigabit Ethernet PCIe [14E4:16B5]
logical name: p3p1
serial: 20:6a:8a:59:44:ac
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.134 firmware=sb latency=0 link=no multicast=yes port=twisted pair
1. tg3 是 合適驅動 如果不行 可以試試新版本
http://www.broadcom.com/support/etherne ... rivers.php
NetLink 57xx
5784, 5785, 57780, 57781, 57785, 57785x, 57788, 57790, 57791, 57795
1-1. 新版本
http://www.broadcom.com/support/etherne ... nk_k57.php
Linux (tg3)
3.137h
02/20/15
1-2. 使用手冊
User Manual
http://www.broadcom.com/docs/support/et ... M_15.4.pdf
1-3. 其它參考資料
http://www.broadcom.com/support/
Ethernet NIC Driver Support

2. 你的主板 可能是新的 PredictableNetworkInterfaceNames 規格
http://www.freedesktop.org/wiki/Softwar ... faceNames/
2-1. p3p1 是根據新規格命名

3. Ubuntu 預設由 network manager 主管連線網卡 對於這種新規格 還有許多已確認的 Bugs 存在
3-1. https://bugs.launchpad.net/ubuntu/+sour ... ug/1052081
Gnome Network Manager enable / disable wireless does not work
3-2. https://bugs.launchpad.net/ubuntu/+sour ... ug/1293633
alternate install sets up biosdevname by default
3-3. https://bugs.launchpad.net/ubuntu/+sour ... ug/1284043
udev renaming the same hardware network i/f to different name, breaks networking and firewall

4. 暫時解決方案
取消 PredictableNetworkInterfaceNames 這種新規格

4-1. 測試期間 暫時 把 無線網卡 關閉

4-2. 在 /etc/default/grub
找到
GRUB_CMDLINE_LINUX_DEFAULT
這一行 通常預裝時是
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
改為

代码: 全选

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash net.ifnames=1 biosdevname=0"
為了避免打錯字 請直接 複製 貼上 /etc/default/grub
4-2-1. 儲存
4-2-2. sudo update-grub

4-3. 手動 在 /etc/udev/rules.d/70-persistent-net.rules 取一個 BCM57785 的 網卡界面 eth0
類似

代码: 全选

# PCI device 0x14E4:0x16B5 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="20:6a:8a:59:44:ac", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
為了避免打錯字 請直接 複製 貼上
/etc/udev/rules.d/70-persistent-net.rules
4-3-1. 儲存
4-3-2. sudo reboot

4-4. 進入終端機
4-4-1. sudo lshw -numeric -class network
4-4-2. sudo ifconfig -a
4-4-3. sudo route -nv
4-4-4. sudo dhclient -v
看看 是否正常
不確定 複製 貼上來

5. 進一步參閱
5-1. http://blogs.bu.edu/mhirsch/2012/12/ubu ... nt-page-1/
5-2. https://bugs.launchpad.net/ubuntu/+sour ... omments/15
5-3. http://it-stuff-i-needed.blogspot.fr/20 ... ernet.html

6. 補充
從上面的 Bug Report 說明
目前 桌面版 不會有這個問題
只有某些 Server 含 衍生版本 或 Daily Build 版本
有這個問題
几何爱伦雷
帖子: 5
注册时间: 2015-04-13 17:23
系统: Ubuntu server 14.04

Re: ubuntu server以太网网卡驱动问题

#7

帖子 几何爱伦雷 » 2015-04-18 17:48

ok,经过你的操作指导,目前可以正常使用eth0,不过reboot之后需要等待时间比较久才能获取到ip。
:em38 :em38 非常感谢!
回复