将 WiFi 网络从 NetworkManager 移植到 /etc/network/interfaces

将 WiFi 网络从 NetworkManager 移植到 /etc/network/interfaces

我正在尝试将 WiFi 网络配置从 NetworkManager 移至 中的静态配置/etc/network/interfaces。我现在拥有的完整 NetworkManager 配置是:

[connection]
id=MU-GAMING
uuid=eeabfcea-b049-4228-8d4f-f6e65b1f8447
type=802-11-wireless

[802-11-wireless]
ssid=MU-GAMING
mode=infrastructure
mac-address=[REDACTED]

[ipv6]
method=auto

[ipv4]
method=auto

禁用 NetworkManager 后,在 /etc/network/interfaces 中

iface wlan0 inet dhcp
    wireless-essied MU-GAMING
    wireless-mode managed

但是当我尝试拉起接口时,它不会绑定到 IP 地址。

# ifup wlan0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/[redacted]
Sending on   LPF/wlan0/[redacted]
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=[redacted]
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4 (xid=[redacted])
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5 (xid=[redacted])
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 (xid=[redacted])
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 (xid=[redacted])       
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 (xid=[redacted])
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 (xid=[redacted])

这是一个“开放”网络(无密码),所以我不必在接口文件中指定任何类型的密钥或任何东西,对吗?我完全糊涂了,有人能解释一下吗?

答案1

不应该吗?wireless-essid MU-GAMING 不应该wireless-essied MU-GAMING

相关内容