日安。我安装了新的Ubuntu 14 (有更新)。我已经尝试过这个解决方案,结果是:
这是我的/etc/网络/接口文件:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Ethernet
auto eth0
iface eth0 inet dhcp
# Wireless
auto wlan0
iface wlan0 inet dhcp
wpa-ssid network_name
wpa-psk network_password因此,在重新启动后,它不会自动连接到无线连接。只有在运行命令之后:
sudo ifdown wlan0 && sudo ifup -v wlan0系统连接到无线网络。
你能告诉我怎么修理它吗?或者我哪里出错了?谢谢。
发布于 2015-09-11 13:24:13
您的接口文件要求以太网和无线自动启动。如果以太网电缆是分离的,显然它不能。
此外,在服务器(通常是无头运行)中,最好设置一个静态IP地址,以便您可以轻松地将ssh和ftp放入其中。为此,我建议您的接口文件设置如下:
auto lo
iface lo inet loopback
#auto eth0
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid <your_router>
wpa-psk <your_wpa_key>
dns-nameservers 8.8.8.8 192.168.1.1确保在路由器、交换机或其他接入点中DHCP服务器使用的范围之外选择一个静态地址。当然,用这里来代替你的细节。
https://askubuntu.com/questions/672915
复制相似问题