输出lspci -knn | grep Net -A2
03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e074]
Kernel driver in use: mt7630e
Kernel modules: wl, mt7630e
以及输出iwconfig
lo no wireless extensions.
wlp3s0f0 IEEE 802.11bgn ESSID:"d51085108"
Mode:Managed Frequency:2.452 GHz Access Point: 10:FE:ED:EC:B6:4A
Bit Rate=150 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=41 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:318 Invalid misc:1853 Missed beacon:0
enp2s0f1 no wireless extensions.
我装了MT7630e的驱动,前几天有线连接下还能看到wifi但是提示连接失败,现在显示设备无法管理。
我之前已经尝试过几种建议。
添加输出ifconfig
enp2s0f1 Link encap:Ethernet HWaddr 78:24:af:74:17:e4
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::fd69:3920:2812:4052/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8489 (8.4 KB) TX bytes:11254 (11.2 KB)
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:365 errors:0 dropped:0 overruns:0 frame:0
TX packets:365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:30507 (30.5 KB) TX bytes:30507 (30.5 KB)
wlp3s0f0 Link encap:Ethernet HWaddr 90:48:9a:d7:2d:59
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::9248:9aff:fed7:2d59/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7058 errors:0 dropped:0 overruns:0 frame:0
TX packets:4710 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7698547 (7.6 MB) TX bytes:830134 (830.1 KB)
以及输出ping -c3 www.ubuntu.com
PING www.ubuntu.com (91.189.89.115) 56(84) bytes of data.
64 bytes from www-ubuntu-com.privet.canonical.com (91.189.89.115): icmp_seq=1 ttl=46 time=270 ms
64 bytes from www-ubuntu-com.privet.canonical.com (91.189.89.115): icmp_seq=2 ttl=46 time=269 ms
64 bytes from www-ubuntu-com.privet.canonical.com (91.189.89.115): icmp_seq=3 ttl=46 time=270 ms
--- www.ubuntu.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 269.768/270.210/270.682/0.707 ms
这是我断开以太网、重新启动并重复测试后的输出。
PING www.ubuntu.com (91.189.89.115) 56(84) bytes of data.
64 bytes from www-ubuntu-com.privet.canonical.com (91.189.89.115): icmp_seq=1 ttl=48 time=306 ms
64 bytes from www-ubuntu-com.privet.canonical.com (91.189.89.115): icmp_seq=2 ttl=48 time=306 ms
64 bytes from www-ubuntu-com.privet.canonical.com (91.189.89.115): icmp_seq=3 ttl=48 time=307 ms
--- www.ubuntu.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 306.443/306.948/307.782/0.746 ms
我不明白,右上角的系统界面显示我没有连接以太网或 wifi,但现在我正在编辑我的帖子。
/etc/network/interfaces
在将文件恢复为默认状态之前,我已经添加了这些行,也许我应该把它们加回来?
auto wlp3s0f0
iface wlp3s0f0 inet dhcp
wpa-ssid SSID
wpa-psk PASSWORD
在以太网分离的情况下重新启动,网络管理器显示我有 wifi 但并没有真正连接,Chrome 说我没有连接。
$ lsmod | grep mt76
mt7630e 180224 0
mt76xx 20480 0
mac80211 737280 1 mt7630e
cfg80211 565248 2 mac80211,mt7630e
eeprom_93cx6 16384 1 mt7630e
crc_ccitt 16384 1 mt7630e
$ rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
$ ping -c3 www.ubuntu.com
ping: bad number of packets to transmit.
答案1
系统界面右上角显示我未连接网络或 wifi
请检查网络管理器和其他地方的设置,确定 NM 是否将管理您的无线接口。
gksudo gedit /etc/NetworkManager/NetworkManager.conf
如果您没有文本编辑器 gedit,请使用 nano 或 kate 或 leafpad。确保文件包含:
managed=false
如果不是这样,请进行更改,仔细校对,保存并关闭文本编辑器。
还:
sudo gedit /etc/network/interfaces
将文件恢复到其默认状态:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
如果您做了任何更改,请仔细校对,保存并关闭文本编辑器。
重启网管:
sudo service network-manager restart
有沒有改善?