hoo*_*tis 28 broadcom ethernet wired 18.04
启动后,网络连接似乎已连接,多次重启后,我很快就能 ping 8.8.8.8。但是,我不能再这样做了。然后在登录后(<30 秒)网络管理员说电缆已断开连接。拔下并重新插入电缆不会改变此状态。
无线连接工作正常。
我以前在这台笔记本电脑上使用过旧版本的 ubuntu(16.10 和 16.04)中的有线连接,尽管我最近没有测试过它们。
网线可与其他计算机配合使用。
NIC 设备是 BCM5762。
这是 ifconfig 的输出
enp1s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 40:b0:34:09:9a:c0 txqueuelen 1000 (Ethernet)
RX packets 91 bytes 54152 (54.1 KB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 146 bytes 32104 (32.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 36
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 294 bytes 23870 (23.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 294 bytes 23870 (23.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.87.252.202 netmask 255.255.0.0 broadcast 10.87.255.255
inet6 fe80::3260:ab36:9b89:9e58 prefixlen 64 scopeid 0x20<link>
ether 7c:b0:c2:4e:13:d0 txqueuelen 1000 (Ethernet)
RX packets 1247 bytes 1208923 (1.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 881 bytes 160559 (160.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Run Code Online (Sandbox Code Playgroud)
这是 lshw -C 网络的输出
*-network
description: Ethernet interface
product: NetXtreme BCM5762 Gigabit Ethernet PCIe
vendor: Broadcom Limited
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 10
serial: 40:b0:34:09:9a:c0
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=sb latency=0 link=no multicast=yes port=twisted pair
resources: irq:36 memory:e0820000-e082ffff memory:e0810000-e081ffff memory:e0800000-e080ffff
*-network
description: Wireless interface
product: Wireless 7265
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 59
serial: 7c:b0:c2:4e:13:d0
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-23-generic firmware=29.1044073957.0 ip=10.87.252.202 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:47 memory:e0d00000-e0d01fff
Run Code Online (Sandbox Code Playgroud)
小智 30
在今天早上的 Ubuntu 更新之后,我的网卡被禁用了。在Win10下重启机器网卡仍然有效,所以它是Ubuntu配置。
我解决的方法如下:
sudo lshw -C network
Run Code Online (Sandbox Code Playgroud)
这列出了“逻辑名称”值:
logical name: enp8s0
logical name: docker0
logical name: enp0s29f7u7c4i2
Run Code Online (Sandbox Code Playgroud)
我有一台戴尔 T7400,所以我知道该设备是 Broadcom NetXtreme BCM5754。戴尔支持不提供 Ubuntu 驱动程序,但您实际上并不需要。不知何故,我的以太网设备名称被重命名。
sudo vi /etc/network/interfaces
Run Code Online (Sandbox Code Playgroud)
将逻辑名称添加到文件末尾:
auto enp8s0
iface enp8s0 inet dhcp
Run Code Online (Sandbox Code Playgroud)
最后,打开界面:
sudo ifup enp8s0
Run Code Online (Sandbox Code Playgroud)
小智 9
我尝试了上面的解决方案,但没有奏效。
对我有用的是使用Ubuntu GUI右上角的网络图标禁用wifi,然后使用以下命令重新启动网络管理器:
service network-manager restart
Run Code Online (Sandbox Code Playgroud)
我认为同时插入一根可工作的有线连接电缆和将 wlan 卡连接到 wifi 网络会产生冲突。
nm-applet
Run Code Online (Sandbox Code Playgroud)
然后激活Enable Networking。
如果它没有解决它,请尝试运行
nm-connection-editor
Run Code Online (Sandbox Code Playgroud)
编辑连接中的任何奇怪的配置。
您还可以查看 NetworkManager 使用这些命令执行的操作。
nm-applet
Run Code Online (Sandbox Code Playgroud)
如果您的网络设备显示unmanaged,则表示 NetworkManager 不会尝试使用该设备进行连接。
配置网络 netplan
nm-connection-editor
Run Code Online (Sandbox Code Playgroud)
并输入这个
# Run one by one to see if anything is useful
nmcli device
nmcli
nmcli device show
Run Code Online (Sandbox Code Playgroud)
替换eno1为您的任何设备(我的是ens33)。要查看您的设备列表,请运行ip addr。
最后应用新配置
sudo netplan apply
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
128628 次 |
| 最近记录: |