1. 查看无线网卡名称

ifconfig a

2. 新加配置文件

wlan0替换成第一步ifconfig看到的实际无线网卡的名称
"ssid"和"password"替换成需要连接的wifi信息

sudo vi /etc/netplan/80-cloud-init.yaml

network:
    version: 2
    wifis:
        wlan0:
            dhcp4: true
            access-points:
                "ssid":
                    password: "password"

3. 使配置生效

# 检查语法,如有错误请检查缩进
sudo netplan generate
# 使配置生效
sudo netplan apply

参考: Ubuntu Server 18.04 设置WIFI上网

静态ip dns配置

https://www.hi-linux.com/posts/49513.html

相关文章:

  • 2021-12-02
  • 2021-11-15
  • 2021-12-24
  • 2021-07-05
  • 2021-11-09
  • 2022-12-23
  • 2021-09-25
  • 2021-07-27
猜你喜欢
  • 2022-12-23
  • 2021-06-16
  • 2022-01-05
  • 2022-02-14
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案