我在设置“接入点”时遇到了一些问题:在netplan
渲染器:NetworkManager时。我的 yaml 是
cat /etc/netplan/00-installer-config.yaml
network:
version: 2
renderer: NetworkManager
wifis:
wlp58s0:
dhcp4: true
optional: true
access-points:
"VCRoom065":
password: "xxXXxx"
当我
sudo netplan --debug generate
sudo netplan --debug apply
** (generate:1259): DEBUG: 18:58:22.019: Processing input file /etc/netplan/00-installer-config.yaml..
** (generate:1259): DEBUG: 18:58:22.019: starting new processing pass
** (generate:1259): DEBUG: 18:58:22.020: wlp58s0: adding wifi AP 'VCRoom065'
** (generate:1259): DEBUG: 18:58:22.020: Generating output files..
** (generate:1259): DEBUG: 18:58:22.020: networkd: definition wlp58s0 is not for us (backend 2)
(generate:1259): GLib-DEBUG: 18:58:22.020: posix_spawn avoided (fd close requested)
DEBUG: no netplan generated networkd configuration exists
DEBUG: netplan generated NM configuration exists, restarting NM
DEBUG: wlp58s0 not found in {}
DEBUG:Merged config:
network:
bonds: {}
bridges: {}
ethernets: {}
vlans: {}
wifis:
wlp58s0:
access-points:
VCRoom065:
password: xXXxxXX
dhcp4: true
optional: true
DEBUG: Skiping non-physical interface: lo
DEBUG: {}
DEBUG: netplan triggering .link rules for lo
DEBUG: netplan triggering .link rules for wlp58s0
如果我去检查ip addr
是否连接到我之前的 AP。我按照这里的说明操作,并获得了一些优势
无法启动 netplan-wpa-wlan0.service:未找到单元 netplan-wpa-wlan0.service
如果我
sudo systemctl start wpa_supplicant
sudo shutdown now
sudo netplan generate
sudo netplan apply
它确实解决了问题,renderer: networkd
但renderer: NetworkManager
并没有解决问题。我尝试禁用它sudo systemctl stop systemd-networkd
以解决问题。
有任何想法吗?。
谢谢
答案1
听起来您之前已直接通过 NetworkManager 设置此接口,因此 /etc/NetworkManager 下的配置存在冲突。请尝试删除该配置并重试。