📌  相关文章
📜  带有 ubuntu 服务器 20 的树莓派 3 连接到 wifi - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:57.842000             🧑  作者: Mango

代码示例2
boot rpi
write network: {config: disabled} to /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
write the following to /etc/netplan/01-netcfg.yaml:
network:
  version: 2
  renderer: networkd
  wifis:
    wlan0:
      dhcp4: true
      dhcp6: true
      optional: true
      access-points: 
        "******":
          password: "**********"
then do:
sudo netplan generate
sudo netplan apply
reboot