你好,我最近安装了 Ubuntu 20.04,我不知道自己不小心做了什么,所以现在我无法访问互联网,首先它只是连接到我的 ADSL,我通过手动添加 ip 和掩码和 dns 来解决这个问题,但现在每个 wifi 连接都无法访问互联网,我尝试了这些命令,但没有成功:
modprobe -r iwlwifi
modprobe iwlwifi
还:
service NetworkManager restart
以下是一些命令的输出:
~ ifconfig -a
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:6d:38:e0:0e txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
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 2643 bytes 207916 (207.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2643 bytes 207916 (207.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether ea:df:c6:e3:de:73 txqueuelen 1000 (Ethernet)
RX packets 86882 bytes 114770782 (114.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 58103 bytes 7138785 (7.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::fae4:e3ff:fe23:8d86 prefixlen 64 scopeid 0x20<link>
ether f8:e4:e3:23:8d:86 txqueuelen 1000 (Ethernet)
RX packets 216 bytes 18941 (18.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 742 bytes 76318 (76.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0```
~ nmcli
wlp2s0: connected to ie_farzad
"Intel 6 AX200"
wifi (iwlwifi), F8:E4:E3:23:8D:86, hw, mtu 1500
ip4 default
inet4 192.168.1.150/24
route4 192.168.1.0/24
route4 169.254.0.0/16
route4 0.0.0.0/0
inet6 fe80::fae4:e3ff:fe23:8d86/64
route6 fe80::/64
docker0: connected to docker0
"docker0"
bridge, 02:42:6D:38:E0:0E, sw, mtu 1500
inet4 172.17.0.1/16
route4 172.17.0.0/16
usb0: disconnected
"LG G2 Android Phone"
1 connection available
ethernet (rndis_host), EA:DF:C6:E3:DE:73, autoconnect, hw, mtu 1500
p2p-dev-wlp2s0: disconnected
"p2p-dev-wlp2s0"
wifi-p2p, hw
lo: unmanaged
"lo"
loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
DNS configuration:
servers: 8.8.8.8 8.8.4.4
interface: wlp2s0
我也尝试设置 DHCP 自动设置 ip 和掩码,但问题仍然存在