Ubuntu22.04配置WiFi
注意:在/etc/netplan/
?下的配置文件,格式一定要正確,否則用sudo netplan try
?的時候會報錯
一、查看無線網卡的名稱
//choice-1
ls /sys/class/net
//choice-2
ip a
//choice-3
ifconfig -a
?
二、修改配置文件
文件路徑:/etc/netplan/*.yaml
?
??
修改前備份:sudo cp *.yaml *.yaml.bak
?
修改:sudo vim *.yaml
?
配置格式:
network:
version: 2
ethernets:
eth0:
dhcp4: true
optional: true
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
"ZhaoLan":
password: "zlkj2003"
示例:文章來源:http://www.zghlxwxcb.cn/news/detail-712521.html
network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlp3s0:
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true
三、應用配置
?sudo netplan apply
?文章來源地址http://www.zghlxwxcb.cn/news/detail-712521.html
到了這里,關于Ubuntu22.04配置WiFi的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!