我已将其设置为 dhcp 来测试是否正常工作:输出:
$ sudo ifdown wlp3s0 && sudo ifup -v wlp3s0
ifdown: interface wlp3s0 not configured
Configuring interface wlp3s0=wlp3s0 (inet)
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/ifenslave
+ [ inet = meta ]
+ IF_BOND_SLAVES=
+ [ ]
+ [ ]
+ [ -z ]
+ exit
run-parts: executing /etc/network/if-pre-up.d/vlan
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
/sbin/dhclient -1 -v -pf /run/dhclient.wlp3s0.pid -lf /var/lib/dhcp/dhclient.wlp3s0.leases -I -df /var/lib/dhcp/dhclient6.wlp3s0.leases wlp3s0
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlp3s0/80:e6:50:29:1a:3a
Sending on LPF/wlp3s0/80:e6:50:29:1a:3a
Sending on Socket/fallback
DHCPDISCOVER on wlp3s0 to 255.255.255.255 port 67 interval 3 (xid=0x405f0745)
DHCPDISCOVER on wlp3s0 to 255.255.255.255 port 67 interval 6 (xid=0x405f0745)
DHCPDISCOVER on wlp3s0 to 255.255.255.255 port 67 interval 15 (xid=0x405f0745)
...OMITTED!!!!
...
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ifenslave
+ [ inet = meta ]
+ [ ]
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
请查看其他wifi信息:
$ iwconfig
wlp3s0 IEEE 802.11abg ESSID:off/any
Mode:Managed Access Point: Not-Associated
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management: off
lo no wireless extensions.
ens9 no wireless extensions.
在我的路由器上无线配置:
Security: WPA-PSK/WPA2-PSK
WIFI PASSWORD (security key) tempest123
WIFI Network Name (SSID) VM1234567
/etc/network/interfaces 上的输出
GNU nano 2.5.3 File: /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens9
iface ens9 inet dhcp
# WIFI
auto wlp3s0
iface wlp3s0 inet dhcp
wpa-ssid VM1234567
wpa-psk tempest123
请告诉我您还需要哪些其他输出才能解决此问题?
我试过,重启,删除配置然后重新放回去。还重新安装了驱动程序。
非常感谢。
编辑:
$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: no
eve@Eve:~$ lspci -k | grep -i Ethernet -A3
0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57762 Gigabit Ethernet PCIe
Subsystem: Apple Inc. NetXtreme BCM57762 Gigabit Ethernet PCIe
Kernel driver in use: tg3
Kernel modules: tg3
我已经重新启动了服务器,并且 dhcp 正在尝试获取 IP,然后它在 5 分钟后超时并在没有 IP 连接的情况下启动到 ubuntu。
我已经在此服务器上完成了 sudo apt upgrade 和 update。
请告诉我我还需要做什么?