![我的所有互联网连接都断了](https://linux22.com/image/893758/%E6%88%91%E7%9A%84%E6%89%80%E6%9C%89%E4%BA%92%E8%81%94%E7%BD%91%E8%BF%9E%E6%8E%A5%E9%83%BD%E6%96%AD%E4%BA%86.png)
直到上周我都没有遇到任何问题。我有一台戴尔 Latitude 3340,几年前买的时候是 14.04 版,最近我升级到了 16.04 版。一切都很顺利。我是一名开发人员,使用 Vagrant - 但我并不是 Linux 专家(我只是写代码)。
尝试安装新虚拟机时,我做了几件蠢事(更改整个文件夹的权限)。所以我搞砸了 sudoers,但后来解决了。
然后我失去了无线网络。它就消失了。但是以太网很好,然后就坏了。现在我什么都没有了。好的,这就是背景。
我已经研究了几天,阅读并尝试了所有我能找到的方法,但没有任何改善(在某些方面甚至更糟)。权限可能是个问题,我已经发现一个地方建议的权限修复过于严格
我至少需要恢复以太网。不过无线连接也不错。
以下是我认为您需要的所有数据:
由于。。。导致的结果lspci -knn | grep Net -A2
03:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev bb)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [8086:c470]
Kernel driver in use: iwlwifi
由于。。。导致的结果lspci | egrep -i 'network|ethernet'
:
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
Results from `lshw -C network`:
*-network
description: Ethernet interface
product: Ethernet Connection I218-LM
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 04
serial: 20:47:47:12:68:40
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.6-4 ip=192.168.1.149 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:42 memory:f7e00000-f7e1ffff memory:f7e3c000-f7e3cfff ioport:f080(size=32)
*-network
description: Network controller
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
version: bb
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=iwlwifi latency=0
resources: irq:47 memory:f7c00000-f7c01fff
由于。。。导致的结果nmcli d
:
DEVICE TYPE STATE CONNECTION
br-5de25754fda4 bridge connected br-5de25754fda4
docker0 bridge connected docker0
eth0 ethernet connected Wired connection 1
lo loopback unmanaged --
由于。。。导致的结果ifconfig
:
br-5de25754fda4 Link encap:Ethernet HWaddr 02:42:8f:0e:ca:d0
inet addr:172.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
docker0 Link encap:Ethernet HWaddr 02:42:80:b1:f0:c8
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 20:47:47:12:68:40
inet addr:192.168.1.149 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::50ee:e26f:5e57:7d64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2801 errors:0 dropped:0 overruns:0 frame:0
TX packets:597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:349073 (349.0 KB) TX bytes:77039 (77.0 KB)
Interrupt:20 Memory:f7e00000-f7e20000
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:10832 errors:0 dropped:0 overruns:0 frame:0
TX packets:10832 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:811344 (811.3 KB) TX bytes:811344 (811.3 KB)
由于。。。导致的结果ip a
:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 20:47:47:12:68:40 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.149/24 brd 192.168.1.255 scope global dynamic eth0
valid_lft 85423sec preferred_lft 85423sec
inet6 fe80::50ee:e26f:5e57:7d64/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:80:b1:f0:c8 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 scope global docker0
valid_lft forever preferred_lft forever
4: br-5de25754fda4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:8f:0e:ca:d0 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 scope global br-5de25754fda4
valid_lft forever preferred_lft forever
由于。。。导致的结果cat /etc/network/interfaces
:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
我尝试过这个:
sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
因此该空文件仍然存在于系统中。
最后要说的是:当我第一次打开时,前端显示我已连接到以太网。然后我可以断开连接,但当我重新连接时,它又立即断开连接。
答案1
这两个“桥接”接口肯定是问题所在。这是我的 nmcli -d 的标准输出
DISPOSITIVO TIPO ESTADO CONEXIÓN
eth0 ethernet conectado Wired connection 1
wlan0 wifi conectado WiFilibr3
lo loopback sin gestión --
你应该关闭接口
sudo ifconfig docker0 down
sudo ifconfig br-5de25754fda4 down
并修改您的/etc/网络/接口应该只
auto lo
iface lo inet loopback
那就足够了。